From f5ccd1576197917135a104693fe0592a01aa112e Mon Sep 17 00:00:00 2001 From: Eduardo Flores Date: Thu, 6 Oct 2022 22:00:04 -0700 Subject: [PATCH] Add padding to the header bar --- examples/cosmic/src/main.rs | 10 ---------- src/widget/headerbar.rs | 4 ++-- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/examples/cosmic/src/main.rs b/examples/cosmic/src/main.rs index e3624b44..6e0c53db 100644 --- a/examples/cosmic/src/main.rs +++ b/examples/cosmic/src/main.rs @@ -141,16 +141,6 @@ impl Application for Window { nav_button!("system-software-update", "OS Upgrade & Recovery", condensed) .on_press(Message::Page(2)) .style(if self.page == 2 { theme::Button::Primary } else { theme::Button::Text }) - , - nav_button!("system-software-update", "OS Upgrade & Recovery", condensed) - .on_press(Message::Page(2)) - .style(if self.page == 2 { theme::Button::Primary } else { theme::Button::Text }), - nav_button!("system-software-update", "OS Upgrade & Recovery", condensed) - .on_press(Message::Page(2)) - .style(if self.page == 2 { theme::Button::Primary } else { theme::Button::Text }), - nav_button!("system-software-update", "OS Upgrade & Recovery", condensed) - .on_press(Message::Page(2)) - .style(if self.page == 2 { theme::Button::Primary } else { theme::Button::Text }) ) .max_width(if condensed { 100 diff --git a/src/widget/headerbar.rs b/src/widget/headerbar.rs index f13be711..aa572f3e 100644 --- a/src/widget/headerbar.rs +++ b/src/widget/headerbar.rs @@ -90,8 +90,8 @@ impl HeaderBar { }; widget::row(vec![navbutton, content, window_controls]) - .height(Length::Units(48)) - .padding(4) + .height(Length::Units(50)) + .padding(8) .apply(widget::event_container) .center_y() .on_press(T::from(WindowMsg::Drag))