Fix style swatches and preview color mode #50
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Style view theme swatches appear visually indistinguishable, and the live theme preview does not reliably follow the selected Auto, Light, or Dark mode. Investigate the native Iced swatch rendering and the embedded __style-preview webview independently from the blog post/full-site preview work in issue #47. Verify each supported Pico theme has a visibly distinct swatch, changing Preview Mode updates the live webview immediately without persisting the choice, and the preview HTML/CSS applies the selected light or dark color scheme. Compare bDS2 and specs/editor_settings.allium, add regression tests for theme/mode URL and rendered HTML, visually inspect the packaged macOS app, update user documentation if behavior changes, and run the full workspace gates.
Implemented in
3aa5dcb. Native Iced theme cards now use distinct 2:1:1 accent/light/dark swatches with a bDS2-style accent gradient; embedded preview creation is single-flight and navigates to the newest theme/mode URL, so Auto, Light, and Dark update immediately without persistence; and the compact preview puts an accent-colored button above the article so it is visible without scrolling. Added regression coverage for all distinct theme gradients, Auto/Light/Dark URLs, local-only state, rendered mode attributes, stylesheet selection, compact markup, and creation races. Verified with cargo fmt, cargo test --workspace, cargo build --workspace, cargo clippy --workspace --all-targets -- -D warnings, cargo bundle-macos, Allium check/analyse, and packaged macOS visual inspection.