@@ -264,12 +264,12 @@ impl Page {
264
264
row:: with_children ( vec ! [
265
265
icon:: from_name( & * info. icon) . size( 32 ) . icon( ) . into( ) ,
266
266
column:: with_capacity( 2 )
267
- . push( text( info. name. clone( ) ) )
268
- . push( text( info. description. clone( ) ) . size ( 10 ) )
267
+ . push( text:: body ( info. name. clone( ) ) )
268
+ . push( text:: caption ( info. description. clone( ) ) )
269
269
. spacing( spacing. space_xxxs)
270
270
. width( Length :: Fill )
271
271
. into( ) ,
272
- button( text( fl!( "add" ) ) )
272
+ button( text:: body ( fl!( "add" ) ) )
273
273
. style( button:: Style :: Custom {
274
274
active: Box :: new( |focused, theme| {
275
275
let mut style = theme. active( focused, false , & button:: Style :: Text ) ;
@@ -305,7 +305,7 @@ impl Page {
305
305
}
306
306
if !has_some {
307
307
list_column = list_column. add (
308
- text ( fl ! ( "no-applets-found" ) )
308
+ text:: body ( fl ! ( "no-applets-found" ) )
309
309
. width ( Length :: Fill )
310
310
. horizontal_alignment ( Horizontal :: Center ) ,
311
311
) ;
@@ -472,12 +472,12 @@ pub fn lists<
472
472
let spacing = cosmic:: theme:: active ( ) . cosmic ( ) . spacing ;
473
473
let page = page. inner ( ) ;
474
474
let Some ( config) = page. current_config . as_ref ( ) else {
475
- return Element :: from ( text ( fl ! ( "unknown" ) ) ) ;
475
+ return Element :: from ( text:: body ( fl ! ( "unknown" ) ) ) ;
476
476
} ;
477
477
478
478
column:: with_children ( vec ! [
479
479
column:: with_children( vec![
480
- text( fl!( "start-segment" ) ) . into( ) ,
480
+ text:: body ( fl!( "start-segment" ) ) . into( ) ,
481
481
AppletReorderList :: new(
482
482
config
483
483
. plugins_wings
@@ -509,7 +509,7 @@ pub fn lists<
509
509
. spacing( spacing. space_xxs)
510
510
. into( ) ,
511
511
column:: with_children( vec![
512
- text( fl!( "center-segment" ) ) . into( ) ,
512
+ text:: body ( fl!( "center-segment" ) ) . into( ) ,
513
513
AppletReorderList :: new(
514
514
config
515
515
. plugins_center
@@ -540,7 +540,7 @@ pub fn lists<
540
540
. spacing( spacing. space_xxs)
541
541
. into( ) ,
542
542
column:: with_children( vec![
543
- text( fl!( "end-segment" ) ) . into( ) ,
543
+ text:: body ( fl!( "end-segment" ) ) . into( ) ,
544
544
AppletReorderList :: new(
545
545
config
546
546
. plugins_wings
@@ -689,7 +689,7 @@ impl<'a, Message: 'static + Clone> AppletReorderList<'a, Message> {
689
689
column:: with_capacity( 2 )
690
690
. spacing( spacing. space_xxxs)
691
691
. width( Length :: Fill )
692
- . push( text( info. name) )
692
+ . push( text:: body ( info. name) )
693
693
. push_maybe( if info. description. is_empty( ) {
694
694
None
695
695
} else {
@@ -730,7 +730,7 @@ impl<'a, Message: 'static + Clone> AppletReorderList<'a, Message> {
730
730
surface_ids,
731
731
inner : if active_dnd. is_some ( ) && applet_buttons. is_empty ( ) {
732
732
container (
733
- text ( fl ! ( "drop-here" ) )
733
+ text:: body ( fl ! ( "drop-here" ) )
734
734
. width ( Length :: Fill )
735
735
. height ( Length :: Fill )
736
736
. vertical_alignment ( Vertical :: Center )
@@ -778,7 +778,7 @@ impl<'a, Message: 'static + Clone> AppletReorderList<'a, Message> {
778
778
column:: with_capacity( 2 )
779
779
. spacing( 4.0 )
780
780
. width( Length :: Fill )
781
- . push( text( info. name) )
781
+ . push( text:: body ( info. name) )
782
782
. push( text:: caption( info. description) )
783
783
. into( ) ,
784
784
button:: icon( icon:: from_name( "edit-delete-symbolic" ) )
0 commit comments