fix(settings): set proper font sizes

This commit is contained in:
Michael Aaron Murphy 2023-01-27 04:28:57 +01:00 committed by Michael Murphy
parent bfc71514a8
commit b79fa9d2a9
2 changed files with 7 additions and 4 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).into(),
text(title).size(20).into(),
horizontal_space(iced::Length::Fill).into(),
widget.into(),
])
@ -65,8 +65,8 @@ impl<'a, Message: 'static> Item<'a, Message> {
}
if let Some(description) = self.description {
let title = text(self.title).size(18);
let desc = text(description).size(12);
let title = text(self.title).size(20);
let desc = text(description).size(14);
contents.push(column!(title, desc).spacing(2).into());
} else {

View file

@ -31,7 +31,10 @@ 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).font(crate::font::FONT_SEMIBOLD).into();
let title = text(data.title)
.size(20)
.font(crate::font::FONT_SEMIBOLD)
.into();
column(vec![title, data.children.into_element()])
.spacing(8)