feat: add custom window decoration and light theme overrides

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Mathieu Comandon 2026-02-06 16:25:24 -08:00 committed by Mathieu Comandon
parent d3aa7197d1
commit 557900315c
8 changed files with 130 additions and 36 deletions

View file

@ -389,6 +389,7 @@ pub enum Container<'a> {
WindowBackground,
Background,
Card,
ContentArea,
ContextDrawer,
Custom(Box<dyn Fn(&Theme) -> iced_container::Style + 'a>),
Dialog,
@ -595,6 +596,18 @@ impl iced_container::Catalog for Theme {
shadow: Shadow::default(),
},
Container::ContentArea => iced_container::Style {
icon_color: Some(Color::from(cosmic.background.on)),
text_color: Some(Color::from(cosmic.background.on)),
background: Some(iced::Background::Color(cosmic.background.base.into())),
border: Border {
radius: cosmic.corner_radii.radius_s.into(),
width: 1.0,
color: cosmic.background.divider.into(),
},
shadow: Shadow::default(),
},
Container::Card => {
let cosmic = self.cosmic();