summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--schist_desktop_gui/src/gui/components/panel.rs4
-rw-r--r--schist_desktop_gui/src/gui/components/text.rs8
-rw-r--r--schist_desktop_gui/src/style.rs2
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;