Repository navigation
feat(theme): add background-only opacity - #274
erikrjohansson wants to merge 1 commit into
Conversation
Read an optional [flea] background-alpha from the existing shell settings. Apply it to the window planes; text, menus and dialogs stay opaque. Make the window clear at launch only when the value is below 1. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
⛔ Files ignored due to path filters (1)
📒 Files selected for processing (14)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughFlea now supports a configurable background alpha. Startup code uses the loaded body’s alpha to set window transparency, and selected UI background planes use the configured alpha. The README and ChangesConfigurable glass backgrounds
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant ShellJobs as shell-file jobs
participant Glass
participant LoadBody as loadBody()
participant Window
participant Planes as UI background planes
ShellJobs-->>Glass: Complete both startup reads
Glass->>Glass: Set clearWindow from configured alpha
LoadBody->>Window: Set loaded body source
LoadBody->>Window: Set transparent when body alpha is below 1
Glass-->>Planes: Provide alpha-adjusted background colors
Suggested reviewers: Merge Risk: ⚪ Minimal · up to No actionable merge-blocking issue is established. The glass setting is connected to shell loading, though the reader’s exact value and precedence behavior remains unverified. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
PLEASE!!!!! |
|
Omarchy just merged window transparency modes (Opaque / Transparent / Glassy) in omacom/omarchy#14991. Glassy uses the same idea as this PR (see-through background, solid text, blur behind), but as a user choice rather than a theme setting. So Flea should probably follow that mode instead of a theme key. Either Flea reads the mode itself, or Omarchy's glass script sets |
|
opacity always faded text with the background; background-only opacity for glass themes landed, reimplemented with credit to this PR (2e6d298, v0.3.10). Thanks @erikrjohansson! https://github.com/thisisgm/flea/releases/tag/v0.3.10 |
Flea has no background opacity setting, so the only way to make it transparent is Hyprland's window opacity. That fades the whole window, text included, which makes it harder to read. This adds a background opacity setting, like terminals have, so the background can be see-through while the text and icons stay solid:
Set it in a theme's
shell.toml, or in~/.config/omarchy/shell.tomlfor every theme. It defaults to 1, so nothing changes unless someone sets it.The list, sidebar and bars turn see-through. The sidebar and bars sit on top of the list, so at 0.34 they come out about 0.56 opaque. Menus, dialogs, Quick Look's panel and editors stay solid.
The window is only made see-through when the setting is below 1 at launch, so other themes keep today's opaque window. After an opaque launch, switching to a glass theme takes effect when Flea reopens. A window launched on glass follows later changes live.
On glass, the columns view's preview no longer flickers. Nothing changes at 1.
Testing (on 0.3.8)
tests/shellload.sh,tools/flea-file-budgetandtests/staticgates.shpass.Glass.qmlrows followTheme.qml's pattern, so please regenerate them if your CI disagrees.🤖 Generated with Claude Code
Summary by CodeRabbit