host: site themes are the host's (AppConfig::with_themes, commands::THEME)
theme_commands serves theme_get / theme_set / theme_preview / theme_scopes_get / theme_scopes_set (shell-only, each checks its caller first; testkit::assert_theme_guards) over the theme state the host now keeps: the owner's theme, account and pane themes, the Theme Builder preview. The app only names its built-in themes and the two files (ThemeConfig). apply() themes every site tab (script, cached Google font bytes, native background); page_scripts()/tab_background() serve a new document; set_theme/set_scopes/set_preview are the app's own writers (backup import, dev mode). A font install or removal re-themes the tabs in the host itself.
This commit is contained in:
parent
573fbfe69e
commit
a6f44a212b
6 changed files with 276 additions and 7 deletions
|
|
@ -23,6 +23,7 @@ pub(crate) fn init(app: &AppHandle) {
|
|||
}
|
||||
|
||||
fn changed(app: &AppHandle) {
|
||||
crate::theme_commands::apply(app);
|
||||
crate::app::hooks(app).fonts_changed(app);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue