[fix] current chat in bold on Linux

Signed-off-by: yenda <eric@status.im>
This commit is contained in:
yenda 2018-11-19 15:48:36 +01:00
parent 9b198e4352
commit c48dd4597f
No known key found for this signature in database
GPG Key ID: 0095623C0069DCE6
2 changed files with 9 additions and 6 deletions

View File

@ -57,8 +57,11 @@
{:flex 1
:padding-vertical 16})
(def chat-name
{:font-size 14})
(defn chat-name [current?]
{:font-size 14
:font-weight (if current?
:bold
:normal)})
(def chat-last-message
{:color colors/gray

View File

@ -29,8 +29,9 @@
(gfycat/generate-gfy public-key))
[unviewed-messages-label large?] (if (< 9 unviewed-messages-count)
["9+" true]
[unviewed-messages-count false])]
[react/view {:style (styles/chat-list-item (= current-chat-id chat-id))}
[unviewed-messages-count false])
current? (= current-chat-id chat-id)]
[react/view {:style (styles/chat-list-item current?)}
[react/view {:style styles/img-container}
(if public?
[react/view {:style (styles/topic-image color)}
@ -49,8 +50,7 @@
[icons/icon :icons/public-chat])
[react/text {:ellipsize-mode :tail
:number-of-lines 1
:style styles/chat-name
:font (if (= current-chat-id chat-id) :medium :default)}
:style (styles/chat-name current?)}
name]]
[react/text {:ellipsize-mode :tail
:number-of-lines 1