Open tyzoid opened 5 years ago
After digging further, this appears to be due to the fact that the panels are now semi-transparent instead of light on a light theme, allowing the desktop background to show through. Why the light theme does this, and the dark theme does not seems odd, however, and breaks user expectations.
In researching this issue, I did uncover a bug in the scss (assuming the transparency is Working As Designed™).
Essentially, if the panel background is light, the buttons will still render as if they're on a dark background. Changing the button styles from always dark to depend on the panel color fixes this.
diff --git a/src/_sass/gtk/_common-3.20.scss b/src/_sass/gtk/_common-3.20.scss
index c111dd2b..0c9de49f 100644
--- a/src/_sass/gtk/_common-3.20.scss
+++ b/src/_sass/gtk/_common-3.20.scss
@@ -496,13 +496,13 @@ button {
@at-root %button_selected {
&.flat {
- color: on(dark, secondary);
+ color: on($panel, secondary);
- &:focus, &:hover, &:active, &:checked { color: on(dark); }
+ &:focus, &:hover, &:active, &:checked { color: on($panel); }
- &:disabled { color: on(dark, secondary-disabled); }
+ &:disabled { color: on($panel, secondary-disabled); }
- &:checked:disabled { color: on(dark, disabled); }
+ &:checked:disabled { color: on($panel, disabled); }
}
}
Thanks for your research @tyzoid ! :+1: to please merge this :)
The master (commit 01916998728959ba5e8bfa694f12d8b43ca083b5) has the same issue again.
Reporter Info
Actual Issue After upgrading to xfce 4.14, the panel appears dark and text unreadable.
Grabbing the latest theme from git yields a readable (but dark) result:
Functionality works as expected on adwaita:
Weirdly, materia-light seems to have a panel color of #000, darker than that of materia default:
Additional Info Searching through the built CSS, it appears that gtk-light has a color of
rgba(0,0,0,.6)