@@ -23,7 +23,7 @@ pub fn color_picker_context_view<'a, Message: Clone + 'static>(
2323 let theme = theme:: active ( ) ;
2424 let spacing = & theme. cosmic ( ) . spacing ;
2525
26- let description = description. map ( |description| text ( description ) . width ( Length :: Fill ) ) ;
26+ let description = description. map ( |description| text:: caption ( description ) ) ;
2727
2828 let color_picker = model
2929 . builder ( on_update)
@@ -35,15 +35,13 @@ pub fn color_picker_context_view<'a, Message: Clone + 'static>(
3535 fl ! ( "copied-to-clipboard" ) ,
3636 )
3737 . apply ( container)
38- . width ( Length :: Fixed ( 248.0 ) )
39- . align_x ( Alignment :: Center )
38+ . center_x ( Length :: Fixed ( 248.0 ) )
4039 . apply ( container)
4140 . center_x ( Length :: Fill ) ;
4241
4342 cosmic:: widget:: column ( )
4443 . push_maybe ( description)
4544 . push ( color_picker)
46- . padding ( spacing. space_l )
4745 . align_x ( Alignment :: Center )
4846 . spacing ( spacing. space_m )
4947 . width ( Length :: Fill )
@@ -103,17 +101,13 @@ pub fn unimplemented_page<Message: 'static>() -> Element<'static, Message> {
103101
104102#[ must_use]
105103pub fn display_container < ' a , Message : ' a > ( widget : Element < ' a , Message > ) -> Element < ' a , Message > {
106- let display = container ( widget)
104+ container ( widget)
107105 . class ( crate :: theme:: display_container_screen ( ) )
108106 . apply ( container)
109107 . padding ( 4 )
110- . class ( crate :: theme:: display_container_frame ( ) ) ;
111-
112- row:: with_capacity ( 3 )
113- . push ( horizontal_space ( ) )
114- . push ( display)
115- . push ( horizontal_space ( ) )
116- . padding ( [ 0 , 0 , 8 , 0 ] )
108+ . class ( crate :: theme:: display_container_frame ( ) )
109+ . apply ( container)
110+ . center_x ( Length :: Fill )
117111 . into ( )
118112}
119113
0 commit comments