[nautilus] toolbar: improve operations button attention style
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] toolbar: improve operations button attention style
- Date: Wed, 19 Aug 2015 22:51:35 +0000 (UTC)
commit b8d76f9aae3ff6eae94c689f704f9d50e67899e9
Author: Carlos Soriano <csoriano gnome org>
Date: Wed Aug 19 18:26:31 2015 +0200
toolbar: improve operations button attention style
Instead of using blue, use a white higligth with the same colors
as the current button class of adwaita.
https://bugzilla.gnome.org/show_bug.cgi?id=753728
src/Adwaita.css | 5 +++++
src/nautilus-toolbar.c | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/Adwaita.css b/src/Adwaita.css
index 6676d7f..940d46e 100644
--- a/src/Adwaita.css
+++ b/src/Adwaita.css
@@ -40,6 +40,11 @@
outline-radius: 20px;
}
+/* Toolbar */
+.nautilus-operations-button-needs-attention {
+ background-image: linear-gradient(to bottom, #fafafa, #ededed 40%, #f9f9f9);
+}
+
/* Floating status bar */
.floating-bar {
padding: 2px;
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c
index b747ef5..a60cbd0 100644
--- a/src/nautilus-toolbar.c
+++ b/src/nautilus-toolbar.c
@@ -405,7 +405,7 @@ remove_operations_button_attention_style (NautilusToolbar *self)
style_context = gtk_widget_get_style_context (self->priv->operations_button);
gtk_style_context_remove_class (style_context,
- "suggested-action");
+ "nautilus-operations-button-needs-attention");
self->priv->operations_button_attention_timeout_id = 0;
return G_SOURCE_REMOVE;
@@ -451,7 +451,7 @@ on_progress_info_finished (NautilusToolbar *self,
folder_to_open != NULL) {
style_context = gtk_widget_get_style_context (self->priv->operations_button);
gtk_style_context_add_class (style_context,
- "suggested-action");
+ "nautilus-operations-button-needs-attention");
self->priv->operations_button_attention_timeout_id = g_timeout_add_seconds (1,
(GSourceFunc)
remove_operations_button_attention_style,
self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]