tangled
alpha
login
or
join now
lesbian.skin
/
nanel
1
fork
atom
[MIRROR] https://codeberg.org/naomi/nanel
1
fork
atom
overview
issues
pulls
pipelines
Add non-solid icon variants
lesbian.skin
1 year ago
a1eaee68
ac19fb85
+20
1 changed file
expand all
collapse all
unified
split
src
icons.rs
+20
src/icons.rs
···
16
16
.align_y(Alignment::Center)
17
17
}
18
18
19
19
+
pub fn icon_regular(unicode: char) -> Text<'static> {
20
20
+
text(unicode.to_string())
21
21
+
.font(Font {
22
22
+
family: Family::Name("Font Awesome 6 Free"),
23
23
+
weight: Weight::Normal,
24
24
+
..Font::DEFAULT
25
25
+
})
26
26
+
.size(28)
27
27
+
.align_x(Alignment::Center)
28
28
+
.align_y(Alignment::Center)
29
29
+
}
30
30
+
19
31
pub fn bars_solid() -> Text<'static> {
20
32
icon_solid('\u{f0c9}')
21
33
}
···
24
36
icon_solid('\u{f07b}')
25
37
}
26
38
39
39
+
pub fn folder_regular() -> Text<'static> {
40
40
+
icon_regular('\u{f07b}')
41
41
+
}
42
42
+
27
43
pub fn bell_solid() -> Text<'static> {
28
44
icon_solid('\u{f0f3}')
45
45
+
}
46
46
+
47
47
+
pub fn bell_regular() -> Text<'static> {
48
48
+
icon_regular('\u{f0f3}')
29
49
}
30
50
31
51
pub fn desktop_solid() -> Text<'static> {