Skip to content

Commit f85baa6

Browse files
committed
chore: move font size to appeareance settings section
1 parent cb67b1c commit f85baa6

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/app.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,16 @@ impl AppModel {
853853
}),
854854
),
855855
)
856+
.add(
857+
widget::settings::item::builder(fl!("text-size"))
858+
.description(format!("{}px", self.config.text_size))
859+
.control(
860+
widget::slider(6..=30, self.config.text_size as u16, |v| {
861+
Message::ConfigInput(ConfigInput::UpdateTextSize(v))
862+
})
863+
.step(1u16),
864+
),
865+
)
856866
.add(
857867
widget::settings::item::builder(fl!("selected-font")).control(
858868
row![
@@ -946,16 +956,6 @@ impl AppModel {
946956
),
947957
),
948958
)
949-
.add(
950-
widget::settings::item::builder(fl!("text-size"))
951-
.description(format!("{}px", self.config.text_size))
952-
.control(
953-
widget::slider(6..=30, self.config.text_size as u16, |v| {
954-
Message::ConfigInput(ConfigInput::UpdateTextSize(v))
955-
})
956-
.step(1u16),
957-
),
958-
)
959959
.add(
960960
cosmic::widget::column::with_children(vec![
961961
column![

0 commit comments

Comments
 (0)