chore(font_config): match selected font styling to designs

This commit is contained in:
Vukašin Vojinović 2025-10-01 18:44:23 +02:00 committed by Michael Murphy
parent cff1c029e5
commit 75256dac19

View file

@ -175,7 +175,7 @@ impl Model {
callback: impl Fn(Arc<str>) -> super::Message,
) -> Element<'_, super::Message> {
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 {
@ -195,6 +195,11 @@ impl Model {
list.add(
settings::item_row(vec![
widget::text::body(&**family)
.class(if selected {
cosmic::theme::Text::Accent
} else {
cosmic::theme::Text::Default
})
.wrapping(Wrapping::Word)
.width(cosmic::iced::Length::Fill)
.into(),