fix(appearance): center-align color picker in context drawer
This commit is contained in:
parent
71cfd2d2f0
commit
290932e77e
1 changed files with 8 additions and 3 deletions
|
|
@ -295,14 +295,19 @@ impl Page {
|
||||||
.push(
|
.push(
|
||||||
model(self)
|
model(self)
|
||||||
.builder(on_update)
|
.builder(on_update)
|
||||||
.width(Length::Fixed(248.0))
|
|
||||||
.height(Length::Fixed(158.0))
|
|
||||||
.reset_label(reset)
|
.reset_label(reset)
|
||||||
|
.height(Length::Fixed(158.0))
|
||||||
.build(
|
.build(
|
||||||
fl!("recent-colors"),
|
fl!("recent-colors"),
|
||||||
fl!("copy-to-clipboard"),
|
fl!("copy-to-clipboard"),
|
||||||
fl!("copied-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)
|
.padding(self.theme_builder.spacing.space_l)
|
||||||
.align_items(cosmic::iced_core::Alignment::Center)
|
.align_items(cosmic::iced_core::Alignment::Center)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue