[gnome-themes-standard] toolbars: enable the raised and linked classes on non-primary toolbars
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] toolbars: enable the raised and linked classes on non-primary toolbars
- Date: Fri, 26 Aug 2011 20:28:17 +0000 (UTC)
commit b8ce292e702d01d32deface58a529d7e2d922cb1
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Aug 26 16:25:20 2011 -0400
toolbars: enable the raised and linked classes on non-primary toolbars
Such as the 'menu/toolbar' seen in Documents.
themes/Adwaita/gtk-3.0/gtk-widgets-assets-dark.css | 42 +++++-----
themes/Adwaita/gtk-3.0/gtk-widgets-assets.css | 42 +++++-----
themes/Adwaita/gtk-3.0/gtk-widgets.css | 83 ++++++++-----------
3 files changed, 75 insertions(+), 92 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets-assets-dark.css b/themes/Adwaita/gtk-3.0/gtk-widgets-assets-dark.css
index b56fdad..85a333a 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets-assets-dark.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets-assets-dark.css
@@ -192,39 +192,37 @@ GtkScale.scale-has-marks-below.slider.vertical:insensitive {
border-image: url("assets/primary-toolbar-button-active-border-dark.svg") 4 / 4 stretch;
}
-.primary-toolbar .toolbar .raised .button,
-.primary-toolbar.toolbar .raised .button,
-.primary-toolbar .toolbar .raised.button,
-.primary-toolbar.toolbar .raised.button {
+.toolbar .raised .button,
+.toolbar .raised.button {
border-image: url("assets/primary-toolbar-raised-button-border-dark.svg") 4 / 4 stretch;
}
/* nth-child for linked areas */
-.primary-toolbar.toolbar .raised.linked.button,
-.primary-toolbar.toolbar .raised.linked.button:active,
-.primary-toolbar.toolbar .raised.linked.button:active:hover,
-.primary-toolbar.toolbar .raised.linked .button,
-.primary-toolbar.toolbar .raised.linked .button:active,
-.primary-toolbar.toolbar .raised.linked .button:active:hover {
+.toolbar .raised.linked.button,
+.toolbar .raised.linked.button:active,
+.toolbar .raised.linked.button:active:hover,
+.toolbar .raised.linked .button,
+.toolbar .raised.linked .button:active,
+.toolbar .raised.linked .button:active:hover {
border-image: url("assets/primary-toolbar-raised-button-border-dark.svg") 4 / 4 0 stretch;
}
-.primary-toolbar.toolbar .raised.linked.button:nth-child(first) ,
-.primary-toolbar.toolbar .raised.linked.button:active:nth-child(first),
-.primary-toolbar.toolbar .raised.linked.button:active:hover:nth-child(first),
-.primary-toolbar.toolbar .raised.linked:nth-child(first) .button,
-.primary-toolbar.toolbar .raised.linked:nth-child(first) .button:active,
-.primary-toolbar.toolbar .raised.linked:nth-child(first) .button:active:hover {
+.toolbar .raised.linked.button:nth-child(first) ,
+.toolbar .raised.linked.button:active:nth-child(first),
+.toolbar .raised.linked.button:active:hover:nth-child(first),
+.toolbar .raised.linked:nth-child(first) .button,
+.toolbar .raised.linked:nth-child(first) .button:active,
+.toolbar .raised.linked:nth-child(first) .button:active:hover {
border-image: url("assets/primary-toolbar-raised-button-border-dark.svg") 4 / 4 0 4 4 stretch;
}
-.primary-toolbar.toolbar .raised.linked.button:nth-child(last),
-.primary-toolbar.toolbar .raised.linked.button:active:nth-child(last),
-.primary-toolbar.toolbar .raised.linked.button:active:hover:nth-child(last),
-.primary-toolbar.toolbar .raised.linked:nth-child(last) .button,
-.primary-toolbar.toolbar .raised.linked:nth-child(last) .button:active,
-.primary-toolbar.toolbar .raised.linked:nth-child(last) .button:active:hover {
+.toolbar .raised.linked.button:nth-child(last),
+.toolbar .raised.linked.button:active:nth-child(last),
+.toolbar .raised.linked.button:active:hover:nth-child(last),
+.toolbar .raised.linked:nth-child(last) .button,
+.toolbar .raised.linked:nth-child(last) .button:active,
+.toolbar .raised.linked:nth-child(last) .button:active:hover {
border-image: url("assets/primary-toolbar-raised-button-border-dark.svg") 4 / 4 4 4 0 stretch;
}
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets-assets.css b/themes/Adwaita/gtk-3.0/gtk-widgets-assets.css
index c8ac794..72890ce 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets-assets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets-assets.css
@@ -216,37 +216,35 @@ GtkScale.scale-has-marks-below.slider.vertical:insensitive {
border-image: url("assets/primary-toolbar-button-active-border.svg") 4 / 4 stretch;
}
-.primary-toolbar .toolbar .raised .button,
-.primary-toolbar.toolbar .raised .button,
-.primary-toolbar .toolbar .raised.button,
-.primary-toolbar.toolbar .raised.button {
+.toolbar .raised .button,
+.toolbar .raised.button {
border-image: url("assets/primary-toolbar-raised-button-border.svg") 4 / 4 stretch;
}
/* nth-child for linked areas */
-.primary-toolbar.toolbar .raised.linked.button,
-.primary-toolbar.toolbar .raised.linked.button:active,
-.primary-toolbar.toolbar .raised.linked.button:active:hover,
-.primary-toolbar.toolbar .raised.linked .button,
-.primary-toolbar.toolbar .raised.linked .button:active,
-.primary-toolbar.toolbar .raised.linked .button:active:hover {
+.toolbar .raised.linked.button,
+.toolbar .raised.linked.button:active,
+.toolbar .raised.linked.button:active:hover,
+.toolbar .raised.linked .button,
+.toolbar .raised.linked .button:active,
+.toolbar .raised.linked .button:active:hover {
border-image: url("assets/primary-toolbar-raised-button-border.svg") 4 / 4 0 stretch;
}
-.primary-toolbar.toolbar .raised.linked.button:nth-child(first) ,
-.primary-toolbar.toolbar .raised.linked.button:active:nth-child(first),
-.primary-toolbar.toolbar .raised.linked.button:active:hover:nth-child(first),
-.primary-toolbar.toolbar .raised.linked:nth-child(first) .button,
-.primary-toolbar.toolbar .raised.linked:nth-child(first) .button:active,
-.primary-toolbar.toolbar .raised.linked:nth-child(first) .button:active:hover {
+.toolbar .raised.linked.button:nth-child(first) ,
+.toolbar .raised.linked.button:active:nth-child(first),
+.toolbar .raised.linked.button:active:hover:nth-child(first),
+.toolbar .raised.linked:nth-child(first) .button,
+.toolbar .raised.linked:nth-child(first) .button:active,
+.toolbar .raised.linked:nth-child(first) .button:active:hover {
border-image: url("assets/primary-toolbar-raised-button-border.svg") 4 / 4 0 4 4 stretch;
}
-.primary-toolbar.toolbar .raised.linked.button:nth-child(last),
-.primary-toolbar.toolbar .raised.linked.button:active:nth-child(last),
-.primary-toolbar.toolbar .raised.linked.button:active:hover:nth-child(last),
-.primary-toolbar.toolbar .raised.linked:nth-child(last) .button,
-.primary-toolbar.toolbar .raised.linked:nth-child(last) .button:active,
-.primary-toolbar.toolbar .raised.linked:nth-child(last) .button:active:hover {
+.toolbar .raised.linked.button:nth-child(last),
+.toolbar .raised.linked.button:active:nth-child(last),
+.toolbar .raised.linked.button:active:hover:nth-child(last),
+.toolbar .raised.linked:nth-child(last) .button,
+.toolbar .raised.linked:nth-child(last) .button:active,
+.toolbar .raised.linked:nth-child(last) .button:active:hover {
border-image: url("assets/primary-toolbar-raised-button-border.svg") 4 / 4 4 4 0 stretch;
}
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index d2d345e..cf71f19 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -949,10 +949,8 @@ GtkTreeMenu .menuitem * {
}
/* primary toolbar raised buttons */
-.primary-toolbar .toolbar .raised .button,
-.primary-toolbar.toolbar .raised .button,
-.primary-toolbar .toolbar .raised.button,
-.primary-toolbar.toolbar .raised.button {
+.toolbar .raised .button,
+.toolbar .raised.button {
border-width: 1;
border-style: none;
padding: 3;
@@ -965,31 +963,23 @@ GtkTreeMenu .menuitem * {
-GtkWidget-focus-line-width: 2;
}
-.primary-toolbar .toolbar .raised .button:insensitive,
-.primary-toolbar.toolbar .raised .button:insensitive,
-.primary-toolbar .toolbar .raised.button:insensitive,
-.primary-toolbar.toolbar .raised.button:insensitive {
+.toolbar .raised .button:insensitive,
+.toolbar .raised.button:insensitive {
background-image: none;
}
-.primary-toolbar .toolbar .raised .button:hover,
-.primary-toolbar.toolbar .raised .button:hover,
-.primary-toolbar .toolbar .raised.button:hover,
-.primary-toolbar.toolbar .raised.button:hover {
+.toolbar .raised .button:hover,
+.toolbar .raised.button:hover {
background-image: -gtk-gradient (linear,
left top, left bottom,
from (@button_hover_gradient_color_a),
to (@button_hover_gradient_color_b));
}
-.primary-toolbar .toolbar .raised .button:active,
-.primary-toolbar .toolbar .raised .button:hover:active,
-.primary-toolbar.toolbar .raised .button:hover:active,
-.primary-toolbar.toolbar .raised .button:active,
-.primary-toolbar .toolbar .raised.button:active,
-.primary-toolbar .toolbar .raised.button:hover:active,
-.primary-toolbar.toolbar .raised.button:hover:active,
-.primary-toolbar.toolbar .raised.button:active {
+.toolbar .raised .button:active,
+.toolbar .raised .button:hover:active,
+.toolbar .raised.button:hover:active,
+.toolbar .raised.button:active {
background-image: -gtk-gradient (linear,
left top, left bottom,
from (@button_raised_active_gradient_color_a),
@@ -997,59 +987,56 @@ GtkTreeMenu .menuitem * {
background-color: @theme_base_color;
}
-.primary-toolbar .toolbar .raised .button:insensitive:active,
-.primary-toolbar.toolbar .raised .button:insensitive:active,
-.primary-toolbar .toolbar .raised.button:insensitive:active,
-.primary-toolbar.toolbar .raised.button:insensitive:active {
+.toolbar .raised .button:insensitive:active
+.toolbar .raised.button:insensitive:active {
border-style: solid;
border-width: 1;
}
/* setup shadows */
-.primary-toolbar.toolbar .raised .button,
-.primary-toolbar .toolbar .raised .button,
-.primary-toolbar.toolbar .raised.button,
-.primary-toolbar .toolbar .raised.button {
+.toolbar .raised .button,
+.toolbar .raised.button {
icon-shadow: 0 1 @theme_base_color;
text-shadow: 0 1 @theme_base_color;
}
-.primary-toolbar.toolbar .raised .button *:active,
-.primary-toolbar .toolbar .raised .button *:active,
-.primary-toolbar.toolbar .raised .button *:insensitive,
-.primary-toolbar .toolbar .raised .button *:insensitive
-.primary-toolbar.toolbar .raised.button *:active,
-.primary-toolbar .toolbar .raised.button *:active,
-.primary-toolbar.toolbar .raised.button *:insensitive,
-.primary-toolbar .toolbar .raised.button *:insensitive {
+.toolbar .raised .button *:active,
+.toolbar .raised .button *:insensitive
+.toolbar .raised.button *:active,
+.toolbar .raised.button *:insensitive {
icon-shadow: none;
text-shadow: none;
}
/* nth-child for linked regions */
-.primary-toolbar.toolbar .raised.linked .button,
-.primary-toolbar.toolbar .raised.linked .button:active,
-.primary-toolbar.toolbar .raised.linked.button,
-.primary-toolbar.toolbar .raised.linked.button:active {
+.toolbar .raised.linked .button,
+.toolbar .raised.linked .button:active,
+.toolbar .raised.linked.button,
+.toolbar .raised.linked.button:active {
border-width: 1 0;
border-radius: 0;
box-shadow: inset 1 0 @button_raised_linked_shadow;
}
-.primary-toolbar.toolbar .raised.linked.button:nth-child(first),
-.primary-toolbar.toolbar .raised.linked.button:active:nth-child(first),
-.primary-toolbar.toolbar .raised.linked:nth-child(first) .button,
-.primary-toolbar.toolbar .raised.linked:nth-child(first) .button:active {
+.toolbar .raised.linked .button *:active,
+.toolbar .raised.linked.button *:active {
+ icon-shadow: none;
+}
+
+.toolbar .raised.linked.button:nth-child(first),
+.toolbar .raised.linked.button:active:nth-child(first),
+.toolbar .raised.linked:nth-child(first) .button,
+.toolbar .raised.linked:nth-child(first) .button:active {
border-width: 1 0 1 1;
box-shadow: none;
}
-.primary-toolbar.toolbar .raised.linked.button:nth-child(last),
-.primary-toolbar.toolbar .raised.linked.button:active:nth-child(last),
-.primary-toolbar.toolbar .raised.linked:nth-child(last) .button,
-.primary-toolbar.toolbar .raised.linked:nth-child(last) .button:active {
+.toolbar .raised.linked.button:nth-child(last),
+.toolbar .raised.linked.button:active:nth-child(last),
+.toolbar .raised.linked:nth-child(last) .button,
+.toolbar .raised.linked:nth-child(last) .button:active {
border-width: 1 1 1 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]