[gnome-themes-standard] Theming support for popover menus
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] Theming support for popover menus
- Date: Fri, 7 Feb 2014 20:12:05 +0000 (UTC)
commit 78a99228c3a39cdbf5482baf663f33bdeba675f8
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Feb 5 01:15:31 2014 -0500
Theming support for popover menus
This makes popovers that are populated from menu models
look nice and menu-like.
https://bugzilla.gnome.org/show_bug.cgi?id=723014
themes/Adwaita/gtk-3.0/gtk-widgets-assets.css | 24 +++++++++++++
themes/Adwaita/gtk-3.0/gtk-widgets.css | 45 +++++++++++++++++++++++++
2 files changed, 69 insertions(+), 0 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets-assets.css b/themes/Adwaita/gtk-3.0/gtk-widgets-assets.css
index 3397099..57523bd 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets-assets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets-assets.css
@@ -47,6 +47,8 @@
*************************/
/* draw regular check and radio items using our SVG assets */
+GtkModelButton.button.check,
+GtkModelButton.button.check:hover,
.check,
.view.cell.check {
background-image: -gtk-scaled(url("assets/checkbox-unchecked.png"),url("assets/checkbox-unchecked 2
png"));
@@ -54,6 +56,7 @@
background-position: center;
}
+GtkModelButton.button.check:insensitive,
.check:insensitive {
background-image:
-gtk-scaled(url("assets/checkbox-unchecked-insensitive.png"),url("assets/checkbox-unchecked-insensitive 2
png"));
}
@@ -62,32 +65,41 @@
background-color: transparent;
}
+GtkModelButton.button.check:backdrop,
+GtkModelButton.button.check:hover:backdrop,
.check:backdrop,
.view.cell.check:backdrop,
.check row:selected:backdrop {
background-image:
-gtk-scaled(url("assets/checkbox-unchecked-backdrop.png"),url("assets/checkbox-unchecked-backdrop 2 png"));
}
+GtkModelButton.button.check:insensitive:backdrop,
.check:insensitive:backdrop,
.check row:selected:insensitive:backdrop {
background-image:
-gtk-scaled(url("assets/checkbox-unchecked-backdrop-insensitive.png"),url("assets/checkbox-unchecked-backdrop-insensitive
2 png"));
}
+GtkModelButton.button.check:active,
+GtkModelButton.button.check:active:hover,
.check:active,
.view.cell.check:active {
background-image: -gtk-scaled(url("assets/checkbox-checked.png"),url("assets/checkbox-checked 2 png"));
}
+GtkModelButton.button.check:active:insensitive,
.check:active:insensitive {
background-image:
-gtk-scaled(url("assets/checkbox-checked-insensitive.png"),url("assets/checkbox-checked-insensitive 2 png"));
}
+GtkModelButton.button.check:active:backdrop,
+GtkModelButton.button.check:active:hover:backdrop,
.check:active:backdrop,
.view.cell:active:backdrop,
.check row:selected:active:backdrop {
background-image:
-gtk-scaled(url("assets/checkbox-checked-backdrop.png"),url("assets/checkbox-checked-backdrop 2 png"));
}
+GtkModelButton.button.check:active:insensitive:backdrop,
.check:active:insensitive:backdrop,
.check row:selected:active:insensitive:backdrop {
background-image:
-gtk-scaled(url("assets/checkbox-checked-backdrop-insensitive.png"),url("assets/checkbox-checked-backdrop-insensitive
2 png"));
@@ -111,6 +123,8 @@
background-image:
-gtk-scaled(url("assets/checkbox-mixed-backdrop-insensitive.png"),url("assets/checkbox-mixed-backdrop-insensitive
2 png"));
}
+GtkModelButton.button.radio,
+GtkModelButton.button.radio:hover,
.radio,
.view.cell.radio {
background-image: -gtk-scaled(url("assets/radio-unchecked.png"),url("assets/radio-unchecked 2 png"));
@@ -118,6 +132,7 @@
background-position: center;
}
+GtkModelButton.button.radio:insensitive,
.radio:insensitive {
background-image:
-gtk-scaled(url("assets/radio-unchecked-insensitive.png"),url("assets/radio-unchecked-insensitive 2 png"));
}
@@ -126,32 +141,41 @@
background-color: transparent;
}
+GtkModelButton.button.radio:backdrop,
+GtkModelButton.button.radio:hover:backdrop,
.radio:backdrop,
.view.cell.radio:backdrop,
.radio row:selected:backdrop {
background-image:
-gtk-scaled(url("assets/radio-unchecked-backdrop.png"),url("assets/radio-unchecked-backdrop 2 png"));
}
+GtkModelButton.button.radio:insensitive:backdrop,
.radio:insensitive:backdrop,
.radio row:selected:insensitive:backdrop {
background-image:
-gtk-scaled(url("assets/radio-unchecked-backdrop-insensitive.png"),url("assets/radio-unchecked-backdrop-insensitive
2 png"));
}
+GtkModelButton.button.radio:active,
+GtkModelButton.button.radio:active:hover,
.radio:active,
.view.cell.radio:active {
background-image: -gtk-scaled(url("assets/radio-checked.png"),url("assets/radio-checked 2 png"));
}
+GtkModelButton.button.radio:active:insensitive,
.radio:active:insensitive {
background-image:
-gtk-scaled(url("assets/radio-checked-insensitive.png"),url("assets/radio-checked-insensitive 2 png"));
}
+GtkModelButton.button.radio:active:backdrop,
+GtkModelButton.button.radio:active:hover:backdrop,
.radio:active:backdrop,
.view.cell.radio:active:backdrop,
.radio row:selected:active:backdrop {
background-image:
-gtk-scaled(url("assets/radio-checked-backdrop.png"),url("assets/radio-checked-backdrop 2 png"));
}
+GtkModelButton.button.radio:active:insensitive:backdrop,
.radio:active:insensitive:backdrop,
.radio row:selected:active:insensitive:backdrop {
background-image:
-gtk-scaled(url("assets/radio-checked-backdrop-insensitive.png"),url("assets/radio-checked-backdrop-insensitive
2 png"));
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index 10a3558..f7427b7 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -4103,6 +4103,51 @@ GtkPopover.osd > .toolbar .button {
background-color: transparent;
}
+GtkModelButton.button:active,
+GtkModelButton.button:insensitive,
+GtkModelButton.button:active:insensitive,
+GtkModelButton.button {
+ background-color: transparent;
+ background-image: none;
+ border-color: transparent;
+ border-image: none;
+ border-style: none;
+ box-shadow: none;
+}
+
+GtkModelButton.button:backdrop,
+GtkModelButton.button:hover:backdrop,
+GtkModelButton.button:insensitive:backdrop,
+GtkModelButton.button:active:insensitive:backdrop,
+GtkModelButton.button:active:backdrop,
+GtkModelButton.button:active:hover:backdrop,
+GtkModelButton.button:active:selected:backdrop {
+ text-shadow: none;
+ icon-shadow: none;
+ color: @theme_unfocused_fg_color;
+ background-color: transparent;
+ background-image: none;
+ border-color: transparent;
+ border-image: none;
+ border-style: none;
+ box-shadow: none;
+}
+
+GtkPopover .separator {
+ font-size: 90%;
+ font-weight: bold;
+ color: @borders;
+ background-color: transparent;
+}
+
+GtkModelButton.button:active:hover,
+GtkModelButton.button:hover,
+GtkModelButton.button:selected {
+ background-image: none;
+ background-color: @unfocused_borders;
+ text-shadow: 0 1px @button_text_shadow;
+}
+
/*******
* CSD *
*******/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]