Adjust padding for nav bar and content
This commit is contained in:
parent
c46207a993
commit
dd13b8300c
3 changed files with 6 additions and 3 deletions
|
|
@ -463,7 +463,7 @@ impl Application for Window {
|
||||||
);
|
);
|
||||||
|
|
||||||
container(row(widgets))
|
container(row(widgets))
|
||||||
.padding([16, 16])
|
.padding([0, 8, 8, 8])
|
||||||
.width(Length::Fill)
|
.width(Length::Fill)
|
||||||
.height(Length::Fill)
|
.height(Length::Fill)
|
||||||
.into()
|
.into()
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ impl<'a, Message: Clone + 'static> HeaderBar<'a, Message> {
|
||||||
|
|
||||||
let mut widget = widget::row(packed)
|
let mut widget = widget::row(packed)
|
||||||
.height(Length::Units(50))
|
.height(Length::Units(50))
|
||||||
.padding(10)
|
.padding(8)
|
||||||
.apply(widget::container)
|
.apply(widget::container)
|
||||||
.center_y()
|
.center_y()
|
||||||
.apply(widget::mouse_listener);
|
.apply(widget::mouse_listener);
|
||||||
|
|
|
||||||
|
|
@ -13,5 +13,8 @@ use iced::widget::{column, Column};
|
||||||
/// A column with a predefined style for creating a settings panel
|
/// A column with a predefined style for creating a settings panel
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn view_column<Message: 'static>(children: Vec<Element<Message>>) -> Column<Message, Renderer> {
|
pub fn view_column<Message: 'static>(children: Vec<Element<Message>>) -> Column<Message, Renderer> {
|
||||||
column(children).spacing(24).padding(24).max_width(600)
|
column(children)
|
||||||
|
.spacing(24)
|
||||||
|
.padding([0, 24])
|
||||||
|
.max_width(678)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue