diff options
| author | Polesznyák Márk László <116908301+pml68@users.noreply.github.com> | 2025-04-29 23:35:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-29 23:35:39 +0200 |
| commit | ca50c308f0058af80e9125ba00a1349877169968 (patch) | |
| tree | 38fbd5c78c90487e5b641f635d01c4a614ddfd44 /src/icon.rs | |
| parent | Merge pull request #14 from pml68/dependabot/cargo/windows_exe_info-0.5.1 (diff) | |
| parent | style: `theme` -> `appearance` (diff) | |
| download | iced-builder-ca50c308f0058af80e9125ba00a1349877169968.tar.gz | |
Merge pull request #20 from pml68/feat/custom-theme
Diffstat (limited to 'src/icon.rs')
| -rw-r--r-- | src/icon.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/icon.rs b/src/icon.rs index 9dc0a89..d218943 100644 --- a/src/icon.rs +++ b/src/icon.rs @@ -1,8 +1,10 @@ // Generated automatically by iced_fontello at build time. // Do not edit manually. Source: ../fonts/icons.toml -// 02c7558d187cdc056fdd0e6a638ef805fa10f5955f834575e51d75acd35bc70e -use iced::widget::{text, Text}; +// 915ea6b0646871c0f04350f201f27f28881b61f3bd6ef292a415d67a211739c1 use iced::Font; +use iced::widget::text; + +use crate::widget::Text; pub const FONT: &[u8] = include_bytes!("../fonts/icons.ttf"); @@ -18,6 +20,10 @@ pub fn save<'a>() -> Text<'a> { icon("\u{1F4BE}") } +pub fn switch<'a>() -> Text<'a> { + icon("\u{21C6}") +} + fn icon(codepoint: &str) -> Text<'_> { text(codepoint).font(Font::with_name("icons")) } |
