feat: CosmicTk::header_size density config

This commit is contained in:
Michael Aaron Murphy 2024-05-27 21:49:49 +02:00 committed by Jeremy Soller
parent f0bfa87a36
commit 6720b8277c
8 changed files with 118 additions and 79 deletions

View file

@ -42,13 +42,9 @@ impl<'a, Message: 'static + Clone> From<NavBarToggle<Message>> for Element<'a, M
};
widget::button::icon(icon)
.padding([8, 16, 8, 16])
.on_press_maybe(nav_bar_toggle.on_toggle)
.selected(nav_bar_toggle.selected)
.style(nav_bar_toggle.style)
.apply(widget::container)
.center_y()
.height(Length::Fill)
.into()
}
}