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 706385 - Add a button style for destructive actions
Add a button style for destructive actions
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: 706381
 
 
Reported: 2013-08-20 11:45 UTC by Allan Day
Modified: 2013-08-20 14:03 UTC
See Also:
GNOME target: ---
GNOME version: 3.9/3.10


Attachments
patch (9.09 KB, patch)
2013-08-20 11:46 UTC, Allan Day
needs-work Details | Review
updated patch (4.11 KB, patch)
2013-08-20 12:38 UTC, Allan Day
reviewed Details | Review
updated patch (3.26 KB, patch)
2013-08-20 13:58 UTC, Allan Day
committed Details | Review

Description Allan Day 2013-08-20 11:45:39 UTC
Some buttons have negative consequences, and it is helpful to indicate this in their visual style. In the mockups we tend to use a red colour for this.

Applications that are already using this style include Clocks and Software, so it makes sense to keep the style in Adwaita.
Comment 1 Allan Day 2013-08-20 11:46:53 UTC
Created attachment 252382 [details] [review]
patch

I simply copied the code over from Software.
Comment 2 Cosimo Cecchi 2013-08-20 11:56:45 UTC
Review of attachment 252382 [details] [review]:

::: themes/Adwaita/gtk-3.0/gtk-main.css
@@ +151,3 @@
+@define-color destructive_action_button_border #9d4242;
+@define-color destructive_action_button_fg @theme_base_color;
+@define-color destructive_action_button_shadow shade(@destructive_action_button_border, 1.15);

There should be a dark theme equivalent defined for these in gtk-main-dark.css

@@ +190,3 @@
  * WM *
  ******/
+@define-color wm_title shade(@theme_fg_color,1.8);

This change doesn't belong to this patchset.

::: themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ +80,3 @@
+    color: @unfocused_insensitive_fg_color;
+}
+

Most of the changes in this file look like the result of a merge conflict of some sort, and should be backed out.
Comment 3 Allan Day 2013-08-20 12:38:36 UTC
Created attachment 252407 [details] [review]
updated patch

Looks like a managed to include some of Jakub's window theme changes. This looks better.
Comment 4 Cosimo Cecchi 2013-08-20 13:09:27 UTC
Review of attachment 252407 [details] [review]:

Other than the comment below, this looks fine to me.

::: themes/Adwaita/gtk-3.0/gtk-main-dark.css
@@ +141,3 @@
+@define-color destructive_action_button_border #9d4242;
+@define-color destructive_action_button_fg @theme_base_color;
+@define-color destructive_action_button_shadow shade(@destructive_action_button_border, 1.15);

These colors are the same as in the bright theme - if that's intended, we have another file (gtk-main-common.css) that is included by both themes and holds color defines common to both, and these should be moved there.
Comment 5 Allan Day 2013-08-20 13:58:18 UTC
Created attachment 252424 [details] [review]
updated patch

Moves the colors to gtk-main-common.css. They work well enough in both the light and dark variants.
Comment 6 Cosimo Cecchi 2013-08-20 14:00:32 UTC
Review of attachment 252424 [details] [review]:

Looks good!
Comment 7 Allan Day 2013-08-20 14:03:39 UTC
Comment on attachment 252424 [details] [review]
updated patch

Pushed: https://git.gnome.org/browse/gnome-themes-standard/commit/?id=c9fd43eee9913c689dfbad90f8e0736fc9efb99b

Thanks for your help, Cosimo!