mirror of
https://github.com/status-im/status-react.git
synced 2025-02-02 22:25:12 +00:00
Fix for two separate sections with different colors shown on the chat screen (dark mode) (#16265)
* Fix for two separate sections with different colors shown on the chat screen (dark mode) * lint-fix
This commit is contained in:
parent
563a266803
commit
68b9ea47a8
@ -20,7 +20,7 @@
|
|||||||
(defn header-container
|
(defn header-container
|
||||||
[show?]
|
[show?]
|
||||||
{:display (if show? :flex :none)
|
{:display (if show? :flex :none)
|
||||||
:background-color (colors/theme-colors colors/white colors/neutral-95)
|
:background-color (colors/theme-colors colors/white colors/neutral-100)
|
||||||
:top (- overscroll-cover-height)
|
:top (- overscroll-cover-height)
|
||||||
:margin-bottom (- overscroll-cover-height)})
|
:margin-bottom (- overscroll-cover-height)})
|
||||||
|
|
||||||
@ -28,7 +28,8 @@
|
|||||||
[cover-bg-color]
|
[cover-bg-color]
|
||||||
{:flex 1
|
{:flex 1
|
||||||
:height (+ overscroll-cover-height cover-height)
|
:height (+ overscroll-cover-height cover-height)
|
||||||
:background-color cover-bg-color})
|
:background-color (colors/theme-colors (:light cover-bg-color)
|
||||||
|
(:dark cover-bg-color))})
|
||||||
|
|
||||||
(defn header-bottom-part
|
(defn header-bottom-part
|
||||||
[animation]
|
[animation]
|
||||||
@ -38,7 +39,7 @@
|
|||||||
{:top -16
|
{:top -16
|
||||||
:margin-bottom -16
|
:margin-bottom -16
|
||||||
:padding-bottom 24
|
:padding-bottom 24
|
||||||
:background-color (colors/theme-colors colors/white colors/neutral-100)}))
|
:background-color (colors/theme-colors colors/white colors/neutral-95)}))
|
||||||
|
|
||||||
(def header-avatar
|
(def header-avatar
|
||||||
{:top header-avatar-top-offset
|
{:top header-avatar-top-offset
|
||||||
|
@ -195,8 +195,7 @@
|
|||||||
[rn/view
|
[rn/view
|
||||||
{:style (style/header-container all-loaded?)
|
{:style (style/header-container all-loaded?)
|
||||||
:on-layout on-layout}
|
:on-layout on-layout}
|
||||||
(when cover-bg-color
|
[rn/view {:style (style/header-cover cover-bg-color)}]
|
||||||
[rn/view {:style (style/header-cover cover-bg-color)}])
|
|
||||||
[reanimated/view {:style (style/header-bottom-part border-animation)}
|
[reanimated/view {:style (style/header-bottom-part border-animation)}
|
||||||
[rn/view {:style style/header-avatar}
|
[rn/view {:style style/header-avatar}
|
||||||
[rn/view {:style {:align-items :flex-start}}
|
[rn/view {:style {:align-items :flex-start}}
|
||||||
@ -306,7 +305,8 @@
|
|||||||
(on-scroll event)))
|
(on-scroll event)))
|
||||||
:style (add-inverted-y-android
|
:style (add-inverted-y-android
|
||||||
{:background-color (if all-loaded?
|
{:background-color (if all-loaded?
|
||||||
cover-bg-color
|
(colors/theme-colors (:light cover-bg-color)
|
||||||
|
(:dark cover-bg-color))
|
||||||
(colors/theme-colors
|
(colors/theme-colors
|
||||||
colors/white
|
colors/white
|
||||||
colors/neutral-95))})
|
colors/neutral-95))})
|
||||||
|
@ -23,7 +23,8 @@
|
|||||||
able-to-send-message?]
|
able-to-send-message?]
|
||||||
:as chat} (rf/sub [:chats/current-chat-chat-view])]
|
:as chat} (rf/sub [:chats/current-chat-chat-view])]
|
||||||
[messages.list/messages-list
|
[messages.list/messages-list
|
||||||
{:cover-bg-color (colors/custom-color :turquoise 50 20)
|
{:cover-bg-color {:light (colors/custom-color :turquoise 50 20)
|
||||||
|
:dark (colors/custom-color :turquoise 50 40)}
|
||||||
:chat chat
|
:chat chat
|
||||||
:header-comp (fn [{:keys [scroll-y shared-all-loaded?]}]
|
:header-comp (fn [{:keys [scroll-y shared-all-loaded?]}]
|
||||||
[messages.navigation/navigation-view
|
[messages.navigation/navigation-view
|
||||||
|
Loading…
x
Reference in New Issue
Block a user