fix(settings): set proper font sizes
This commit is contained in:
parent
bfc71514a8
commit
b79fa9d2a9
2 changed files with 7 additions and 4 deletions
|
|
@ -15,7 +15,7 @@ pub fn item<'a, Message: 'static>(
|
||||||
widget: impl Into<Element<'a, Message>>,
|
widget: impl Into<Element<'a, Message>>,
|
||||||
) -> Row<'a, Message, Renderer> {
|
) -> Row<'a, Message, Renderer> {
|
||||||
item_row(vec![
|
item_row(vec![
|
||||||
text(title).into(),
|
text(title).size(20).into(),
|
||||||
horizontal_space(iced::Length::Fill).into(),
|
horizontal_space(iced::Length::Fill).into(),
|
||||||
widget.into(),
|
widget.into(),
|
||||||
])
|
])
|
||||||
|
|
@ -65,8 +65,8 @@ impl<'a, Message: 'static> Item<'a, Message> {
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(description) = self.description {
|
if let Some(description) = self.description {
|
||||||
let title = text(self.title).size(18);
|
let title = text(self.title).size(20);
|
||||||
let desc = text(description).size(12);
|
let desc = text(description).size(14);
|
||||||
|
|
||||||
contents.push(column!(title, desc).spacing(2).into());
|
contents.push(column!(title, desc).spacing(2).into());
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,10 @@ impl<'a, Message: 'static> Section<'a, Message> {
|
||||||
|
|
||||||
impl<'a, Message: 'static> From<Section<'a, Message>> for Element<'a, Message> {
|
impl<'a, Message: 'static> From<Section<'a, Message>> for Element<'a, Message> {
|
||||||
fn from(data: Section<'a, Message>) -> Self {
|
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()])
|
column(vec![title, data.children.into_element()])
|
||||||
.spacing(8)
|
.spacing(8)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue