refactor opaque fallback
This commit is contained in:
parent
d0b164d216
commit
19142fd38e
12 changed files with 345 additions and 161 deletions
|
|
@ -13,18 +13,28 @@ impl dropdown::menu::StyleSheet for Theme {
|
|||
|
||||
dropdown::menu::Appearance {
|
||||
text_color: cosmic.on_bg_color().into(),
|
||||
background: Background::Color(cosmic.background.component.base.into()),
|
||||
background: Background::Color(
|
||||
cosmic.background(self.transparent).component.base.into(),
|
||||
),
|
||||
border_width: 0.0,
|
||||
border_radius: cosmic.corner_radii.radius_m.into(),
|
||||
border_color: Color::TRANSPARENT,
|
||||
|
||||
hovered_text_color: cosmic.on_bg_color().into(),
|
||||
hovered_background: Background::Color(cosmic.primary.component.hover.into()),
|
||||
hovered_background: Background::Color(
|
||||
cosmic.primary(self.transparent).component.hover.into(),
|
||||
),
|
||||
|
||||
selected_text_color: cosmic.accent_text_color().into(),
|
||||
selected_background: Background::Color(cosmic.primary.component.hover.into()),
|
||||
selected_background: Background::Color(
|
||||
cosmic.primary(self.transparent).component.hover.into(),
|
||||
),
|
||||
|
||||
description_color: cosmic.primary.component.on_disabled.into(),
|
||||
description_color: cosmic
|
||||
.primary(self.transparent)
|
||||
.component
|
||||
.on_disabled
|
||||
.into(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue