diff --git a/src/status_im2/contexts/syncing/setup_syncing/style.cljs b/src/status_im2/contexts/syncing/setup_syncing/style.cljs index 418788fce9..5cdabc83e2 100644 --- a/src/status_im2/contexts/syncing/setup_syncing/style.cljs +++ b/src/status_im2/contexts/syncing/setup_syncing/style.cljs @@ -1,11 +1,9 @@ (ns status-im2.contexts.syncing.setup-syncing.style (:require [quo2.foundations.colors :as colors])) -(defn container-main - [top] +(def container-main {:background-color colors/neutral-95 - :flex 1 - :padding-top top}) + :flex 1}) (def page-container {:margin-horizontal 20}) diff --git a/src/status_im2/contexts/syncing/setup_syncing/view.cljs b/src/status_im2/contexts/syncing/setup_syncing/view.cljs index b2e11e6bc2..500763d11a 100644 --- a/src/status_im2/contexts/syncing/setup_syncing/view.cljs +++ b/src/status_im2/contexts/syncing/setup_syncing/view.cljs @@ -12,7 +12,6 @@ [reagent.core :as reagent] [status-im2.common.resources :as resources] [react-native.hooks :as hooks] - [react-native.safe-area :as safe-area] [status-im2.contexts.syncing.utils :as sync-utils])) (def code-valid-for-ms 120000) @@ -66,7 +65,7 @@ (reset! valid-for-ms code-valid-for-ms))] (fn [] - [rn/view {:style (style/container-main (safe-area/get-top))} + [rn/view {:style style/container-main} [:f> f-use-interval clock cleanup-clock @delay] [rn/scroll-view {} [navigation-bar] diff --git a/src/status_im2/navigation/options.cljs b/src/status_im2/navigation/options.cljs index 82cb0bd045..25122e980b 100644 --- a/src/status_im2/navigation/options.cljs +++ b/src/status_im2/navigation/options.cljs @@ -90,6 +90,12 @@ :animations {:showModal {:alpha {:from 1 :to 1 :duration 300}} :dismissModal {:alpha {:from 1 :to 1 :duration 300}}}}) +(def dark-screen + (merge (statusbar true) + {:layout {:componentBackgroundColor colors/neutral-95 + :orientation ["portrait"] + :backgroundColor colors/neutral-95}})) + (def lightbox {:topBar {:visible false} :statusBar {:backgroundColor :transparent diff --git a/src/status_im2/navigation/screens.cljs b/src/status_im2/navigation/screens.cljs index fec20f9999..f7afe78497 100644 --- a/src/status_im2/navigation/screens.cljs +++ b/src/status_im2/navigation/screens.cljs @@ -95,12 +95,11 @@ :component communities.overview/overview} {:name :settings-syncing - :options (options/statusbar true) + :options (merge options/dark-screen {:insets {:top? true}}) :component settings-syncing/view} {:name :settings-setup-syncing - :options (options/statusbar true) - + :options (merge options/dark-screen {:insets {:top? true}}) :component settings-setup-syncing/view} ;; Onboarding