feat: rework window layout around panel stack (#36)
Reviewed-on: #36
This commit was merged in pull request #36.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
||||
<path d="M10.25 3.75H3.75V10.25" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M20.25 13.75V20.25H13.75" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M4.52344 4.52344L10.25 10.25" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M13.75 13.75L19.4766 19.4766" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 555 B |
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
||||
<path d="M10.25 3.75V10.25M10.25 10.25H3.75M10.25 10.25L3.75 3.75" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M13.75 20.25V13.75M13.75 13.75H20.25M13.75 13.75L20.25 20.25" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 383 B |
+15
-11
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user