fix onboarding transition background color (#15900)

This commit is contained in:
flexsurfer 2023-05-15 16:28:08 +02:00 committed by GitHub
parent fa11c232cc
commit 05073e7453
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 15 deletions

View File

@ -75,9 +75,7 @@
(get roots/themes root-id)
root-id])
(reset! state/root-id (or (get-in root [:root :stack :id]) root-id))
(if root
(navigation/set-root root)
(println "root" root-id root)))))
(navigation/set-root root))))
;; NAVIGATE-TO
(defn navigate

View File

@ -22,12 +22,20 @@
{:statusBar {:style (or status-bar-theme :light)}}))
(defn default-root
[& [status-bar-theme]]
[& [status-bar-theme background-color]]
(merge (statusbar-and-navbar-root status-bar-theme)
{:topBar {:visible false}
:layout {:componentBackgroundColor (colors/theme-colors colors/white colors/neutral-100)
:layout {:componentBackgroundColor (or background-color
(colors/theme-colors colors/white colors/neutral-100))
:orientation :portrait
:backgroundColor (colors/theme-colors colors/white colors/neutral-100)}}))
:backgroundColor (or background-color
(colors/theme-colors colors/white
colors/neutral-100))}}))
(def onboarding-layout
{:componentBackgroundColor colors/neutral-80-opa-80-blur
:orientation :portrait
:backgroundColor colors/neutral-80-opa-80-blur})
(defn navbar
([dark?]

View File

@ -96,7 +96,7 @@
{:stack {:id :intro
:children [{:component {:name :intro
:id :intro
:options (options/default-root)}}]}}}
:options (options/default-root nil colors/neutral-100)}}]}}}
:shell-stack
{:root
{:stack {:id :shell-stack

View File

@ -37,10 +37,7 @@
(concat
(old-screens/screens)
[{:name :intro
:component intro/view}
{:name :activity-center
[{:name :activity-center
:options options/transparent-screen-options
:component activity-center/view}
@ -95,50 +92,65 @@
:component settings-setup-syncing/view}
;; Onboarding
{:name :intro
:component intro/view}
{:name :profiles
:options {:layout options/onboarding-layout}
:component profiles/views}
{:name :new-to-status
:options {:layout options/onboarding-layout}
:component new-to-status/new-to-status}
{:name :create-profile
:options {:layout options/onboarding-layout}
:component create-profile/create-profile}
{:name :create-profile-password
:options {:insets {:top false}}
:options {:insets {:top false}
:layout options/onboarding-layout}
:component create-password/create-password}
{:name :enable-biometrics
:options {:layout options/onboarding-layout}
:component enable-biometrics/enable-biometrics}
{:name :generating-keys
:options {:popGesture false
:options {:layout options/onboarding-layout
:popGesture false
:hardwareBackButton {:dismissModalOnPress false
:popStackOnPress false}}
:component generating-keys/generating-keys}
{:name :enter-seed-phrase
:options {:layout options/onboarding-layout}
:component enter-seed-phrase/enter-seed-phrase}
{:name :enable-notifications
:options {:popGesture false
:options {:layout options/onboarding-layout
:popGesture false
:hardwareBackButton {:dismissModalOnPress false
:popStackOnPress false}}
:component enable-notifications/enable-notifications}
{:name :identifiers
:component identifiers/view
:options {:popGesture false
:options {:layout options/onboarding-layout
:popGesture false
:hardwareBackButton {:dismissModalOnPress false
:popStackOnPress false}}}
{:name :sign-in
:options {:layout options/onboarding-layout}
:component sign-in/view}
{:name :syncing-devices
:options {:layout options/onboarding-layout}
:component syncing-devices/syncing-devices}
{:name :welcome
:options {:layout options/onboarding-layout}
:component welcome/view}]
(when config/quo-preview-enabled?