[fix] current chat in bold on Linux
Signed-off-by: yenda <eric@status.im>
This commit is contained in:
parent
9b198e4352
commit
c48dd4597f
|
@ -57,8 +57,11 @@
|
||||||
{:flex 1
|
{:flex 1
|
||||||
:padding-vertical 16})
|
:padding-vertical 16})
|
||||||
|
|
||||||
(def chat-name
|
(defn chat-name [current?]
|
||||||
{:font-size 14})
|
{:font-size 14
|
||||||
|
:font-weight (if current?
|
||||||
|
:bold
|
||||||
|
:normal)})
|
||||||
|
|
||||||
(def chat-last-message
|
(def chat-last-message
|
||||||
{:color colors/gray
|
{:color colors/gray
|
||||||
|
|
|
@ -29,8 +29,9 @@
|
||||||
(gfycat/generate-gfy public-key))
|
(gfycat/generate-gfy public-key))
|
||||||
[unviewed-messages-label large?] (if (< 9 unviewed-messages-count)
|
[unviewed-messages-label large?] (if (< 9 unviewed-messages-count)
|
||||||
["9+" true]
|
["9+" true]
|
||||||
[unviewed-messages-count false])]
|
[unviewed-messages-count false])
|
||||||
[react/view {:style (styles/chat-list-item (= current-chat-id chat-id))}
|
current? (= current-chat-id chat-id)]
|
||||||
|
[react/view {:style (styles/chat-list-item current?)}
|
||||||
[react/view {:style styles/img-container}
|
[react/view {:style styles/img-container}
|
||||||
(if public?
|
(if public?
|
||||||
[react/view {:style (styles/topic-image color)}
|
[react/view {:style (styles/topic-image color)}
|
||||||
|
@ -49,8 +50,7 @@
|
||||||
[icons/icon :icons/public-chat])
|
[icons/icon :icons/public-chat])
|
||||||
[react/text {:ellipsize-mode :tail
|
[react/text {:ellipsize-mode :tail
|
||||||
:number-of-lines 1
|
:number-of-lines 1
|
||||||
:style styles/chat-name
|
:style (styles/chat-name current?)}
|
||||||
:font (if (= current-chat-id chat-id) :medium :default)}
|
|
||||||
name]]
|
name]]
|
||||||
[react/text {:ellipsize-mode :tail
|
[react/text {:ellipsize-mode :tail
|
||||||
:number-of-lines 1
|
:number-of-lines 1
|
||||||
|
|
Loading…
Reference in New Issue