File tree 2 files changed +47
-29
lines changed
src/status_im2/contexts/share
2 files changed +47
-29
lines changed Original file line number Diff line number Diff line change 5
5
(def screen-padding 20 )
6
6
7
7
(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 })
15
21
16
22
(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})
19
26
20
27
(def header-heading
21
28
{:padding-horizontal screen-padding
22
29
:padding-vertical 12
23
30
:color colors/white})
24
31
25
32
(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 })
34
43
35
44
(def emoji-hash-container
36
45
{:border-radius 16
59
68
(def profile-address-container
60
69
{:flex-direction :row
61
70
:justify-content :flex-start
62
- :margin-top 6
71
+ :margin-top 4
63
72
:margin-horizontal 4 })
64
73
65
74
(def emoji-address-container
66
75
{:flex-direction :row
67
76
:justify-content :flex-start
68
- :margin-top 6
69
77
:margin-horizontal 4 })
70
78
71
79
(def emoji-hash-label
Original file line number Diff line number Diff line change 15
15
(defn header
16
16
[]
17
17
[:<>
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
+ ]
27
36
[quo/text
28
37
{:size :heading-1
29
38
:weight :semi-bold
30
39
:style style/header-heading}
31
- (i18n/label :t/share )]])
40
+ (i18n/label :t/share )]
41
+ ])
32
42
33
43
(defn abbreviated-url
34
44
" The goal here is to generate a string that begins with
You can’t perform that action at this time.
0 commit comments