|
1 | 1 | const MARK_WHITE_24: &'static str = r##"
|
2 | 2 | <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
3 |
| -<defs><linearGradient id="Gradient1" x1="0" x2="0" y1="0" y2="32"> |
4 |
| -<stop offset="0%" stop-color="#242424"/> |
5 |
| -<stop offset="50%" stop-color="#202020"/> |
6 |
| -<stop offset="100%" stop-color="#1c1c1c"/> |
| 3 | +<defs><linearGradient id="Gradient1" x1="0%" x2="0%" y1="0%" y2="100%"> |
| 4 | +<stop offset="0%" style="stop-color:#777;stop-opacity:1" /> |
| 5 | +<stop offset="100%" style="stop-color:#222;stop-opacity:1" /> |
7 | 6 | </linearGradient></defs>
|
8 | 7 | <rect x="1" y="1" width="30" height="30" rx="7.7" fill="url(#Gradient1)" />
|
9 |
| -<circle opacity="0.2" cx="7.9" cy="7.30" r="2.7" fill="white" /> |
10 |
| -<circle opacity="0.2" cx="16.0" cy="7.30" r="2.7" fill="white" /> |
11 |
| -<circle opacity="0.2" cx="24.0" cy="7.30" r="2.7" fill="white" /> |
| 8 | +<circle opacity="0.4" cx="7.9" cy="7.30" r="2.7" fill="white" /> |
| 9 | +<circle opacity="0.4" cx="16.0" cy="7.30" r="2.7" fill="white" /> |
| 10 | +<circle opacity="0.4" cx="24.0" cy="7.30" r="2.7" fill="white" /> |
12 | 11 | <circle opacity="1.0" cx="7.9" cy="15.8" r="2.7" fill="white" />
|
13 | 12 | <circle opacity="1.0" cx="16.0" cy="15.8" r="2.7" fill="white" />
|
14 | 13 | <circle opacity="1.0" cx="24.0" cy="15.8" r="2.7" fill="white" />
|
15 |
| -<circle opacity="0.2" cx="7.9" cy="24.0" r="2.7" fill="white" /> |
| 14 | +<circle opacity="0.4" cx="7.9" cy="24.0" r="2.7" fill="white" /> |
16 | 15 | <circle opacity="1.0" cx="16.0" cy="24.0" r="2.7" fill="white" />
|
17 |
| -<circle opacity="0.2" cx="24.0" cy="24.0" r="2.7" fill="white" /> |
| 16 | +<circle opacity="0.4" cx="24.0" cy="24.0" r="2.7" fill="white" /> |
18 | 17 | </svg>
|
19 | 18 | "##;
|
20 | 19 |
|
21 | 20 | pub fn load_icon(enabled: bool) -> Vec<ksni::Icon> {
|
22 | 21 | match enabled {
|
23 | 22 | true => vec![to_icon(MARK_WHITE_24)],
|
24 |
| - false => vec![to_icon(&MARK_WHITE_24.replace("1.0", "0.2"))], |
| 23 | + false => vec![to_icon(&MARK_WHITE_24.replace("1.0", "0.4"))], |
25 | 24 | }
|
26 | 25 | }
|
27 | 26 | fn to_icon(svg_str: &str) -> ksni::Icon {
|
|
0 commit comments