File tree 2 files changed +14
-14
lines changed
src/quo2/components/notifications/toast
2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 3
3
[quo2.foundations.colors :as colors]
4
4
[quo2.foundations.shadows :as shadows]))
5
5
6
- (def box-container
7
- {:margin-horizontal 12
8
- :border-radius 12
9
- :overflow :hidden })
6
+ (defn box-container
7
+ [theme]
8
+ (merge (shadows/get 1 theme)
9
+ {:margin-horizontal 12
10
+ :border-radius 12
11
+ :overflow :hidden }))
10
12
11
13
(def blur-container
12
14
{:height " 100%"
19
21
20
22
(defn content-container
21
23
[theme]
22
- (merge
23
- (shadows/get 1 theme)
24
- {:background-color (colors/theme-colors colors/neutral-80-opa-70 colors/white-opa-70 theme)
25
- :flex-direction :row
26
- :justify-content :space-between
27
- :padding-vertical 8
28
- :padding-left 10
29
- :padding-right 8
30
- :border-radius 12 }))
24
+ {:background-color (colors/theme-colors colors/neutral-80-opa-70 colors/white-opa-70 theme)
25
+ :flex-direction :row
26
+ :justify-content :space-between
27
+ :padding-vertical 8
28
+ :padding-left 10
29
+ :padding-right 8
30
+ :border-radius 12 })
31
31
32
32
(defn title
33
33
[theme]
Original file line number Diff line number Diff line change 37
37
38
38
(defn- toast-container-internal
39
39
[{:keys [left title text right container-style theme]}]
40
- [rn/view {:style (merge style/box-container container-style)}
40
+ [rn/view {:style (merge ( style/box-container theme) container-style)}
41
41
[blur/view
42
42
{:style style/blur-container
43
43
:blur-amount 13
You can’t perform that action at this time.
0 commit comments