|
6 | 6 | [customization-color theme]
|
7 | 7 | {:normal {:checked (colors/resolve-color customization-color theme)
|
8 | 8 | :unchecked (colors/theme-colors colors/neutral-30 colors/neutral-80 theme)}
|
9 |
| - :blur {:checked (colors/theme-colors (colors/custom-color customization-color 50) |
| 9 | + :blur {:checked (colors/theme-colors (colors/resolve-color customization-color theme) |
10 | 10 | colors/white-opa-70
|
11 | 11 | theme)
|
12 | 12 | :unchecked (colors/theme-colors colors/neutral-80-opa-20 colors/white-opa-10 theme)}})
|
|
15 | 15 | [customization-color theme]
|
16 | 16 | {:normal {:checked (colors/resolve-color customization-color theme)
|
17 | 17 | :unchecked (colors/theme-colors colors/neutral-30 colors/neutral-70 theme)}
|
18 |
| - :blur {:checked (colors/theme-colors (colors/custom-color customization-color 50) |
| 18 | + :blur {:checked (colors/theme-colors (colors/resolve-color customization-color theme) |
19 | 19 | colors/white
|
20 | 20 | theme)
|
21 | 21 | :unchecked (colors/theme-colors colors/neutral-80-opa-20 colors/white-opa-40 theme)}})
|
|
29 | 29 | [customization-color theme]
|
30 | 30 | {:normal {:checked (colors/resolve-color customization-color theme)
|
31 | 31 | :unchecked (colors/theme-colors colors/white-opa-40 colors/neutral-80-opa-40 theme)}
|
32 |
| - :blur {:checked (colors/theme-colors (colors/custom-color customization-color 50) |
| 32 | + :blur {:checked (colors/theme-colors (colors/resolve-color customization-color theme) |
33 | 33 | colors/white)
|
34 | 34 | :unchecked colors/white-opa-5}})
|
35 | 35 |
|
|
38 | 38 | {:normal (colors/theme-colors colors/neutral-30 colors/neutral-70 theme)
|
39 | 39 | :blur (colors/theme-colors colors/neutral-80-opa-20 colors/white-opa-40 theme)})
|
40 | 40 |
|
41 |
| -(defn- checkbox-prefill-background-color |
| 41 | +(defn- filled-checkbox-background-color |
42 | 42 | [theme]
|
43 | 43 | {:normal (colors/theme-colors colors/neutral-30 colors/neutral-80 theme)
|
44 | 44 | :blur (colors/theme-colors colors/neutral-80-opa-10 colors/white-opa-10 theme)})
|
|
119 | 119 | (colors/theme-colors colors/white colors/neutral-100 theme)
|
120 | 120 | colors/white)})
|
121 | 121 |
|
122 |
| -(defn checkbox-prefill |
| 122 | +(defn filled-checkbox |
123 | 123 | [{:keys [disabled? blur? container-style theme]}]
|
124 | 124 | (assoc container-style
|
125 | 125 | :height 21
|
126 | 126 | :width 21
|
127 | 127 | :border-radius 6
|
128 | 128 | :opacity (if disabled? 0.3 1)
|
129 |
| - :background-color (get-color (checkbox-prefill-background-color theme) blur?))) |
| 129 | + :background-color (get-color (filled-checkbox-background-color theme) blur?))) |
130 | 130 |
|
131 |
| -(defn checkbox-prefill-check |
| 131 | +(defn filled-checkbox-check |
132 | 132 | [checked? _blur? theme]
|
133 | 133 | {:size 20
|
134 | 134 | :color (when checked? (colors/theme-colors colors/neutral-100 colors/white theme))})
|
|
0 commit comments