@@ -23,7 +23,7 @@ pub fn color_picker_context_view<'a, Message: Clone + 'static>(
23
23
let theme = theme:: active ( ) ;
24
24
let spacing = & theme. cosmic ( ) . spacing ;
25
25
26
- let description = description. map ( |description| text ( description ) . width ( Length :: Fill ) ) ;
26
+ let description = description. map ( |description| text:: caption ( description ) ) ;
27
27
28
28
let color_picker = model
29
29
. builder ( on_update)
@@ -35,15 +35,13 @@ pub fn color_picker_context_view<'a, Message: Clone + 'static>(
35
35
fl ! ( "copied-to-clipboard" ) ,
36
36
)
37
37
. apply ( container)
38
- . width ( Length :: Fixed ( 248.0 ) )
39
- . align_x ( Alignment :: Center )
38
+ . center_x ( Length :: Fixed ( 248.0 ) )
40
39
. apply ( container)
41
40
. center_x ( Length :: Fill ) ;
42
41
43
42
cosmic:: widget:: column ( )
44
43
. push_maybe ( description)
45
44
. push ( color_picker)
46
- . padding ( spacing. space_l )
47
45
. align_x ( Alignment :: Center )
48
46
. spacing ( spacing. space_m )
49
47
. width ( Length :: Fill )
@@ -103,17 +101,13 @@ pub fn unimplemented_page<Message: 'static>() -> Element<'static, Message> {
103
101
104
102
#[ must_use]
105
103
pub fn display_container < ' a , Message : ' a > ( widget : Element < ' a , Message > ) -> Element < ' a , Message > {
106
- let display = container ( widget)
104
+ container ( widget)
107
105
. class ( crate :: theme:: display_container_screen ( ) )
108
106
. apply ( container)
109
107
. 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 )
117
111
. into ( )
118
112
}
119
113
0 commit comments