From f170512e8f2bfc995f6cfaa2df8f6389027000d3 Mon Sep 17 00:00:00 2001 From: Andrey Shovkoplyas Date: Wed, 22 Apr 2020 14:52:25 +0200 Subject: [PATCH] [#10396] Quoted text (using markdown) in dark mode is hardly visible Signed-off-by: Andrey Shovkoplyas --- .../ui/components/chat_icon/styles.cljs | 2 +- .../screens/chat/styles/message/message.cljs | 22 +++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/status_im/ui/components/chat_icon/styles.cljs b/src/status_im/ui/components/chat_icon/styles.cljs index c757837237..ac15e0a78c 100644 --- a/src/status_im/ui/components/chat_icon/styles.cljs +++ b/src/status_im/ui/components/chat_icon/styles.cljs @@ -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}) diff --git a/src/status_im/ui/screens/chat/styles/message/message.cljs b/src/status_im/ui/screens/chat/styles/message/message.cljs index 5806224a1b..5ab8cf8922 100644 --- a/src/status_im/ui/screens/chat/styles/message/message.cljs +++ b/src/status_im/ui/screens/chat/styles/message/message.cljs @@ -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)))