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

@ -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)