diff options
| author | Joe Carstairs <me@joeac.net> | 2026-02-12 10:14:40 +0000 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-02-12 10:16:18 +0000 |
| commit | b1988df5603a427994371d8176bce0c6c1f06fc2 (patch) | |
| tree | 203e8f02cdf8a91f90e4bb1933d2f876ac00ded4 /schist_desktop_gui/src | |
| parent | 13f4d97a70cfaeb1e78bbc68ff73bd69de081cb2 (diff) | |
task-085: rename small -> v_small
Diffstat (limited to 'schist_desktop_gui/src')
| -rw-r--r-- | schist_desktop_gui/src/gui/components/panel.rs | 4 | ||||
| -rw-r--r-- | schist_desktop_gui/src/gui/components/text.rs | 8 | ||||
| -rw-r--r-- | schist_desktop_gui/src/style.rs | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/schist_desktop_gui/src/gui/components/panel.rs b/schist_desktop_gui/src/gui/components/panel.rs index 364659b..85bfb97 100644 --- a/schist_desktop_gui/src/gui/components/panel.rs +++ b/schist_desktop_gui/src/gui/components/panel.rs @@ -39,7 +39,7 @@ where cols.push( Text::default(err) .highlight_maybe(value.is_focused) - .small() + .v_small() .danger() .into(), ); @@ -48,7 +48,7 @@ where cols.push( Text::default(small) .highlight_maybe(value.is_focused) - .small() + .v_small() .weak() .into(), ); diff --git a/schist_desktop_gui/src/gui/components/text.rs b/schist_desktop_gui/src/gui/components/text.rs index 0d0c8c4..b67a7aa 100644 --- a/schist_desktop_gui/src/gui/components/text.rs +++ b/schist_desktop_gui/src/gui/components/text.rs @@ -34,7 +34,7 @@ enum Strength { #[derive(Clone, Debug, PartialEq)] enum Size { - Small, + VSmall, Base, } @@ -67,9 +67,9 @@ impl Text { <Self as Into<iced::Element<'a, Message>>>::into(self) } - pub fn small(&self) -> Self { + pub fn v_small(&self) -> Self { Self { - size: Some(Size::Small), + size: Some(Size::VSmall), ..self.clone() } } @@ -132,7 +132,7 @@ where { iced::widget::text(text.borrow().content.clone()) .size(match text.borrow().size { - Some(Size::Small) => TEXT_SIZE_SM, + Some(Size::VSmall) => TEXT_SIZE_V_SM, Some(Size::Base) | None => TEXT_SIZE_BASE, }) .align_x(match &text.borrow().align { diff --git a/schist_desktop_gui/src/style.rs b/schist_desktop_gui/src/style.rs index c2ecb02..45a9aeb 100644 --- a/schist_desktop_gui/src/style.rs +++ b/schist_desktop_gui/src/style.rs @@ -1,5 +1,5 @@ pub const SPACING_MD: u16 = 24; pub const SPACING_LG: u16 = 32; -pub const TEXT_SIZE_SM: u16 = 12; +pub const TEXT_SIZE_V_SM: u16 = 12; pub const TEXT_SIZE_BASE: u16 = 16; |
