Respect motion settings and improve accessible theme transitions

This commit is contained in:
Samuel Onoja committed 2026-10-01 11:54:57 +01:00
1 parent 53bad8c672
commit 7a9fd5c864
13 files changed
+390 -67

No files matched your search

+3
View File
@@ -14,6 +14,7 @@ use crate::{AuthenticationRequest, Generation, PromptEvent};
#[derive(Clone)]
struct Appearance {
appearance: ferese_config::theme::Appearance,
high_contrast: bool,
surface: Color,
text: Color,
muted: Color,
@@ -34,6 +35,7 @@ impl Appearance {
let family = &theme.tokens.typography.font_family;
Self {
appearance: theme.appearance,
high_contrast: theme.accessibility.increase_contrast,
surface: Color {
a: ferese_theme::service::opacity(theme),
..palette.sidebar
@@ -50,6 +52,7 @@ impl Appearance {
fn palette(&self) -> ferese_theme::Palette {
ferese_theme::Palette {
appearance: self.appearance,
high_contrast: self.high_contrast,
background: self.surface,
sidebar: self.surface,
card: self.surface,