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
.align_y(Alignment::Center)
17
}
18
0
0
0
0
0
0
0
0
0
0
0
0
19
pub fn bars_solid() -> Text<'static> {
20
icon_solid('\u{f0c9}')
21
}
···
24
icon_solid('\u{f07b}')
25
}
26
0
0
0
0
27
pub fn bell_solid() -> Text<'static> {
28
icon_solid('\u{f0f3}')
0
0
0
0
29
}
30
31
pub fn desktop_solid() -> Text<'static> {
···
16
.align_y(Alignment::Center)
17
}
18
19
+
pub fn icon_regular(unicode: char) -> Text<'static> {
20
+
text(unicode.to_string())
21
+
.font(Font {
22
+
family: Family::Name("Font Awesome 6 Free"),
23
+
weight: Weight::Normal,
24
+
..Font::DEFAULT
25
+
})
26
+
.size(28)
27
+
.align_x(Alignment::Center)
28
+
.align_y(Alignment::Center)
29
+
}
30
+
31
pub fn bars_solid() -> Text<'static> {
32
icon_solid('\u{f0c9}')
33
}
···
36
icon_solid('\u{f07b}')
37
}
38
39
+
pub fn folder_regular() -> Text<'static> {
40
+
icon_regular('\u{f07b}')
41
+
}
42
+
43
pub fn bell_solid() -> Text<'static> {
44
icon_solid('\u{f0f3}')
45
+
}
46
+
47
+
pub fn bell_regular() -> Text<'static> {
48
+
icon_regular('\u{f0f3}')
49
}
50
51
pub fn desktop_solid() -> Text<'static> {