new layout (wip) (#34)
Rust / build (macos-latest, stable) (push) Canceled after 0s
Rust / build (ubuntu-latest, stable) (push) Canceled after 0s
Rust / build (windows-latest, stable) (push) Canceled after 0s

Reviewed-on: #34
This commit was merged in pull request #34.
This commit is contained in:
2026-11-19 07:43:44 +00:00
parent a249174026
commit 5a597f43c4
368 changed files with 38791 additions and 18423 deletions
+20
View File
@@ -0,0 +1,20 @@
//! The adapter for unknown systems:
//! no colors of its own, resolution degrades to the neutral presets.
use super::ThemeSource;
use crate::theme::ThemeVariant;
use crate::theme::system::SystemTheme;
// Constructed only by `platform_source` on platforms without their own adapter.
#[cfg_attr(any(target_os = "macos", target_os = "linux"), allow(dead_code))]
pub(crate) struct FallbackSource;
impl ThemeSource for FallbackSource {
fn snapshot(&self, variant: ThemeVariant) -> SystemTheme {
SystemTheme::fallback(variant)
}
fn label(&self) -> &'static str {
crate::theme::system::SourceKind::Fallback.label()
}
}