After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 706446 - Pushed button text isn't very legible
Pushed button text isn't very legible
Status: RESOLVED FIXED
Product: gnome-themes-standard
Classification: Core
Component: Adwaita GTK3 theme
3.9.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-themes-standard-maint
gnome-themes-standard-maint
Depends on:
Blocks:
 
 
Reported: 2013-08-20 22:09 UTC by Allan Day
Modified: 2013-08-20 23:39 UTC
See Also:
GNOME target: ---
GNOME version: 3.9/3.10


Attachments
patch (1.78 KB, patch)
2013-08-20 22:10 UTC, Allan Day
needs-work Details | Review
updated patch (2.46 KB, patch)
2013-08-20 22:45 UTC, Allan Day
none Details | Review

Description Allan Day 2013-08-20 22:09:41 UTC
Right now the text on pushed buttons is white with regular weight. In the dark theme, it is blue with regular weight. This is hard to read in the light theme. In the dark theme it is a bit blingy. It doesn't follow the mockups in either case:

https://raw.github.com/gnome-design-team/gnome-mockups/master/theming/widgets/widget-factory.png

In addition, the path bar seems to be inconsistent, in that it uses bold text weight for pushed buttons.
Comment 1 Allan Day 2013-08-20 22:10:57 UTC
Created attachment 252479 [details] [review]
patch

The attached patch is the best I could do. It has a few problems though:

 1. The change to the dark theme doesn't seem to apply for some reason.
 2. I couldn't figure out how to get rid of the bold weight for the path bar.
Comment 2 Cosimo Cecchi 2013-08-20 22:30:57 UTC
Review of attachment 252479 [details] [review]:

::: themes/Adwaita/gtk-3.0/gtk-main-dark.css
@@ +45,3 @@
 @define-color button_active_gradient_color_a shade (@button_gradient_color_b, 0.7);
 @define-color button_active_gradient_color_b shade (@button_gradient_color_a, 0.7);
+@define-color button_active_text @theme_text_color;

There's probably another override in gtk-widgets-dark-overrides.css that changes that color again to @theme_selected_bg_color for the dark theme.
Comment 3 Cosimo Cecchi 2013-08-20 22:31:58 UTC
As for your second issue, I think the label in the pathbar is made bold from code. If we want it to be of regular weight instead, we should patch nautilus and GtkFileChooser.
Comment 4 Allan Day 2013-08-20 22:45:43 UTC
Created attachment 252483 [details] [review]
updated patch

Thanks for the hint, Cosimo. I found the override I needed to override. I'm not exactly clear about why the override is needed, it should be added, and am not sure about what changing it will do.

It would be great to look at changing the pathbar to match Adwaita. It sucks that the style is defined in the code.
Comment 5 Cosimo Cecchi 2013-08-20 22:50:15 UTC
(In reply to comment #4)

> Thanks for the hint, Cosimo. I found the override I needed to override. I'm not
> exactly clear about why the override is needed, it should be added, and am not
> sure about what changing it will do.

Honestly I don't remember why that was needed - but it's definitely not needed if we make it use the same color as the non-pushed state, so I would just remove that line from the selector (the shadow overrides are still needed).
 
> It would be great to look at changing the pathbar to match Adwaita. It sucks
> that the style is defined in the code.

I agree - I will take a look at changing that for nautilus and the file chooser. In the meantime, feel free to push your patch with that useless override removed.
Comment 6 Allan Day 2013-08-20 23:13:26 UTC
Pushed the updated patch: https://git.gnome.org/browse/gnome-themes-standard/commit/?id=697a4fea200e2605a95cef9d0d9979fe0073cd0f

Thanks Cosimo!
Comment 7 Allan Day 2013-08-20 23:39:09 UTC
Filed bug 706451 for the path bar issue.