Repository navigation
Make built-in theme backgrounds responsive - #9313
acrogenesis wants to merge 76 commits into
Conversation
d2bc420 to
ffe84cd
Compare
0614c5b to
ae3744c
Compare
ae3744c to
4fd6479
Compare
Fold a digest of sibling files (name and mtime) into the SVG raster cache key so a render is invalidated when a relative sibling asset the SVG may reference changes, not only when the SVG's own mtime moves. Bound both the render and sampled-edge caches by entry count alongside the existing age prune, skipping in-flight temp files, so neither can grow without limit.
Spell out that backgrounds.toml is read by a small awk parser covering a deliberate subset of TOML, and that the SVG render cache keys on sibling mtimes and is bounded by count as well as age.
4fd6479 to
ae7f1c6
Compare
[High impact] The PR appears safe to merge, with a non-blocking bar-text contrast issue for responsive Findings
SummaryThis PR replaces bundled wordmark wallpapers with responsive SVGs and adds per-screen background choices, framing settings, and fitted blur backdrops.
Reviews (25) · Last reviewed commit: "Apply the Tokyo Night crop to the rename..." · Reviewed by Greptile |
| transform: Scale { | ||
| xScale: 1 / root.naturalScale | ||
| yScale: 1 / root.naturalScale |
There was a problem hiding this comment.
With svg_layout = "responsive" and fill = "center" or "tile" on a scaled display, WallpaperImage now draws the screen-sized PNG at the correct size. But omarchy-bar-text-color still enlarges that PNG by --scale. It samples different pixels and can choose dark text over a dark background, or light text over a light one.
Pass responsive_raster to the sampler too, and skip its extra scale multiplier for these renders.
Summary
logo.svgpathsDepends on #9312. That capability PR adds optional
solid, sampled-edgeedge, and ambientblurbackdrops for fitted compositions. This theme-assets PR opts Gruvbox, Kanagawa, and Everforest intoblur; it does not enable that presentation globally or replace the deliberate SVG, variant, and focal-crop choices for other themes.This PR is ready for visual/design review. Approximate automatic traces and failed AI extensions were deliberately excluded; painterly, photographic, textured, and gradient-heavy assets remain raster and use either an inspected focal crop or the fitted full-composition treatment below.
Because this PR is stacked on #9312, the capability commits appear here until that PR lands.
Built-in launcher themes on a 5120x1440 display
These captures cover all 22 built-in themes shown in the launcher carousel. Each pair was captured through the live theme-switching and background-resolution path; custom installed themes are intentionally excluded. Themes whose default wallpaper does not change remain in the comparison so the complete built-in carousel is represented.
Full-composition blur examples
Gruvbox, Kanagawa, and Everforest set these values in
[defaults], so they apply to every wallpaper in each theme, including the responsive Omarchy wordmark SVGs. A future per-image section can still override the defaults.The foreground uses the complete original composition without cropping. When the screen has unused space, a subdued blurred cover copy of that same image fills the surrounding area. On a matching aspect ratio, the fitted foreground covers the backdrop normally.
Gruvbox
Kanagawa
Everforest
Fidelity
logo.svg, rather than tracing the compressed WebPsVerification
./test/clibash test/shell.d/background-resolve-test.shbash test/shell.d/background-enumeration-test.shbash test/shell.d/menu-images-test.shbash test/shell.d/theme-staging-test.sh