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 704266 - infobar colors are jarring
infobar colors are jarring
Status: RESOLVED FIXED
Product: gnome-themes-standard
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-themes-standard-maint
gnome-themes-standard-maint
Depends on:
Blocks:
 
 
Reported: 2013-07-15 15:54 UTC by William Jon McCann
Modified: 2013-07-15 21:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use the same color for infobars (3.12 KB, patch)
2013-07-15 15:55 UTC, William Jon McCann
reviewed Details | Review
Use the same color for infobars (3.15 KB, patch)
2013-07-15 16:29 UTC, William Jon McCann
accepted-commit_now Details | Review

Description William Jon McCann 2013-07-15 15:54:49 UTC
Currently, we color the background of GtkInfoBar differently depending on what type of "message" it is displaying. I think this is counterproductive. The colors are quite alarming and they don't really change how the user is supposed to react to these messages. In fact, it isn't clear the user will have any idea what "type" of message the bar is displaying or whether they should. It just makes the message harder to interpret and distracts from the text (the actual message).

Really the only requirement for infobars is that they are easy to distinguish from other controls.

Attached is a patch that uses the "question" blue for all infobar classes.
Comment 1 William Jon McCann 2013-07-15 15:55:15 UTC
Created attachment 249211 [details] [review]
Use the same color for infobars
Comment 2 Cosimo Cecchi 2013-07-15 16:22:28 UTC
Review of attachment 249211 [details] [review]:

I never really liked all the various infobar colors, so I agree with the general idea here. One thing though is that the way the message type is set on the infobar is through a public API, and GTK docs explicitly mention the message type changing the background color: "GTK+ uses the message type to determine the background color of the message area."
If it doesn't make sense for the infobar to change background color, I feel that should be reflected in the API as well (e.g. it should be deprecated) and the documentation, otherwise it can be confusing for developers if the default behavior didn't match the expectations given by GTK.

::: themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -3876,3 @@
 .error .button,
 .error .button:insensitive,
-.error .button:active {

Should keep .error .button:active among in the selectors.
Comment 3 William Jon McCann 2013-07-15 16:29:24 UTC
Created attachment 249220 [details] [review]
Use the same color for infobars
Comment 5 Cosimo Cecchi 2013-07-15 17:31:12 UTC
Review of attachment 249220 [details] [review]:

Looks good.