File tree 3 files changed +54
-40
lines changed
status_im2/contexts/share
3 files changed +54
-40
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
+ {:position :absolute
9
+ :top 0
10
+ :left 0
11
+ :right 0
12
+ :bottom 0 })
13
+
14
+ (def header-row
15
+ {:flex-direction :row
16
+ :justify-content :space-between
17
+ :padding-horizontal screen-padding
18
+ :margin-vertical 12 })
15
19
16
20
(def header-button
17
- {:margin-bottom 12
18
- :margin-left screen-padding})
21
+ {:margin-bottom 12
22
+ :margin-left screen-padding
23
+ :background-color colors/white-opa-5})
19
24
20
25
(def header-heading
21
26
{:padding-horizontal screen-padding
22
27
:padding-vertical 12
23
28
:color colors/white})
24
29
25
30
(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 })
31
+ {:padding-top 12
32
+ :padding-bottom 8
33
+ :padding-horizontal 12
34
+ :border-radius 16
35
+ :margin-top 8
36
+ :margin-horizontal screen-padding
37
+ :background-color colors/white-opa-5
38
+ :flex-direction :column
39
+ :justify-content :center })
34
40
35
41
(def emoji-hash-container
36
42
{:border-radius 16
57
63
:padding-top 2 })
58
64
59
65
(def profile-address-container
60
- {:flex-direction :row
61
- :justify-content :flex-start
62
- :margin-top 6
63
- :margin-horizontal 4 })
66
+ {:flex-direction :row
67
+ :justify-content :flex-start
68
+ :margin-top 4 })
64
69
65
70
(def emoji-address-container
66
- {:flex-direction :row
67
- :justify-content :flex-start
68
- :margin-top 6
69
- :margin-horizontal 4 })
71
+ {:flex-direction :row
72
+ :justify-content :flex-start })
70
73
71
74
(def emoji-hash-label
72
75
{:color colors/white-opa-40
82
85
83
86
(def emoji-share-button-container
84
87
{:position :absolute
85
- :right 4
88
+ :right 0
86
89
:top 16 })
87
90
88
91
(def emoji-hash-content
91
94
:padding-top 4
92
95
:padding-bottom 12
93
96
:padding-left 12
94
- :font-size 14 })
97
+ :font-size 13 })
95
98
96
99
(def tabs-container
97
100
{:padding-horizontal screen-padding
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 ]]
27
35
[quo/text
28
36
{:size :heading-1
29
37
:weight :semi-bold
34
42
" The goal here is to generate a string that begins with
35
43
join.status.im/u/ joined with the 1st 5 characters
36
44
of the compressed public key followed by an ellipsis followed by
37
- the last 12 characters of the compressed public key"
45
+ the last 10 characters of the compressed public key"
38
46
[base-url public-pk]
39
47
(let [first-part-of-public-pk (subs public-pk 0 5 )
40
48
ellipsis " ..."
41
49
public-pk-size (count public-pk)
42
- last-part-of-public-pk (subs public-pk (- public-pk-size 12 ) (- public-pk-size 1 ))
50
+ last-part-of-public-pk (subs public-pk (- public-pk-size 10 ) (- public-pk-size 1 ))
43
51
abbreviated-url (str base-url first-part-of-public-pk ellipsis last-part-of-public-pk)]
44
52
abbreviated-url))
45
53
164
172
[rn/view
165
173
{:flex 1
166
174
:padding-top (navigation/status-bar-height )}
167
- [blur/view style/blur]
175
+ [blur/view
176
+ {:style style/blur
177
+ :background-color colors/neutral-80-opa-80-blur
178
+ :blur-amount 20 }]
168
179
[tab-content window-width]])))
Original file line number Diff line number Diff line change 77
77
" &allowProfileImage="
78
78
superimpose-profile?
79
79
" &size="
80
- qr-size
80
+ ( * 2 qr-size)
81
81
" &imageName="
82
82
profile-image-type)]
83
83
media-server-url))
You can’t perform that action at this time.
0 commit comments