waybetter/crates/waybetter-host/src
CRT 7568126f2b runtime + host: the theme engine (theme documents, choice catalog, page runtime, fonts; native theme state)
The site-independent theme engine moves from wayBetter for X into the framework:
- runtime/themeSpec.ts: theme document types, the schema's defaults (BASE_*), sanitizing,
  import, overrides, ensureContrast, font roles/stacks, font choices, backgrounds.
- runtime/themeChoice.ts: ThemeChoice and createThemeCatalog(builtins) (normalize, base,
  resolve, palette, all), choiceForId, serializeChoice.
- runtime/themeRuntime.ts: installThemeRuntime(win, site) (live CSS over the site's rules,
  --wb-* vars, site color mode, first-frame snapshot), collectRules, resolvedFonts.
- runtime/fonts.ts: bundled fonts and owner-downloaded Google Fonts from bytes.
- themeApi exports hexToRgb, mix and MONO_FAMILIES (one copy: themeTokens and themeSpec use them).
- host theme.rs: ThemeChoice/ThemeScopes over a site's ThemeSite (envelope checks against
  theme.schema.json, which theme a tab shows, page color, delivery script).
2026-09-29 06:07:59 +00:00
..
media host: gallery folders and the opt-in clipboard history 2026-09-29 04:13:01 +00:00
plugins host: palette commands and developer mode watcher 2026-09-29 04:02:07 +00:00
store host: store module: install links, allow-list, signed multi-app catalog, staging and installs 2026-09-29 04:05:25 +00:00
alerts.rs host: keyword alerts and native notifications 2026-09-29 04:05:49 +00:00
app.rs host: run_app — the window, shell, tab webviews and generic commands for every app 2026-09-29 04:51:24 +00:00
backup.rs host: settings backup envelope and encrypted folder sync 2026-09-29 03:58:15 +00:00
bridge.rs host: the tab bridge ships from waybetter-host; create-waybetter uses it 2026-09-29 04:22:54 +00:00
commands.rs host: run_app — the window, shell, tab webviews and generic commands for every app 2026-09-29 04:51:24 +00:00
devmode.rs host: palette commands and developer mode watcher 2026-09-29 04:02:07 +00:00
fonts.rs host: self-hosted Google Fonts (gfonts) and the font cache (fonts) 2026-09-29 04:15:10 +00:00
gfonts.rs host: self-hosted Google Fonts (gfonts) and the font cache (fonts) 2026-09-29 04:15:10 +00:00
host.rs host: tab placements skip unchanged bounds, one SetBounds per move, and follow window resizes natively 2026-09-28 20:23:44 +00:00
hotfix.rs Extract the wayBetter framework core from wayBetter for X 2026-09-27 20:01:33 +00:00
i18n.rs host: run_app — the window, shell, tab webviews and generic commands for every app 2026-09-29 04:51:24 +00:00
layout.rs host: tab placements skip unchanged bounds, one SetBounds per move, and follow window resizes natively 2026-09-28 20:23:44 +00:00
lib.rs runtime + host: the theme engine (theme documents, choice catalog, page runtime, fonts; native theme state) 2026-09-29 06:07:59 +00:00
media.rs host: gallery folders and the opt-in clipboard history 2026-09-29 04:13:01 +00:00
plugins.rs host: palette commands and developer mode watcher 2026-09-29 04:02:07 +00:00
policy.rs Extract the wayBetter framework core from wayBetter for X 2026-09-27 20:01:33 +00:00
profiles.rs Extract the wayBetter framework core from wayBetter for X 2026-09-27 20:01:33 +00:00
site.rs Extract the wayBetter framework core from wayBetter for X 2026-09-27 20:01:33 +00:00
sync.rs host: settings backup envelope and encrypted folder sync 2026-09-29 03:58:15 +00:00
tabs.rs i18n: dependency-free message runtime, catalog checks, plugin strings, native strings 2026-09-29 02:53:48 +00:00
testkit.rs host: run_app — the window, shell, tab webviews and generic commands for every app 2026-09-29 04:51:24 +00:00
theme.rs runtime + host: the theme engine (theme documents, choice catalog, page runtime, fonts; native theme state) 2026-09-29 06:07:59 +00:00
update.rs Extract the wayBetter framework core from wayBetter for X 2026-09-27 20:01:33 +00:00
updater.rs host: updater (signed native updates and the hotfix channel) 2026-09-29 04:17:54 +00:00
workspaces.rs host: saved workspaces validation 2026-09-29 03:59:20 +00:00