mirror of
https://github.com/status-im/status-react.git
synced 2025-02-24 00:28:29 +00:00
fix: wrong color stroke in profile setting (#19815)
This commit is contained in:
parent
041ceda95e
commit
94ab27bcbb
@ -1,15 +1,9 @@
|
|||||||
(ns status-im.contexts.profile.settings.header.style
|
(ns status-im.contexts.profile.settings.header.style
|
||||||
(:require [quo.foundations.colors :as colors]))
|
(:require [quo.foundations.colors :as colors]))
|
||||||
|
|
||||||
(defn header-view
|
|
||||||
[customization-color theme]
|
|
||||||
{:background-color (colors/resolve-color customization-color theme 40)
|
|
||||||
:min-height 100
|
|
||||||
:flex 1})
|
|
||||||
|
|
||||||
(def avatar-row-wrapper
|
(def avatar-row-wrapper
|
||||||
{:display :flex
|
{:display :flex
|
||||||
:padding-left 16
|
:padding-left 20
|
||||||
:padding-right 12
|
:padding-right 12
|
||||||
:margin-top -60
|
:margin-top -60
|
||||||
:margin-bottom -4
|
:margin-bottom -4
|
||||||
@ -17,10 +11,6 @@
|
|||||||
:justify-content :space-between
|
:justify-content :space-between
|
||||||
:flex-direction :row})
|
:flex-direction :row})
|
||||||
|
|
||||||
(def title-container
|
|
||||||
{:padding-horizontal 20
|
|
||||||
:padding-vertical 12})
|
|
||||||
|
|
||||||
(defn header-middle-shape
|
(defn header-middle-shape
|
||||||
[background-color]
|
[background-color]
|
||||||
{:background-color background-color
|
{:background-color background-color
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
(ns status-im.contexts.profile.settings.header.view
|
(ns status-im.contexts.profile.settings.header.view
|
||||||
(:require [clojure.string :as string]
|
(:require [quo.core :as quo]
|
||||||
[quo.core :as quo]
|
|
||||||
[quo.foundations.colors :as colors]
|
[quo.foundations.colors :as colors]
|
||||||
[quo.theme]
|
[quo.theme]
|
||||||
[react-native.core :as rn]
|
[react-native.core :as rn]
|
||||||
@ -15,6 +14,7 @@
|
|||||||
(defn view
|
(defn view
|
||||||
[{:keys [scroll-y]}]
|
[{:keys [scroll-y]}]
|
||||||
(let [theme (quo.theme/use-theme)
|
(let [theme (quo.theme/use-theme)
|
||||||
|
app-theme (rf/sub [:theme])
|
||||||
{:keys [public-key emoji-hash bio] :as profile} (rf/sub [:profile/profile-with-image])
|
{:keys [public-key emoji-hash bio] :as profile} (rf/sub [:profile/profile-with-image])
|
||||||
online? (rf/sub [:visibility-status-updates/online?
|
online? (rf/sub [:visibility-status-updates/online?
|
||||||
public-key])
|
public-key])
|
||||||
@ -24,9 +24,8 @@
|
|||||||
customization-color (rf/sub [:profile/customization-color])
|
customization-color (rf/sub [:profile/customization-color])
|
||||||
full-name (profile.utils/displayed-name profile)
|
full-name (profile.utils/displayed-name profile)
|
||||||
profile-picture (profile.utils/photo profile)
|
profile-picture (profile.utils/photo profile)
|
||||||
emoji-string (string/join emoji-hash)
|
|
||||||
{:keys [status-title status-icon]} (header.utils/visibility-status-type-data status)
|
{:keys [status-title status-icon]} (header.utils/visibility-status-type-data status)
|
||||||
border-theme theme]
|
border-theme app-theme]
|
||||||
[:<>
|
[:<>
|
||||||
[header.shape/view
|
[header.shape/view
|
||||||
{:scroll-y scroll-y
|
{:scroll-y scroll-y
|
||||||
@ -55,9 +54,8 @@
|
|||||||
:theme :dark
|
:theme :dark
|
||||||
:content (fn [] [visibility-sheet/view])}])}
|
:content (fn [] [visibility-sheet/view])}])}
|
||||||
status-title]]]
|
status-title]]]
|
||||||
[quo/text-combinations
|
[quo/page-top
|
||||||
{:title-accessibility-label :username
|
{:title-accessibility-label :username
|
||||||
:container-style style/title-container
|
:emoji-dash emoji-hash
|
||||||
:emoji-hash emoji-string
|
|
||||||
:description bio
|
:description bio
|
||||||
:title full-name}]]))
|
:title full-name}]]))
|
||||||
|
@ -111,7 +111,9 @@
|
|||||||
:image-props :i/light})]
|
:image-props :i/light})]
|
||||||
[{:title (i18n/label :t/about)
|
[{:title (i18n/label :t/about)
|
||||||
:on-press #(rf/dispatch [:open-modal :about-app])
|
:on-press #(rf/dispatch [:open-modal :about-app])
|
||||||
:action :arrow}
|
:action :arrow
|
||||||
|
:blur? true}
|
||||||
{:title (i18n/label :t/status-help)
|
{:title (i18n/label :t/status-help)
|
||||||
:on-press #(rf/dispatch [:open-modal :help-center])
|
:on-press #(rf/dispatch [:open-modal :help-center])
|
||||||
:action :arrow}]])
|
:action :arrow
|
||||||
|
:blur? true}]])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user