host: AlertsConfig and ThemeConfig live in ungated modules, so the host compiles and tests without the tauri feature

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
CRTkafa 2026-10-01 16:05:27 +07:00
parent 94cadc1bdb
commit 52ab1fc00b
4 changed files with 25 additions and 19 deletions

View file

@ -16,6 +16,18 @@ use serde::{Deserialize, Serialize};
use serde_json::{Map, Value};
use std::collections::BTreeMap;
/// What an app declares about its themes for the host's theme commands
/// ([`crate::theme_commands`]): the built-in ones and where the owner's choice is saved (app data
/// file names).
#[derive(Clone, Copy, Debug)]
pub struct ThemeConfig {
pub site: &'static ThemeSite,
/// The owner's theme choice (absent = the site's own look).
pub file: &'static str,
/// Account and pane themes and the chrome setting (absent = defaults).
pub scopes_file: &'static str,
}
/// A site's built-in themes. The first preset is the site's own look (the default choice).
#[derive(Clone, Copy, Debug)]
pub struct ThemeSite {