Refine status bar design (#34324)
Experimenting with a set of standardized icons and polishing spacing a little bit. Release Notes: - N/A
This commit is contained in:
parent
e070c81687
commit
46834d31f1
13 changed files with 59 additions and 38 deletions
|
@ -221,9 +221,9 @@ pub enum DockPosition {
|
|||
impl DockPosition {
|
||||
fn label(&self) -> &'static str {
|
||||
match self {
|
||||
Self::Left => "left",
|
||||
Self::Bottom => "bottom",
|
||||
Self::Right => "right",
|
||||
Self::Left => "Left",
|
||||
Self::Bottom => "Bottom",
|
||||
Self::Right => "Right",
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -864,7 +864,7 @@ impl Render for PanelButtons {
|
|||
let action = dock.toggle_action();
|
||||
|
||||
let tooltip: SharedString =
|
||||
format!("Close {} dock", dock.position.label()).into();
|
||||
format!("Close {} Dock", dock.position.label()).into();
|
||||
|
||||
(action, tooltip)
|
||||
} else {
|
||||
|
@ -923,6 +923,7 @@ impl Render for PanelButtons {
|
|||
.collect();
|
||||
|
||||
let has_buttons = !buttons.is_empty();
|
||||
|
||||
h_flex()
|
||||
.gap_1()
|
||||
.children(buttons)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue