Repository navigation
feat(theme): default bare Transparent to opaque - #323
Conversation
No shipped theme sets an opacity of its own and no toggle file means
transparency was never chosen, so a bare launch draws the theme opaque.
User and theme [flea] background-alpha keep their precedence, and the
opaque and glassy modes are unchanged.
This restores what README ('the default is 1') and AGENTS.md
('transparent, the theme's value, else 1') already specify.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
The referenced side-by-side demo recording (stock on the left vs this branch on the right, same content and compositor rules): screenrecording-2026-10-16_12-54-15.mp4 |
|
As discussed in DMs, hotfixing for tonight |
|
Fixed in |
Problem
A bare launch — no user
[flea]key, no theme[flea]key, no mode toggle file — draws translucent. On current systems that state describes nearly every launch:shell.toml, let alone a[flea]key — and per Omarchy's theming spec (docs/theming.md), none could do so through any documented mechanism:shell.tomlcovers shell surfaces only (closed section list, no per-app sections), no template indefault/themed/emits opacity, and window opacity lives indefault/hypr/windows.lua, outside themes entirely. Flea's[flea] background-alphakey, which this patch reads, has no meaning in that spec.window-opaque.lua/window-glassy.lua, so the mode channel is silent andmodesits at"transparent"permanently. (Omarchy's Opaque/Transparent/Glassy mode system, omacom/omarchy#14991, has merged upstream but not shipped — once it does,moderesolves and this fallthrough becomes nearly unreachable, so the change is forward-compatible.)So translucency is currently opt-out in a configuration space where opting out is impossible. The only escape is hand-writing a
[flea]key the user shouldn't need.Why opaque is the right default
0f844551.0.985/0.96rule becomes the sole authority — the same relationship every sibling window has.The explicit paths are untouched and keep full precedence: user
[flea]→ Opaque mode → theme[flea]→ glassy.What changed
ui/Glass.qml: bare-Transparent fallthrough returns1; removed the now-unusedtransparentAlpha.ui/js/Material.js: removedtransparentFloor(), left with no callers.ui/Commons/Color.qml), so unknown theme content is inert and the key is side-effect-free for the shell.barecase inglass.sh; bare/socket/reload expectations to 255 inglass-mode.sh; transparent legs to opaque inglass-boot.sh,material-startup.sh,ui-captures-glass.sh; transparent section oftheme-contrast.qmlnow asserts opaque-ink restoration; replay stub inglasspick-case.shmatches; removed the vacuoustransparentEdgesharness; re-derived thetheme-contrast.shcount (45/palette).AGENTS.md: corrected the stale "holds 1 until the look pick" clause.Verification
glass.sh(incl. newbare),glass-boot.sh,glass-mode.sh(12/12, 37 checks),material-startup.sh,theme-contrast.sh(1084 checks over 24 palettes),staticgates.sh(14/14) — all green. Two environment notes:startup-objects.shfails identically on the clean tree in this sandbox (pre-existing, unrelated);ui-captures-glass.sh/glasspick-case.shneed a live compositor, so their edits are by inspection.A side-by-side demo recording (stock vs this branch, same content and compositor rules) follows in the first comment below.
Precedence note
Opaque mode intentionally outranks the theme key: with no user key set, an Opaque-mode launch returns 1 without consulting the theme value. This extends the existing user-over-theme precedence (the user's own
[flea]key already wins outright) — an explicit user mode selection should not be second-guessed by a theme default. Glassy mode already defers to the theme key, so this only governs the Opaque + theme-key-present case, which no current install can produce.Summary by CodeRabbit