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

@ -10,20 +10,11 @@
use crate::app::{config, tab_profile};
use crate::host::{data_file, read_json, shell_only, write_json};
use crate::theme::{ThemeChoice, ThemeScopes, ThemeSite};
use crate::theme::{ThemeChoice, ThemeScopes};
use std::sync::{Mutex, MutexGuard};
use tauri::{AppHandle, Manager, Webview};
/// What an app declares about its themes: 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,
}
pub use crate::theme::ThemeConfig;
#[derive(Default)]
struct Themes {