Skip to content

Make built-in theme backgrounds responsive - #9313

Open
acrogenesis wants to merge 76 commits into
omacom:quattrofrom
acrogenesis:feature/responsive-theme-assets
Open

acrogenesis wants to merge 76 commits into
omacom:quattrofrom
acrogenesis:feature/responsive-theme-assets

Conversation

@acrogenesis

@acrogenesis acrogenesis commented Aug 31, 2026 •

Copy link
Copy Markdown
Member

Summary

  • replace the accepted Lumon raster background with a self-contained native responsive SVG
  • replace 20 flat Omarchy wordmark wallpapers with responsive SVGs built from the repository's authoritative logo.svg paths
  • preserve the original wordmark geometry, placement, and sampled solid colors at 16:9 while keeping their relative size consistent on ultrawide displays
  • keep Tokyo Night's winding road visible at 32:9 through focal metadata on the canonical raster, without adding a duplicate bitmap
  • audit all 92 canonical built-in backgrounds at 32:9: 21 responsive SVGs, seven fitted raster compositions with ambient blur, and 64 deliberately composed raster focal crops
  • preserve every Gruvbox, Kanagawa, and Everforest wallpaper in full with a fitted foreground over an ambient blurred copy
  • add non-center focal overrides for six raster compositions in Lumon, Miasma, Solitude, and Tokyo Night; retain the visually approved centered crop for the other 58 cropped rasters
  • remove the superseded raster entries so the background picker shows each design only once

Depends on #9312. That capability PR adds optional solid, sampled-edge edge, and ambient blur backdrops for fitted compositions. This theme-assets PR opts Gruvbox, Kanagawa, and Everforest into blur; 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.

rBefore and after comparison for Catppuccin through Kanagawa Before and after comparison for Last Horizon through Retro 82 Before and after comparison for Ristretto through White

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.

[defaults]
fill = "fit"
backdrop = "blur"

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

Gruvbox full composition over an ambient blurred backdrop at 5120x1440

Kanagawa

Kanagawa full composition over an ambient blurred backdrop at 5120x1440

Everforest

Everforest full composition over an ambient blurred backdrop at 5120x1440

Fidelity

  • all wordmarks reuse the exact path geometry from the checked-in logo.svg, rather than tracing the compressed WebPs
  • 16:9 trim bounds match the shipped rasters exactly
  • whole-frame mean absolute channel error is 0.0476 to 0.1109 out of 255, limited to sparse WebP compression and raster-antialiasing differences
  • every retained SVG is self-contained and contains no raster image references
  • every canonical background has an inspected 32:9 treatment; no wallpaper relies on an unreviewed crop or presentation mode

Verification

  • ./test/cli
  • bash test/shell.d/background-resolve-test.sh
  • bash test/shell.d/background-enumeration-test.sh
  • bash test/shell.d/menu-images-test.sh
  • bash test/shell.d/theme-staging-test.sh
  • XML validation, authoritative logo-path checks, and self-contained SVG checks for all 20 wordmarks
  • resolver renders inspected at 16:9 and 32:9
  • five-page resolver-driven review of all 92 canonical backgrounds at 32:9
  • live visual verification on the physical 5120x1440 display for a responsive wordmark, native Lumon SVG, Tokyo Night focal crop, non-center Miasma focal crop, and fitted blur treatments in Gruvbox, Kanagawa, and Everforest

@acrogenesis
acrogenesis force-pushed the feature/responsive-theme-assets branch from d2bc420 to ffe84cd Compare August 31, 2026 23:19
@acrogenesis
acrogenesis marked this pull request as ready for review September 1, 2026 01:24
@acrogenesis
acrogenesis force-pushed the feature/responsive-theme-assets branch from 0614c5b to ae3744c Compare September 1, 2026 01:42
@acrogenesis
acrogenesis force-pushed the feature/responsive-theme-assets branch from ae3744c to 4fd6479 Compare September 1, 2026 02:30
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.
@acrogenesis
acrogenesis force-pushed the feature/responsive-theme-assets branch from 4fd6479 to ae7f1c6 Compare September 7, 2026 14:58
@omarchybot omarchybot added the enhancement New feature or request label Sep 27, 2026
@greptile-apps

greptile-apps Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[High impact] The PR appears safe to merge, with a non-blocking bar-text contrast issue for responsive center and tile backgrounds on scaled displays.

Findings

  1. P2 Bar samples the wrong pixels ▶

Summary

This PR replaces bundled wordmark wallpapers with responsive SVGs and adds per-screen background choices, framing settings, and fitted blur backdrops.

  • Each monitor gets a wallpaper composition matched to its shape.
  • Built-in wallpapers keep their artwork visible across screen shapes.
  • Wallpaper lists show SVGs but keep screen-size variants hidden.
  • Transparent bars match their text color to each monitor’s wallpaper.
  • A theme switch cancels the old background intro before changing wallpapers.

Reviews (25) · Last reviewed commit: "Apply the Tokyo Night crop to the rename..." · Reviewed by Greptile

Comment thread bin/omarchy-theme-bg-resolve Resolved
Comment thread shell/plugins/background/Background.qml Resolved
Comment thread bin/omarchy-bar-text-color Resolved
Comment thread bin/omarchy-theme-set-templates Resolved
Comment thread bin/omarchy-theme-bg-resolve Resolved
Comment thread shell/plugins/bar/Bar.qml Resolved
Comment thread bin/omarchy-menu-images Resolved
@omarchybot omarchybot removed the enhancement New feature or request label Nov 20, 2026
Comment thread bin/omarchy-agent-look-theme Resolved
@omarchybot omarchybot added the enhancement New feature or request label Nov 22, 2026
Comment on lines +143 to +145
transform: Scale {
xScale: 1 / root.naturalScale
yScale: 1 / root.naturalScale

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Bar samples the wrong pixels

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants