From 3ae85cacd5cc990e332e3fd3c0f2bf1e2c272099 Mon Sep 17 00:00:00 2001 From: andrey Date: Fri, 16 Oct 2020 13:03:36 +0200 Subject: [PATCH] [#11041] Hardly visible username on replies in dark mode Signed-off-by: andrey --- src/status_im/ui/screens/chat/message/message.cljs | 3 ++- src/status_im/ui/screens/chat/utils.cljs | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/status_im/ui/screens/chat/message/message.cljs b/src/status_im/ui/screens/chat/message/message.cljs index f13d2c9f42..e9b974bc6c 100644 --- a/src/status_im/ui/screens/chat/message/message.cljs +++ b/src/status_im/ui/screens/chat/message/message.cljs @@ -42,7 +42,8 @@ from contact-name current-public-key - (partial style/quoted-message-author outgoing)]] + (partial style/quoted-message-author outgoing) + outgoing]] (if (and image ;; Disabling images for public-chats (not public?)) diff --git a/src/status_im/ui/screens/chat/utils.cljs b/src/status_im/ui/screens/chat/utils.cljs index ef636c9ef3..d07c2c4268 100644 --- a/src/status_im/ui/screens/chat/utils.cljs +++ b/src/status_im/ui/screens/chat/utils.cljs @@ -28,7 +28,7 @@ :font-weight "400"}} first-name])))) -(defn format-reply-author [from username current-public-key style] +(defn format-reply-author [from username current-public-key style outgoing] (let [contact-name (str reply-symbol username)] (or (and (= from current-public-key) [react/text {:style (style true)} @@ -43,7 +43,9 @@ :line-height 18 :font-weight "500"})} (or (stateofus/username trimmed-name) trimmed-name)]) - [react/text {:style (merge {:color colors/gray + [react/text {:style (merge {:color (if outgoing + colors/white-transparent-70-persist + colors/gray) :font-size 12 :line-height 18 :font-weight "400"})}