File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -496,6 +496,7 @@ impl Program for CosmicWindowInternal {
496496
497497 fn view ( & self ) -> cosmic:: Element < ' _ , Self :: Message > {
498498 let mut header = cosmic:: widget:: header_bar ( )
499+ . start ( cosmic:: widget:: horizontal_space ( 32 ) )
499500 . title ( self . last_title . lock ( ) . unwrap ( ) . clone ( ) )
500501 . on_drag ( Message :: DragStart )
501502 . on_close ( Message :: Close )
@@ -504,10 +505,14 @@ impl Program for CosmicWindowInternal {
504505 . on_right_click ( Message :: Menu ) ;
505506
506507 if cosmic:: config:: show_minimize ( ) {
507- header = header. on_minimize ( Message :: Minimize ) ;
508+ header = header
509+ . on_minimize ( Message :: Minimize )
510+ . start ( cosmic:: widget:: horizontal_space ( 40 ) ) ; // 32 + 8 spacing
508511 }
509512 if cosmic:: config:: show_maximize ( ) {
510- header = header. on_maximize ( Message :: Maximize ) ;
513+ header = header
514+ . on_maximize ( Message :: Maximize )
515+ . start ( cosmic:: widget:: horizontal_space ( 40 ) ) ; // 32 + 8 spacing
511516 }
512517
513518 header. into ( )
You can’t perform that action at this time.
0 commit comments