feat(cosmic-theme): add color schemes for qt apps

This commit is contained in:
Adil Hanney 2026-02-17 16:39:37 +00:00 committed by GitHub
parent 6328c40ef7
commit a2e903ad94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 677 additions and 3 deletions

View file

@ -690,6 +690,9 @@ impl Theme {
let config =
Config::new(Self::id(), Self::VERSION).map_err(|e| (vec![e], Self::default()))?;
let is_dark = ThemeMode::is_dark(&config).map_err(|e| (vec![e], Self::default()))?;
Self::get_active_with_brightness(is_dark)
}
pub fn get_active_with_brightness(is_dark: bool) -> Result<Self, (Vec<cosmic_config::Error>, Self)> {
let config = if is_dark {
Self::dark_config()
} else {