Skip to content

Add theme-sync config provider - #14

Merged
xscriptor merged 1 commit into
mainfrom
feat/theme-sync-extension
Nov 19, 2026
Merged

xscriptor merged 1 commit into
mainfrom
feat/theme-sync-extension

Conversation

@xscriptor

Copy link
Copy Markdown
Member

Adds the theme-sync WebAssembly config provider.

  • Reads the active equisdots palette from settings.json (bar.palette, legacy dock.palette, fallback x).
  • Loads ~/.config/xfetch/themes/<slug>.jsonc, merges colors, plugin fallbacks and logo_color, and sets the active theme.
  • No-op when the config already has non-empty colors unless force is set, so it restores the palette after config-roulette strips it from route configs.
  • Sandboxed core module with read-only access to ~/.config and HOME.
  • Checked-in dist/theme-sync.wasm (SHA-256 pinned), so xfetch extension install theme-sync needs no Rust toolchain.
  • Catalog updated to 1.1.0; README and compatibility table updated.

Tested locally: unit tests, clippy, wasm build, local install, fallback x, and the config-roulette → theme-sync chain (colors present with theme-sync, null without it).

@xscriptor
xscriptor merged commit 3c320f7 into main Nov 19, 2026
4 checks passed
@xscriptor
xscriptor deleted the feat/theme-sync-extension branch November 19, 2026 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant