Add abouts page, improve settings list padding

This commit is contained in:
Jeremy Soller 2022-12-21 12:18:54 -07:00
parent 343a855816
commit e21f1ec7b8
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
3 changed files with 36 additions and 4 deletions

View file

@ -29,7 +29,7 @@ impl<'a, Message: 'static> ListColumn<'a, Message> {
#[must_use]
pub fn add(mut self, item: impl Into<Element<'a, Message>>) -> Self {
if !self.children.is_empty() {
self.children.push(horizontal_rule(12).into());
self.children.push(horizontal_rule(10).into());
}
self.children.push(item.into());
@ -41,7 +41,7 @@ impl<'a, Message: 'static> ListColumn<'a, Message> {
iced::widget::column(self.children)
.spacing(12)
.apply(iced::widget::container)
.padding([12, 16])
.padding([16, 6])
.style(theme::Container::Custom(style))
.into()
}

View file

@ -23,6 +23,6 @@ pub fn item<'a, Message: 'static>(
pub fn item_row<Message>(children: Vec<Element<Message>>) -> iced::widget::Row<Message, Renderer> {
iced::widget::row(children)
.align_items(iced::Alignment::Center)
.padding([0, 8])
.padding([0, 18])
.spacing(12)
}