From 84d77281cba84e19853c57acd5ae919b862502c0 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Mon, 13 May 2024 13:57:51 -0400 Subject: [PATCH] fix: context-drawer border & radius --- src/theme/style/iced.rs | 2 +- src/widget/context_drawer/widget.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/theme/style/iced.rs b/src/theme/style/iced.rs index 5cf9b6c4..87058bc5 100644 --- a/src/theme/style/iced.rs +++ b/src/theme/style/iced.rs @@ -495,7 +495,7 @@ impl container::StyleSheet for Theme { appearance.border = Border { color: cosmic.primary.divider.into(), - width: 1.0, + width: 0.0, radius: cosmic.corner_radii.radius_s.into(), }; diff --git a/src/widget/context_drawer/widget.rs b/src/widget/context_drawer/widget.rs index 18a5b88e..0674a616 100644 --- a/src/widget/context_drawer/widget.rs +++ b/src/widget/context_drawer/widget.rs @@ -88,8 +88,8 @@ impl<'a, Message: Clone + 'static> ContextDrawer<'a, Message> { // XXX this is a hack to get around that drawer: container( LayerContainer::new(pane) - .style(crate::style::Container::ContextDrawer) .layer(cosmic_theme::Layer::Primary) + .style(crate::style::Container::ContextDrawer) .width(Length::Fill) .height(Length::Fill) .max_width(480.0),