Skip to content

Commit

Permalink
update icon color
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-mut committed Jun 15, 2023
1 parent 987c44f commit f413502
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/quo2/components/buttons/button.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
:pressed colors/neutral-80-opa-50
:disabled colors/neutral-80-opa-40}}
:blur-bg {:icon-color colors/white
:icon-secondary-color colors/white-opa-40
:icon-secondary-color colors/white-opa-70
:label-color colors/white
:background-color {:default colors/white-opa-5
:pressed colors/white-opa-10
Expand Down
19 changes: 15 additions & 4 deletions src/status_im2/contexts/syncing/scan_sync_code/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,26 @@
:left (:x viewfinder)
:top (:y viewfinder)})

(def view-finder-border-container
{:flex-direction :row
:justify-content :space-between})

(def camera-flash-button
{:position :absolute
:right 20
:bottom 20})

(def border
{:border-color colors/white
:width 78
:height 78})
(defn border
[border1 border2 corner]
(assoc {:border-color colors/white
:width 78
:height 78}
border1
2
border2
2
corner
16))

(defn border-tip
[top bottom right left]
Expand Down
17 changes: 8 additions & 9 deletions src/status_im2/contexts/syncing/scan_sync_code/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@

(defn- border
[border1 border2 corner]
[rn/view
(assoc style/border border1 2 border2 2 corner 16)])
[rn/view {:style (style/border border1 border2 corner)}])

(defn- border-tip
[{:keys [top bottom left right]}]
Expand All @@ -158,7 +157,7 @@
[rn/view
{:style (style/qr-view-finder-container size)}
[rn/view
{:flex-direction :row :justify-content :space-between}
{:style style/view-finder-border-container}
[rn/view
[border :border-top-width :border-left-width :border-top-left-radius]
[border-tip {:right -1 :top 0}]
Expand All @@ -177,12 +176,12 @@
[border-tip {:right 0 :top -1}]
[border-tip {:left -1 :bottom 0}]]]
[quo/button
{:icon true
:type :blur-bg
:size 32
:accessibility-label :camera-flash
:on-press #()
:style style/camera-flash-button}
{:icon true
:type :blur-bg
:size 32
:accessibility-label :camera-flash
:override-background-color colors/neutral-80-opa-40
:style style/camera-flash-button}
:i/flashlight-off]]
[quo/text
{:size :paragraph-2
Expand Down

0 comments on commit f413502

Please sign in to comment.