fix: incorrect font weights, sizes, line heights
This commit is contained in:
parent
f06a81ccf9
commit
31f7e97d5b
8 changed files with 37 additions and 21 deletions
|
|
@ -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());
|
||||
|
|
|
|||
|
|
@ -31,10 +31,7 @@ impl<'a, Message: 'static> Section<'a, Message> {
|
|||
|
||||
impl<'a, Message: 'static> From<Section<'a, Message>> for Element<'a, Message> {
|
||||
fn from(data: Section<'a, Message>) -> Self {
|
||||
let title = text(data.title)
|
||||
.size(20)
|
||||
.font(crate::font::FONT_SEMIBOLD)
|
||||
.into();
|
||||
let title = text(data.title).font(crate::font::FONT_SEMIBOLD).into();
|
||||
|
||||
column(vec![title, data.children.into_element()])
|
||||
.spacing(8)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue