feat(theme): improvements and refactoring of theme module

fix: theme rebase
This commit is contained in:
Michael Aaron Murphy 2023-09-13 15:49:11 +02:00 committed by Michael Murphy
parent 4c6c678f88
commit 7f0943924a
9 changed files with 1635 additions and 1228 deletions

View file

@ -156,7 +156,7 @@ where
}
fn theme(&self) -> Self::Theme {
THEME.with(|t| t.borrow().clone())
crate::theme::active()
}
#[cfg(feature = "wayland")]

View file

@ -91,7 +91,7 @@ impl Default for Settings {
size: (1024, 768),
#[cfg(feature = "wayland")]
size_limits: Limits::NONE.min_height(1.0).min_width(1.0),
theme: crate::theme::theme(),
theme: crate::theme::system_preference(),
transparent: false,
}
}