chore(font_config): match selected font styling to designs
This commit is contained in:
parent
cff1c029e5
commit
75256dac19
1 changed files with 6 additions and 1 deletions
|
|
@ -175,7 +175,7 @@ impl Model {
|
||||||
callback: impl Fn(Arc<str>) -> super::Message,
|
callback: impl Fn(Arc<str>) -> super::Message,
|
||||||
) -> Element<'_, super::Message> {
|
) -> Element<'_, super::Message> {
|
||||||
let svg_accent = Rc::new(|theme: &cosmic::Theme| svg::Style {
|
let svg_accent = Rc::new(|theme: &cosmic::Theme| svg::Style {
|
||||||
color: Some(theme.cosmic().accent_color().into()),
|
color: Some(theme.cosmic().accent_text_color().into()),
|
||||||
});
|
});
|
||||||
|
|
||||||
let (mut families, current_font) = match *context_view {
|
let (mut families, current_font) = match *context_view {
|
||||||
|
|
@ -195,6 +195,11 @@ impl Model {
|
||||||
list.add(
|
list.add(
|
||||||
settings::item_row(vec![
|
settings::item_row(vec![
|
||||||
widget::text::body(&**family)
|
widget::text::body(&**family)
|
||||||
|
.class(if selected {
|
||||||
|
cosmic::theme::Text::Accent
|
||||||
|
} else {
|
||||||
|
cosmic::theme::Text::Default
|
||||||
|
})
|
||||||
.wrapping(Wrapping::Word)
|
.wrapping(Wrapping::Word)
|
||||||
.width(cosmic::iced::Length::Fill)
|
.width(cosmic::iced::Length::Fill)
|
||||||
.into(),
|
.into(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue