feat: rework window layout around panel stack (#36)
Rust / build (macos-latest, stable) (push) Canceled after 0s
Rust / build (ubuntu-latest, stable) (push) Canceled after 0s
Rust / build (windows-latest, stable) (push) Canceled after 0s

Reviewed-on: #36
This commit was merged in pull request #36.
This commit is contained in:
2026-11-24 03:42:54 +00:00
parent 81a46abbe5
commit a2abfb2f27
99 changed files with 6145 additions and 8891 deletions
+15 -11
View File
@@ -62,6 +62,8 @@ pub enum IconRole {
PanelLeft,
UnfoldVertical,
Download,
Maximize,
Minimize,
}
impl IconRole {
@@ -112,6 +114,8 @@ impl IconRole {
Self::PanelLeft => "panel-left",
Self::UnfoldVertical => "unfold-vertical",
Self::Download => "download",
Self::Maximize => "maximize",
Self::Minimize => "minimize",
}
}
@@ -150,17 +154,6 @@ pub struct Icon {
rotation_period: Option<Duration>,
}
/// Creates an icon for the role at the default size.
pub fn icon(role: IconRole) -> Icon {
Icon {
glyph: Glyph::Role(role),
size: AbsoluteLength::Rems(DEFAULT_ICON_SIZE),
color: None,
transformation: None,
rotation_period: None,
}
}
impl Icon {
/// Creates an icon from an application-defined icon set.
pub fn named<I>(named: I) -> Self
@@ -306,3 +299,14 @@ impl AssetSource for Assets {
.collect())
}
}
/// Creates an icon for the role at the default size.
pub fn icon(role: IconRole) -> Icon {
Icon {
glyph: Glyph::Role(role),
size: AbsoluteLength::Rems(DEFAULT_ICON_SIZE),
color: None,
transformation: None,
rotation_period: None,
}
}