Skip to content

Commit

Permalink
[#10396] Quoted text (using markdown) in dark mode is hardly visible
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
  • Loading branch information
flexsurfer committed Apr 22, 2020
1 parent c65ca5c commit f170512
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/status_im/ui/components/chat_icon/styles.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
:border-radius 32}))

(defn default-chat-icon-text [size]
{:color (colors/alpha colors/white 0.7)
{:color colors/white-transparent-70-persist
:font-weight "700"
:font-size (/ size 2)
:line-height size})
Expand Down
22 changes: 11 additions & 11 deletions src/status_im/ui/screens/chat/styles/message/message.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -299,34 +299,34 @@
:font-family monospace-fonts
:color colors/white))

(def default-blockquote-style
(defn default-blockquote-style []
{:style {:border-left-width 2
:padding-left 3
:border-left-color colors/gray-transparent-40}})

(def outgoing-blockquote-style
(update default-blockquote-style :style
(defn outgoing-blockquote-style []
(update (default-blockquote-style) :style
assoc
:border-left-color colors/white-transparent))
:border-left-color colors/white-transparent-70-persist))

(defn blockquote-style [outgoing]
(if outgoing
outgoing-blockquote-style
default-blockquote-style))
(outgoing-blockquote-style)
(default-blockquote-style)))

(def default-blockquote-text-style
(defn default-blockquote-text-style []
(update (default-text-style) :style
assoc
:line-height 19
:font-size 14
:color colors/black-transparent-50))

(def outgoing-blockquote-text-style
(update default-blockquote-text-style :style
(defn outgoing-blockquote-text-style []
(update (default-blockquote-text-style) :style
assoc
:color colors/white-transparent-70-persist))

(defn blockquote-text-style [outgoing]
(if outgoing
outgoing-blockquote-text-style
default-blockquote-text-style))
(outgoing-blockquote-text-style)
(default-blockquote-text-style)))

0 comments on commit f170512

Please sign in to comment.