1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Generated automatically by iced_fontello at build time.
// Do not edit manually. Source: ../fonts/icons.toml
// 0a164ed48e8a0ef9ffb68cfe442a0cabc6c251beb644b51d01da8e5b7fdbd34e
use iced::Font;
use iced::advanced::text::Renderer as TextRenderer;
use iced::widget::{Text, text};
pub const FONT: &[u8] = include_bytes!("../fonts/icons.ttf");
pub fn copy<'a, Theme, Renderer>() -> Text<'a, Theme, Renderer>
where
Theme: text::Catalog + 'a,
Renderer: TextRenderer<Font = Font>
{
icon("\u{F1C9}")
}
pub fn switch<'a, Theme, Renderer>() -> Text<'a, Theme, Renderer>
where
Theme: text::Catalog + 'a,
Renderer: TextRenderer<Font = Font>
{
icon("\u{21C6}")
}
fn icon<'a, Theme, Renderer>(codepoint: &'a str) -> Text<'a, Theme, Renderer>
where
Theme: text::Catalog + 'a,
Renderer: TextRenderer<Font = Font>
{
text(codepoint).font(Font::new("icons"))
}
|