Skip to content

Commit ab86e22

Browse files
committed
address design feedback on profile share UI
1 parent f38c855 commit ab86e22

File tree

2 files changed

+47
-29
lines changed

2 files changed

+47
-29
lines changed

src/status_im2/contexts/share/style.cljs

+27-19
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,41 @@
55
(def screen-padding 20)
66

77
(def blur
8-
{:style {:position :absolute
9-
:top 0
10-
:left 0
11-
:right 0
12-
:bottom 0}
13-
:overlay-color colors/neutral-80-opa-80
14-
:blur-amount 20})
8+
{:style {:position :absolute
9+
:top 0
10+
:left 0
11+
:right 0
12+
:bottom 0}
13+
:background-color colors/neutral-80-opa-40
14+
:blur-amount 20})
15+
16+
(def header-row
17+
{:flex-direction :row
18+
:justify-content :space-between
19+
:padding-horizontal screen-padding
20+
:margin-vertical 12})
1521

1622
(def header-button
17-
{:margin-bottom 12
18-
:margin-left screen-padding})
23+
{:margin-bottom 12
24+
:margin-left screen-padding
25+
:background-color colors/white-opa-5})
1926

2027
(def header-heading
2128
{:padding-horizontal screen-padding
2229
:padding-vertical 12
2330
:color colors/white})
2431

2532
(def qr-code-container
26-
{:padding 12
27-
:border-radius 16
28-
:margin-top 12
29-
:margin-bottom 4
30-
:margin-horizontal screen-padding
31-
:background-color colors/white-opa-5
32-
:flex-direction :column
33-
:justify-content :center})
33+
{:padding-top 12
34+
:padding-bottom 8
35+
:padding-horizontal 12
36+
:border-radius 16
37+
:margin-top 12
38+
:margin-bottom 4
39+
:margin-horizontal screen-padding
40+
:background-color colors/white-opa-5
41+
:flex-direction :column
42+
:justify-content :center})
3443

3544
(def emoji-hash-container
3645
{:border-radius 16
@@ -59,13 +68,12 @@
5968
(def profile-address-container
6069
{:flex-direction :row
6170
:justify-content :flex-start
62-
:margin-top 6
71+
:margin-top 4
6372
:margin-horizontal 4})
6473

6574
(def emoji-address-container
6675
{:flex-direction :row
6776
:justify-content :flex-start
68-
:margin-top 6
6977
:margin-horizontal 4})
7078

7179
(def emoji-hash-label

src/status_im2/contexts/share/view.cljs

+20-10
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,30 @@
1515
(defn header
1616
[]
1717
[:<>
18-
[quo/button
19-
{:icon true
20-
:type :blur-bg
21-
:size 32
22-
:accessibility-label :close-shell-share-tab
23-
:override-theme :dark
24-
:style style/header-button
25-
:on-press #(rf/dispatch [:navigate-back])}
26-
:i/close]
18+
[rn/view {:style style/header-row}
19+
[quo/button
20+
{:icon true
21+
:type :blur-bg
22+
:size 32
23+
:accessibility-label :close-shell-share-tab
24+
:override-theme :dark
25+
:on-press #(rf/dispatch [:navigate-back])}
26+
:i/close]
27+
[quo/button
28+
{:icon true
29+
:type :blur-bg
30+
:size 32
31+
:accessibility-label :shell-scan-button
32+
:override-theme :dark
33+
:on-press #(rf/dispatch [:navigate-back])}
34+
:i/scan]
35+
]
2736
[quo/text
2837
{:size :heading-1
2938
:weight :semi-bold
3039
:style style/header-heading}
31-
(i18n/label :t/share)]])
40+
(i18n/label :t/share)]
41+
])
3242

3343
(defn abbreviated-url
3444
"The goal here is to generate a string that begins with

0 commit comments

Comments
 (0)