Skip to content

Conversation

@dalsochio
Copy link
Contributor

Summary

  • Add dedicated CSS variables for GNOME Shell panel customization (panel_bg_color, panel_fg_color, panel_button_bg_color, panel_hover_bg_color)
  • Maintain full backward compatibility with existing themes

Motivation

When using Rewaita alongside other GNOME Shell modifiers like Blur my Shell, the lack of panel-specific variables causes visual inconsistencies. For example, when Blur my Shell applies transparency to the panel, the text and hover states inherit from generic window colors, making the interface appear broken or incompatible.
By introducing dedicated panel variables, users gain fine-grained control over:

  • Panel background color
  • Panel text/icon color
  • Panel button background (normal state)
  • Panel button hover background

Changes

New variables (with default values for compatibility):

@define-color panel_bg_color @window_bg_color;
@define-color panel_fg_color @window_fg_color;
@define-color panel_button_bg_color transparent;
@define-color panel_hover_bg_color @card_bg_color;

Files modified:

  • src/themes/gnome-shell-template.css - Use new panel variables
  • src/utils.py - Add fallback logic for backward compatibility
  • All theme files (34 total) - Add panel variable definitions

Backward Compatibility

Existing themes continue to work without modification. The utils.py includes fallback logic that automatically assigns default values if a theme doesn't define the new variables.

Images

Before:
image

After:
image

@SwordPuffin
Copy link
Owner

Sorry for the late reply, I've been dragging my feet on approving this.

I was fairly certain that there would be some conflict with blur my shell, I guess this irons it out.

Also, did you try out any of the extra options like transparency? I'm also curious if you tried out the wallpaper tint feature, because I need more feedback on it.

@SwordPuffin SwordPuffin merged commit dcb6fe4 into SwordPuffin:main Dec 1, 2025
@dalsochio
Copy link
Contributor Author

dalsochio commented Dec 1, 2025

Hey, @SwordPuffin

I noticed that the branch version has more features than the published version.
I just played around with the transparency and window borders. I confess I'm not a big fan of transparency; I only tested it briefly and didn't focus on it much, but I did like the borders. It's something I'd love to be able to use permanently. It worked well on the windows I tested.

What specifically would you like me to test? I have some free time next Saturday, I can check it out for you and create a report.

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.

2 participants