[gtk+] win32 theme: Add rudimentary titlebar support



commit f3d67cc2ac3bda68f0fe6d6a163e54b633bc01f2
Author: Benjamin Otte <otte gnome org>
Date:   Fri Feb 19 09:02:21 2016 +0100

    win32 theme: Add rudimentary titlebar support

 gtk/theme/win32/gtk.css |   81 +++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 81 insertions(+), 0 deletions(-)
---
diff --git a/gtk/theme/win32/gtk.css b/gtk/theme/win32/gtk.css
index 60ca632..e4d3ed4 100644
--- a/gtk/theme/win32/gtk.css
+++ b/gtk/theme/win32/gtk.css
@@ -340,3 +340,84 @@ row:selected:focus {
 row:selected:hover {
   background-image: -gtk-win32-theme-part(listview, 6, 12);
 }
+
+/* Titlebar */
+
+window .titlebar {
+    background: -gtk-win32-theme-part(window, 1, 1);
+}
+
+window:backdrop .titlebar {
+    background: -gtk-win32-theme-part(window, 1, 2);
+}
+
+window .titlebar:disabled {
+    background: -gtk-win32-theme-part(window, 1, 3);
+}
+
+.titlebar button.close {
+    background-image: -gtk-win32-theme-part(window, 18, 1);
+    color: transparent;
+}
+
+.titlebar button.close:hover {
+    background-image: -gtk-win32-theme-part(window, 18, 2);
+}
+
+.titlebar button.close:active {
+    background-image: -gtk-win32-theme-part(window, 18, 3);
+}
+
+.titlebar button.close:disabled {
+    background-image: -gtk-win32-theme-part(window, 18, 4);
+}
+
+.titlebar button.minimize {
+    background-image: -gtk-win32-theme-part(window, 15, 1);
+    color: transparent;
+}
+
+.titlebar button.minimize:hover {
+    background-image: -gtk-win32-theme-part(window, 15, 2);
+}
+
+.titlebar button.minimize:active {
+    background-image: -gtk-win32-theme-part(window, 15, 3);
+}
+
+.titlebar button.minimize:disabled {
+    background-image: -gtk-win32-theme-part(window, 15, 4);
+}
+
+.titlebar button.maximize {
+    background-image: -gtk-win32-theme-part(window, 17, 1);
+    color: transparent;
+}
+
+.titlebar button.maximize:hover {
+    background-image: -gtk-win32-theme-part(window, 17, 2);
+}
+
+.titlebar button.maximize:active {
+    background-image: -gtk-win32-theme-part(window, 17, 3);
+}
+
+.titlebar button.maximize:disabled {
+    background-image: -gtk-win32-theme-part(window, 17, 4);
+}
+
+.maximized .titlebar button.maximize {
+    background-image: -gtk-win32-theme-part(window, 21, 1);
+}
+
+.maximized .titlebar button.maximize:hover {
+    background-image: -gtk-win32-theme-part(window, 21, 2);
+}
+
+.maximized .titlebar button.maximize:active {
+    background-image: -gtk-win32-theme-part(window, 21, 3);
+}
+
+.maximized .titlebar button.maximize:disabled {
+    background-image: -gtk-win32-theme-part(window, 21, 4);
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]