Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Changelog

All notable changes to the equisdots theme-sync engine are documented here.
Dates use YYYY-MM-DD.

## [2026-09-28]

### Fixed
- Palette loading recurses into subfolders (`rglob`) and the active palette fallback also looks under `community/`, so the community palettes shipped by the `equisdots/palettes` repo generate themes exactly like the flat ones.
3 changes: 2 additions & 1 deletion themesync/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def build_env(args) -> Env:
if palette is None:
# The active palette may be missing from the directory (e.g. deleted):
# try loading its file directly; otherwise it stays empty.
palette = load_json(palettes_dir / (slug + ".json"), {}) or {}
palette = load_json(palettes_dir / (slug + ".json"), {}) or \
load_json(palettes_dir / "community" / (slug + ".json"), {}) or {}

return Env(home=home, palettes_dir=palettes_dir, settings_path=settings_path,
slug=slug, palettes=palettes, palette=palette, dry_run=args.dry_run)
Expand Down
4 changes: 3 additions & 1 deletion themesync/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ def load_palettes(palettes_dir: Path) -> list:
schema.json = format contract): only files with palette data count.
"""
out = []
for pf in sorted(Path(palettes_dir).glob("*.json")):
# rglob: palettes may live in subfolders (e.g. community/), which the panel
# lists through index.json "path" entries.
for pf in sorted(Path(palettes_dir).rglob("*.json")):
if pf.name in METADATA_FILES:
continue
pal = load_json(pf)
Expand Down
Loading