From 640dfa7da6617b602d0096718996c62677f13c41 Mon Sep 17 00:00:00 2001 From: Andrey Shovkoplyas Date: Tue, 5 May 2020 13:16:30 +0200 Subject: [PATCH] [#10576] Change button "Sign with keycard" in dark mode Signed-off-by: Andrey Shovkoplyas --- src/status_im/ui/screens/signing/styles.cljs | 4 ++-- src/status_im/ui/screens/signing/views.cljs | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/status_im/ui/screens/signing/styles.cljs b/src/status_im/ui/screens/signing/styles.cljs index 40f51da816..c88e9fb414 100644 --- a/src/status_im/ui/screens/signing/styles.cljs +++ b/src/status_im/ui/screens/signing/styles.cljs @@ -41,7 +41,7 @@ :padding-bottom 40}) (defn sign-with-keycard-button [disabled?] - {:background-color colors/black-light + {:background-color (if (colors/dark?) "#27D8B9" colors/black-light) :padding-top 2 :border-radius 8 :width 182 @@ -55,7 +55,7 @@ (defn sign-with-keycard-button-text [disabled?] {:padding-right 2 :padding-left 16 - :color (if disabled? colors/black colors/white) + :color (if disabled? colors/black colors/white-persist) :padding-horizontal 16 :padding-vertical 10}) diff --git a/src/status_im/ui/screens/signing/views.cljs b/src/status_im/ui/screens/signing/views.cljs index cc9d8dc51d..31ecb00dfd 100644 --- a/src/status_im/ui/screens/signing/views.cljs +++ b/src/status_im/ui/screens/signing/views.cljs @@ -115,9 +115,11 @@ (i18n/label :t/sign-with)] [react/view {:padding-right 16} [react/image {:source (resources/get-image :keycard-logo) - :style {:width 64 - :margin-bottom 7 - :height 26}}]]]])) + :style (merge {:width 64 + :margin-bottom 7 + :height 26} + (when (colors/dark?) + {:tint-color colors/white-persist}))}]]]])) (defn- signing-phrase-view [phrase] [react/view {:align-items :center}