fix(menu): use accent color for checkbox
Uses the accent color for the checkmark, to match designs.
This commit is contained in:
parent
f12de010ec
commit
271b71958a
1 changed files with 7 additions and 1 deletions
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
use std::rc::Rc;
|
||||||
|
|
||||||
use iced_widget::core::{renderer, Element};
|
use iced_widget::core::{renderer, Element};
|
||||||
|
|
||||||
|
|
@ -257,10 +258,15 @@ where
|
||||||
widget::icon::from_name("object-select-symbolic")
|
widget::icon::from_name("object-select-symbolic")
|
||||||
.size(16)
|
.size(16)
|
||||||
.icon()
|
.icon()
|
||||||
|
.style(theme::Svg::Custom(Rc::new(|theme| {
|
||||||
|
crate::iced_style::svg::Appearance {
|
||||||
|
color: Some(theme.cosmic().accent_color().into()),
|
||||||
|
}
|
||||||
|
})))
|
||||||
.width(Length::Fixed(16.0))
|
.width(Length::Fixed(16.0))
|
||||||
.into()
|
.into()
|
||||||
} else {
|
} else {
|
||||||
widget::Space::with_width(Length::Fixed(17.0)).into()
|
widget::Space::with_width(Length::Fixed(16.0)).into()
|
||||||
},
|
},
|
||||||
widget::Space::with_width(Length::Fixed(8.0)).into(),
|
widget::Space::with_width(Length::Fixed(8.0)).into(),
|
||||||
widget::text(label)
|
widget::text(label)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue