Add resolved appearance engine and paired theme settings

Resolve light, dark and automatic appearance centrally and publish live theme snapshots to native surfaces and the appearance portal. Add paired preset families, custom theme imports, accessibility transforms and contrast-safe transitions.

Refine the Settings gallery and Auto controls, move overrides under advanced customization, and share palette-aware switches and circular slider thumbs. Document configuration and include theme licenses and integration coverage.
This commit is contained in:
Samuel Onoja committed 2026-09-30 12:51:49 +01:00
1 parent 2bb4c086f5
commit 3d950a0411
58 files changed
+5556 -644

No files matched your search

+18 -1
View File
@@ -34,6 +34,7 @@ pub enum Event {
}
enum Command {
Local(String, String),
Close(u32, u64, u32),
Action(u32, u64, String),
}
@@ -205,7 +206,7 @@ impl Service {
let server = Server {
events: sender.clone(),
registry: registry.clone(),
timeout: worker_timeout,
timeout: worker_timeout.clone(),
};
let connection = match address.as_deref() {
Some(address) => zbus::blocking::connection::Builder::address(address),
@@ -224,6 +225,15 @@ impl Service {
let _ = sender.try_send(Event::Ready);
while let Ok(command) = receiver.recv() {
let result = match command {
Command::Local(title, body) => {
let server = Server {
events: sender.clone(),
registry: registry.clone(),
timeout: worker_timeout.clone(),
};
let _ = server.notify("Ferese", 0, "", &title, &body, vec![], HashMap::new(), -1);
continue;
}
Command::Close(id, revision, reason) => {
if !registry.lock().unwrap().close(id, revision, reason) {
continue;
@@ -287,6 +297,13 @@ impl Center {
}
}
pub fn service_error(&self, title: &str, body: &str) {
let _ = self
.service
.commands
.try_send(Command::Local(title.into(), body.into()));
}
pub fn configure(&mut self, config: ferese_core::notifications::NotificationConfig) {
if self.config.do_not_disturb != config.do_not_disturb {
self.dnd = config.do_not_disturb;