Add padding to the header bar

This commit is contained in:
Eduardo Flores 2022-10-06 22:00:04 -07:00 committed by Michael Murphy
parent 4ae03278cc
commit f5ccd15761
2 changed files with 2 additions and 12 deletions

View file

@ -141,16 +141,6 @@ impl Application for Window {
nav_button!("system-software-update", "OS Upgrade & Recovery", condensed) nav_button!("system-software-update", "OS Upgrade & Recovery", condensed)
.on_press(Message::Page(2)) .on_press(Message::Page(2))
.style(if self.page == 2 { theme::Button::Primary } else { theme::Button::Text }) .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 { .max_width(if condensed {
100 100

View file

@ -90,8 +90,8 @@ impl HeaderBar {
}; };
widget::row(vec![navbutton, content, window_controls]) widget::row(vec![navbutton, content, window_controls])
.height(Length::Units(48)) .height(Length::Units(50))
.padding(4) .padding(8)
.apply(widget::event_container) .apply(widget::event_container)
.center_y() .center_y()
.on_press(T::from(WindowMsg::Drag)) .on_press(T::from(WindowMsg::Drag))