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
+16 -1
View File
@@ -17,7 +17,12 @@ pub(crate) fn platform_source() -> Box<dyn ThemeSource> {
Box::new(macos::MacosSource::default())
}
#[cfg(not(target_os = "macos"))]
#[cfg(target_os = "linux")]
pub(crate) fn platform_source() -> Box<dyn ThemeSource> {
linux::platform_source()
}
#[cfg(not(any(target_os = "macos", target_os = "linux")))]
pub(crate) fn platform_source() -> Box<dyn ThemeSource> {
Box::new(fallback::FallbackSource)
}
@@ -25,4 +30,14 @@ pub(crate) fn platform_source() -> Box<dyn ThemeSource> {
#[cfg(target_os = "macos")]
pub(crate) mod macos;
#[cfg(target_os = "linux")]
pub(crate) mod linux;
#[cfg_attr(not(target_os = "linux"), allow(dead_code))]
pub(crate) mod kde;
#[cfg_attr(not(target_os = "linux"), allow(dead_code))]
pub(crate) mod omarchy;
#[cfg_attr(not(target_os = "linux"), allow(dead_code))]
pub(crate) mod portal;
pub(crate) mod fallback;