Repository navigation
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8a82ded18f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Reviewed at ff66ddd against current What was checked. I read the diff against
Why. Appearance > Window Transparency (#14991) landed after this PR was opened. With Glassy chosen, The same question comes up the other way round: with Opaque windows chosen, a theme with Docs. On Smaller notes. The 0–1 validation and the fallback to Earlier bot reviews. chatgpt-codex-connector's one finding (hard-wrapped prose in Overlap with #8720. #8720, also yours, adds the same Second opinion. None ran. Codex Medium answers a ping on the review machine, but omabot's daily review budget was spent, so nothing here was checked by a second model. Waiting on. The maintainer, to decide how theme opacity should compose with Appearance > Window Transparency and which of this PR and #8720 to carry forward. Then the author, to rebase onto |
|
Addressed the Glassy regression in Added a real stock-template/Glassy regression, confirmed red on the prior implementation and green for omitted, invalid, explicit translucent, explicit opaque, and commented values. CLI, staging, template, window-transparency, and install-guard checks pass. Updated the Foot documentation and PR behavior section to match current OSC alpha updates. Also inspected isolated generated Foot windows at fallback alpha 0.65 and declared alpha 0.85 without changing live configuration. The overlap with #8720 remains a maintainer choice; neither PR was closed or combined.
|
[Medium impact] The PR appears safe to merge, with no new actionable issues found. SummaryAdds optional
Reviews (2) · Last reviewed commit: "Validate full quoted terminal opacity va..." · Reviewed by Greptile |
|
Fixed in Extended the existing stock-template/Glassy regression with quoted junk, quoted hashes, unquoted junk, quoted scalars with comments, and comments containing quotes. The quoted-junk case fails before the fix; all template and theme-staging checks pass after it. Invalid declarations preserve Glassy fallback rather than silently enabling the prefix opacity.
|
Add terminal opacity to generated themes
Before Omarchy 4.0.1, themes could set terminal background transparency by shipping terminal config files. Omarchy 4.0.1 blocks those files in Git-installed themes because they can contain executable hooks, leaving installed themes without a safe way to set opacity. This PR adds a validated, data-only
terminal_opacityvalue tocolors.tomland uses it when generating terminal configs.What Is the Value of This?
Terminal background opacity lets wallpaper and blur show through without reducing the opacity of foreground text. Combined with Hyprland's blur settings, it gives theme authors finer control over the terminal's appearance, from a subtle haze to a more pronounced glass effect. That range helps themes develop a distinct visual character while keeping terminal text readable.
The Quickshell-based Omarchy Shell offers detailed surface controls, and Glassy windows already supply a default terminal background opacity. This optional token lets a theme explicitly choose its own terminal background opacity without fading foreground text or suppressing Glassy's fallback when the theme declares nothing.
The Event Horizon comparison shows the practical difference:
0.45with Hyprland window opacity1.0; foreground text remains opaque.1.0with Hyprland window opacity0.45; foreground text fades with the entire surface.Individual VM captures
Opaque baseline
Terminal background opacity
Hyprland whole-window opacity
Initial implementation evidence
An initial VM pass compared generated Foot configs using the compatibility default and the new token:
These initial captures predate current Glassy and live Foot-alpha support. At that earlier base, the
0.78capture was byte-identical before and after the then color-only OSC sequence. Current Foot behavior is described below.Summary
terminal_opacitytheme token from0.0through1.00.65fallback and user terminal settings when opacity is undeclaredBehavior
Themes can now set:
Stock templates emit no opacity directive when the token is omitted or invalid, leaving the terminal's own settings and selected window mode intact. Glassy can therefore supply its usual
0.65background opacity. A valid explicit theme value, including1.0, takes precedence over that fallback, consistent with authored terminal configs. The scalar{{ terminal_opacity }}still falls back to1.0for custom templates that opt into it. This controls the terminal emulator's background rather than applying compositor opacity to text and the rest of the window.Running Foot windows receive the generated theme's last
alphaover OSC on theme and window-opacity changes; reopening is not required. Other terminals follow their normal configuration-reload behavior.Validation
Current update at
60d76856: CLI, theme-staging, template-rendering, window-transparency, and install-guard checks pass. The new stock-template regression fails on the prior implementation and passes for missing, invalid, explicit translucent, explicit opaque, and commented values with Glassy selected. Extraction, shell syntax, and feature-diff whitespace checks pass. Isolated generated Foot windows were visually checked at Glassy's fallbackalpha=0.65and an explicit themealpha=0.85; live configuration was not changed.Original implementation validation
The checks and VM evidence below were recorded against the original base, before the current update. Passed:
./test/clibash test/shell.d/theme-staging-test.shbash -n bin/omarchy-theme-color bin/omarchy-theme-set-templatesfoot --config=<generated-foot.ini> --check-configghostty +validate-config --config-file=<generated-ghostty.conf>alacritty migrate --dry-run --silent --skip-imports --config-file <generated-alacritty.toml>git diff --checkomarchy theme install./test/shellran all 206 shell test files. Five unrelated failures reproduce unchanged on a cleanorigin/quattroworktree at0ae16948:config-test.sh,snapper-test.sh, andunowned-system-paths-test.sh: localomarchy-pkgscheckout unavailablecopy-url-shortcut-migration-test.sh: existing mid-repair browser-start race assertionruntime-smoke-test.sh: existing duplicate IPC-handler count assertionThe VM comparison used Event Horizon installed from its Git repository through
omarchy theme install. After addingterminal_opacity = "0.45"to the installed theme, Omarchy filtered its supplied terminal configs and regenerated Foot with the new value.--[ Pi :: gpt-6.1-sol ]----- on behalf of:@OldJobobo