File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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![
You can’t perform that action at this time.
0 commit comments