From 290932e77e53e769ab1de5b39298ddfa8d3f2881 Mon Sep 17 00:00:00 2001 From: Michael Aaron Murphy Date: Fri, 8 Mar 2024 15:36:09 +0100 Subject: [PATCH] fix(appearance): center-align color picker in context drawer --- app/src/pages/desktop/appearance.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/src/pages/desktop/appearance.rs b/app/src/pages/desktop/appearance.rs index ddfcc1a..318912b 100644 --- a/app/src/pages/desktop/appearance.rs +++ b/app/src/pages/desktop/appearance.rs @@ -295,14 +295,19 @@ impl Page { .push( model(self) .builder(on_update) - .width(Length::Fixed(248.0)) - .height(Length::Fixed(158.0)) .reset_label(reset) + .height(Length::Fixed(158.0)) .build( fl!("recent-colors"), fl!("copy-to-clipboard"), fl!("copied-to-clipboard"), - ), + ) + .apply(container) + .width(Length::Fixed(248.0)) + .align_x(alignment::Horizontal::Center) + .apply(container) + .width(Length::Fill) + .align_x(alignment::Horizontal::Center) ) .padding(self.theme_builder.spacing.space_l) .align_items(cosmic::iced_core::Alignment::Center)