[gnome-themes-standard] csd: Improve csd decorations
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] csd: Improve csd decorations
- Date: Sat, 29 Jun 2013 22:55:32 +0000 (UTC)
commit 2bbc039aeca958f033981843d42e631070c766a5
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jun 29 18:54:17 2013 -0400
csd: Improve csd decorations
Only treat buttons with the titlebutton class as window buttons,
and try to rtl right by looking for left/right boxes. These were
just added in gtk.
themes/Adwaita/gtk-3.0/gtk-widgets.css | 26 +++++++++++++++++---------
1 files changed, 17 insertions(+), 9 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index 6dd2691..4231030 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -4001,11 +4001,12 @@ GtkBubbleWindow .toolbar {
background-image: none;
}
-.titlebar .button {
+.titlebar .titlebutton {
icon-shadow: 0px 1px darker (darker (@theme_bg_color));
+ color: white;
}
-.titlebar .button {
+.titlebar .titlebutton {
border-style: none none solid solid;
border-color: darker(@theme_bg_color);
border-image: none;
@@ -4019,7 +4020,7 @@ GtkBubbleWindow .toolbar {
@wm_button_bg_d);
}
-.titlebar .button:hover {
+.titlebar .titlebutton:hover {
background-image: linear-gradient(to bottom,
@wm_button_bg_hover_a,
@wm_button_bg_hover_b,
@@ -4027,23 +4028,30 @@ GtkBubbleWindow .toolbar {
@wm_button_bg_hover_d);
}
-.titlebar .button:active {
+.titlebar .titlebutton:active {
background-image: linear-gradient(to bottom,
@wm_button_bg_active_a,
@wm_button_bg_active_b,
@wm_button_bg_active_c);
}
-.titlebar .button:first-child {
- border-style: none none solid none;
- border-top-left-radius: 10px;
+.titlebar .right .titlebutton:first-child {
+ border-bottom-left-radius: 5px;
}
-.titlebar .button:last-child {
+.titlebar .right .titlebutton:last-child {
border-top-right-radius: 10px;
}
-.titlebar .button:backdrop {
+.titlebar .left .titlebutton:last-child {
+ border-bottom-right-radius: 5px;
+}
+
+.titlebar .left .titlebutton:first-child {
+ border-top-left-radius: 10px;
+}
+
+.titlebar .titlebutton:backdrop {
background-image: none;
color: darker (@theme_bg_color);
icon-shadow: none;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]