theme: add linux system theme sources

This commit is contained in:
2026-10-31 07:57:27 +07:00
parent dacdd84aa4
commit c45f939211
11 changed files with 1187 additions and 10 deletions
+7
View File
@@ -14,10 +14,14 @@ pub struct AccessibilityPreferences {
/// Which adapter produced a [`SystemTheme`].
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
#[cfg_attr(not(target_os = "linux"), allow(dead_code))]
pub enum SourceKind {
#[default]
Fallback,
Macos,
Omarchy,
Kde,
Gnome,
}
impl SourceKind {
@@ -25,6 +29,9 @@ impl SourceKind {
match self {
Self::Fallback => "neutral fallback",
Self::Macos => "macOS (NSColor)",
Self::Omarchy => "Omarchy (colors.toml)",
Self::Kde => "KDE (kdeglobals)",
Self::Gnome => "GNOME (portal)",
}
}
}