Skip to content

Commit

Permalink
[#18453] fix: design feedbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen-ghafouri committed Feb 7, 2024
1 parent d748013 commit f8db861
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/quo/components/colors/color_picker/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
(when (and @ref (>= index 0))
(some-> ^js @ref
(.scrollToIndex #js
{:animated true
{:animated false
:index index
:viewPosition 0.5})))))
50)))
Expand Down
9 changes: 4 additions & 5 deletions src/status_im/contexts/profile/edit/accent_colour/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,19 @@
(def screen-container
{:flex 1
:padding-top 14
:padding-left 20
:justify-content :space-between})

(def padding-right
{:padding-right 20})
(def padding-horizontal
{:padding-horizontal 20})

(def color-title
{:color colors/white-70-blur
:margin-top 20
:margin-bottom 16})

(def button-wrapper
{:margin-vertical 12
:padding-right 20})
{:margin-vertical 12
:padding-horizontal 20})

(def profile-card
{:margin-top 22
Expand Down
3 changes: 2 additions & 1 deletion src/status_im/contexts/profile/edit/accent_colour/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
{:key :content
:style style/screen-container}
[rn/view {:style {:flex 1}}
[rn/view {:style style/padding-right}
[rn/view {:style style/padding-horizontal}
[quo/text-combinations {:title (i18n/label :t/accent-colour)}]
[quo/profile-card
{:profile-picture profile-picture
Expand All @@ -50,6 +50,7 @@
{:blur? true
:default-selected @unsaved-custom-color
:on-change on-change
:container-style style/padding-horizontal
:window-width window-width}]]
[rn/view {:style style/button-wrapper}
[quo/button
Expand Down
10 changes: 9 additions & 1 deletion src/status_im/navigation/options.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
(:require
[quo.foundations.colors :as colors]
[quo.theme :as quo.theme]
[react-native.platform :as platform]))
[react-native.platform :as platform]
[status-im.navigation.transitions :as transitions]))

(defn default-options
[]
Expand Down Expand Up @@ -88,6 +89,13 @@
:orientation ["portrait"]
:backgroundColor :transparent}}))

(def transparent-modal-screen-options
(merge
transparent-screen-options
{:animations (merge
transitions/new-to-status-modal-animations
transitions/push-animations-for-transparent-background)}))

(def sheet-options
{:layout {:componentBackgroundColor :transparent
:orientation ["portrait"]
Expand Down
6 changes: 3 additions & 3 deletions src/status_im/navigation/screens.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,15 @@
:component profiles/view}

{:name :edit-profile
:options options/transparent-screen-options
:options options/transparent-modal-screen-options
:component edit-profile/view}

{:name :edit-accent-colour
:options options/transparent-screen-options
:options options/transparent-modal-screen-options
:component edit-accent-colour/view}

{:name :edit-name
:options options/transparent-screen-options
:options options/transparent-modal-screen-options
:component edit-name/view}

{:name :new-to-status
Expand Down
6 changes: 3 additions & 3 deletions status-go-version.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"_comment": "Instead use: scripts/update-status-go.sh <rev>",
"owner": "status-im",
"repo": "status-go",
"version": "feat/change-accent-colour",
"commit-sha1": "3b9d813f4b1d815c11f56abc93c4d6bfe16d4b5b",
"src-sha256": "0grzw3fa9b25ph6i64inwbsr9nrgs2jzgz9v3db88q8jwlwn15sz"
"version": "v0.174.1",
"commit-sha1": "70ee70a19aeafb34e51db1e771b5472fd2568ba9",
"src-sha256": "1v2mg106r4dzl0hf36nr0jz5wnszk03nmasqvwsvzsrypkcd01c4"
}

0 comments on commit f8db861

Please sign in to comment.