[#11041] Hardly visible username on replies in dark mode

Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
andrey 2020-10-16 13:03:36 +02:00
parent 36f9436e12
commit 3ae85cacd5
No known key found for this signature in database
GPG Key ID: 89B67245FD2F0272
2 changed files with 6 additions and 3 deletions

View File

@ -42,7 +42,8 @@
from from
contact-name contact-name
current-public-key current-public-key
(partial style/quoted-message-author outgoing)]] (partial style/quoted-message-author outgoing)
outgoing]]
(if (and image (if (and image
;; Disabling images for public-chats ;; Disabling images for public-chats
(not public?)) (not public?))

View File

@ -28,7 +28,7 @@
:font-weight "400"}} :font-weight "400"}}
first-name])))) 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)] (let [contact-name (str reply-symbol username)]
(or (and (= from current-public-key) (or (and (= from current-public-key)
[react/text {:style (style true)} [react/text {:style (style true)}
@ -43,7 +43,9 @@
:line-height 18 :line-height 18
:font-weight "500"})} :font-weight "500"})}
(or (stateofus/username trimmed-name) trimmed-name)]) (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 :font-size 12
:line-height 18 :line-height 18
:font-weight "400"})} :font-weight "400"})}