[nautilus/wip/csoriano/operations-attention: 1/3] toolbar: improve operations button attention style
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/csoriano/operations-attention: 1/3] toolbar: improve operations button attention style
- Date: Wed, 19 Aug 2015 17:09:56 +0000 (UTC)
commit 4b0f1785276337da2ce9f8474d17979ce481b1b1
Author: Carlos Soriano <csoriano gnome org>
Date: Wed Aug 19 18:26:31 2015 +0200
toolbar: improve operations button attention style
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..47c2682 100644
--- a/src/Adwaita.css
+++ b/src/Adwaita.css
@@ -40,6 +40,11 @@
outline-radius: 20px;
}
+/* Toolbar */
+.nautilus-operations-button-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..e8921c0 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-need-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-need-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]