Skip to content

BackgroundManager: Defer to user preference when translucent - #701

Open
danirabbit wants to merge 9 commits into
mainfrom
danirabbit/userprefersdarklight
Open

BackgroundManager: Defer to user preference when translucent#701
danirabbit wants to merge 9 commits into
mainfrom
danirabbit/userprefersdarklight

Conversation

@danirabbit

@danirabbit danirabbit commented Aug 27, 2026

Copy link
Copy Markdown
Member

fixes #657

Follow the user preference when the panel will be translucent.

Screenshot from 2026-08-27 17 41 01 Screenshot from 2026-08-27 17 41 29

If Gala thinks the panel should be transparent, reduce transparency makes it translucent:

Screenshot from 2026-08-27 17 45 30 Screenshot from 2026-08-27 17 45 42

if Gala thinks the panel should be translucent, reduce transparency makes it completely opaque

Screenshot from 2026-08-27 17 40 13 Screenshot from 2026-08-27 17 41 14

If Gala thinks the panel should be transparent, maintain the current behavior:

Screenshot from 2026-08-27 17 41 54 Screenshot from 2026-08-27 17 42 06

Note: This should theoretically use Granite.StyleManager, but it's not sending correct color info rn

@danirabbit
danirabbit requested a review from a team August 28, 2026 00:08
@danirabbit danirabbit changed the title BackgroundManager: Defer to use preference when translucent BackgroundManager: Defer to user preference when translucent Aug 28, 2026
@danirabbit
danirabbit marked this pull request as ready for review August 28, 2026 00:10
Comment thread src/PanelWindow.vala

update_panel_dimensions ();
Services.BackgroundManager.initialize (panel_height);
Services.BackgroundManager.initialize (panel.get_height ().clamp (16, 48));

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I guess this is a workaround, but it fixes the transparent behavior 🤷‍♀️

@danirabbit
danirabbit requested a review from a team August 28, 2026 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wingpanel theming

1 participant