From 75256dac1947f74b646ae4eac15436077aba55e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vuka=C5=A1in=20Vojinovi=C4=87?= <150025636+git-f0x@users.noreply.github.com> Date: Wed, 1 Oct 2025 18:44:23 +0200 Subject: [PATCH] chore(font_config): match selected font styling to designs --- .../src/pages/desktop/appearance/font_config.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cosmic-settings/src/pages/desktop/appearance/font_config.rs b/cosmic-settings/src/pages/desktop/appearance/font_config.rs index 669f003..332afef 100644 --- a/cosmic-settings/src/pages/desktop/appearance/font_config.rs +++ b/cosmic-settings/src/pages/desktop/appearance/font_config.rs @@ -175,7 +175,7 @@ impl Model { callback: impl Fn(Arc) -> 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(),