fix: incorrect font weights, sizes, line heights

This commit is contained in:
Michael Aaron Murphy 2023-05-30 23:46:49 +02:00 committed by Michael Murphy
parent f06a81ccf9
commit 31f7e97d5b
8 changed files with 37 additions and 21 deletions

View file

@ -15,7 +15,7 @@ pub fn item<'a, Message: 'static>(
widget: impl Into<Element<'a, Message>>,
) -> Row<'a, Message, Renderer> {
item_row(vec![
text(title).size(20).into(),
text(title).into(),
horizontal_space(iced::Length::Fill).into(),
widget.into(),
])
@ -65,12 +65,12 @@ impl<'a, Message: 'static> Item<'a, Message> {
}
if let Some(description) = self.description {
let title = text(self.title).size(20);
let desc = text(description).size(14);
let title = text(self.title);
let desc = text(description).size(10);
contents.push(column!(title, desc).spacing(2).into());
} else {
contents.push(text(self.title).size(20).into());
contents.push(text(self.title).into());
}
contents.push(horizontal_space(iced::Length::Fill).into());