summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2015-04-18 19:59:05 +0200
committerraveit65 <[email protected]>2015-04-18 19:59:05 +0200
commit3208dc2a868d492bb7f9be537f0ac153b2d11f9a (patch)
tree1218baa52b72f50270e3f7916f3b9f54088517e9
parent83163432c2522abdfc54415e613561eacad05354 (diff)
downloadmate-themes-3208dc2a868d492bb7f9be537f0ac153b2d11f9a.tar.bz2
mate-themes-3208dc2a868d492bb7f9be537f0ac153b2d11f9a.tar.xz
GreenLaguna GTK3: use builtin icons for csd window controls
-rw-r--r--configure.ac1
-rw-r--r--desktop-themes/GreenLaguna/gtk-3.0/Makefile.am6
-rw-r--r--desktop-themes/GreenLaguna/gtk-3.0/gtk-widgets-assets.css3
-rw-r--r--desktop-themes/GreenLaguna/gtk-3.0/window-controls.css159
-rw-r--r--desktop-themes/GreenLaguna/gtk-3.0/window-controls/Makefile.am18
-rw-r--r--desktop-themes/GreenLaguna/gtk-3.0/window-controls/button-close-focus.pngbin0 -> 1106 bytes
-rw-r--r--desktop-themes/GreenLaguna/gtk-3.0/window-controls/button-max-focus.pngbin0 -> 1112 bytes
-rw-r--r--desktop-themes/GreenLaguna/gtk-3.0/window-controls/button-max-focus1.pngbin0 -> 1112 bytes
-rw-r--r--desktop-themes/GreenLaguna/gtk-3.0/window-controls/button-min-focus.pngbin0 -> 1110 bytes
-rw-r--r--desktop-themes/GreenLaguna/gtk-3.0/window-controls/menu-button-pressed.pngbin0 -> 1102 bytes
-rw-r--r--desktop-themes/GreenLaguna/gtk-3.0/window-controls/neutral.pngbin0 -> 1075 bytes
-rw-r--r--desktop-themes/GreenLaguna/gtk-3.0/window-controls/unabove-button-unfocus.pngbin0 -> 1110 bytes
-rw-r--r--desktop-themes/GreenLaguna/gtk-3.0/window-controls/unabove-button.pngbin0 -> 1110 bytes
-rw-r--r--desktop-themes/GreenLaguna/gtk-3.0/window-controls/unfocus.pngbin0 -> 1055 bytes
-rw-r--r--desktop-themes/GreenLaguna/gtk-3.0/window-controls/yellow.pngbin0 -> 1102 bytes
15 files changed, 182 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index b54e84c8..8575dc52 100644
--- a/configure.ac
+++ b/configure.ac
@@ -73,6 +73,7 @@ desktop-themes/GreenLaguna/gtk-2.0/Makefile
desktop-themes/GreenLaguna/gtk-2.0/Styles/Makefile
desktop-themes/GreenLaguna/gtk-3.0/Makefile
desktop-themes/GreenLaguna/gtk-3.0/assets/Makefile
+desktop-themes/GreenLaguna/gtk-3.0/window-controls/Makefile
desktop-themes/GreenLaguna/metacity-1/Makefile
desktop-themes/GreenLaguna/unity/Makefile
desktop-themes/Menta/Makefile
diff --git a/desktop-themes/GreenLaguna/gtk-3.0/Makefile.am b/desktop-themes/GreenLaguna/gtk-3.0/Makefile.am
index 7da3b579..04e94060 100644
--- a/desktop-themes/GreenLaguna/gtk-3.0/Makefile.am
+++ b/desktop-themes/GreenLaguna/gtk-3.0/Makefile.am
@@ -11,9 +11,11 @@ theme_DATA = \
mate-applications.css \
other-applications.css \
settings.ini \
- unity.css
+ unity.css \
+ window-controls.css
EXTRA_DIST = $(theme_DATA)
-SUBDIRS = assets
+SUBDIRS = assets \
+ window-controls
diff --git a/desktop-themes/GreenLaguna/gtk-3.0/gtk-widgets-assets.css b/desktop-themes/GreenLaguna/gtk-3.0/gtk-widgets-assets.css
index 59d826dc..c7b84a25 100644
--- a/desktop-themes/GreenLaguna/gtk-3.0/gtk-widgets-assets.css
+++ b/desktop-themes/GreenLaguna/gtk-3.0/gtk-widgets-assets.css
@@ -106,7 +106,6 @@ GtkScale.scale-has-marks-above.slider.vertical:insensitive {
.primary-toolbar.toolbar .button:hover,
.primary-toolbar .toolbar GtkComboBox .button:hover,
.primary-toolbar.toolbar GtkComboBox .button:hover,
-.titlebar .titlebutton:hover,
.header-bar.frame.titlebar .button.image-button.titlebutton:hover,
.button.text-button.titlebutton:hover,
.toolbar .button:active:hover,
@@ -119,7 +118,6 @@ GtkScale.scale-has-marks-above.slider.vertical:insensitive {
.primary-toolbar .button:hover:first-child,
.primary-toolbar .toolbar .button:hover:first-child,
.primary-toolbar.toolbar .button:hover:first-child,
-.titlebar .titlebutton:hover:first-child,
.header-bar.frame.titlebar .button.image-button.titlebutton:hover:first-child,
.button.text-button.titlebutton:hover:first-child,
.toolbar .button:active:hover:first-child,
@@ -132,7 +130,6 @@ GtkScale.scale-has-marks-above.slider.vertical:insensitive {
.primary-toolbar .button:hover:last-child,
.primary-toolbar .toolbar .button:hover:last-child,
.primary-toolbar.toolbar .button:hover:last-child,
-.titlebar .titlebutton:hover:last-child,
.header-bar.frame.titlebar .button.image-button.titlebutton:hover:last-child,
.button.text-button.titlebutton:hover:last-child,
.toolbar .button:active:hover:last-child,
diff --git a/desktop-themes/GreenLaguna/gtk-3.0/window-controls.css b/desktop-themes/GreenLaguna/gtk-3.0/window-controls.css
new file mode 100644
index 00000000..bc97295e
--- /dev/null
+++ b/desktop-themes/GreenLaguna/gtk-3.0/window-controls.css
@@ -0,0 +1,159 @@
+.titlebar .right .titlebutton:nth-last-child(3),
+.titlebar .right:dir(rtl) .titlebutton:nth-child(3),
+.titlebar .left .titlebutton:nth-child(3),
+.titlebar .left:dir(rtl) .titlebutton:nth-last-child(3),
+.titlebar .right .titlebutton:nth-last-child(2),
+.titlebar .right:dir(rtl) .titlebutton:nth-child(2),
+.titlebar .left .titlebutton:nth-child(2),
+.titlebar .left:dir(rtl) .titlebutton:nth-last-child(2),
+.titlebar .right .titlebutton:last-child,
+.titlebar .right:dir(rtl) .titlebutton:first-child,
+.titlebar .left .titlebutton:first-child,
+.titlebar .left:dir(rtl) .titlebutton:last-child {
+ color: transparent;
+ background-position: center;
+ background-repeat: no-repeat;
+ background-size: 19px 19px;
+}
+
+/* Set correct layout with
+ gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/DecorationLayout': <':minimize,maximize,close'>}" for
+ buttons on the right or
+ gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/DecorationLayout': <'close,maximize,minimize:'>}"
+ for buttons on the left */
+
+/* minimize */
+
+.titlebar .right .titlebutton:nth-last-child(3),
+.titlebar .right:dir(rtl) .titlebutton:nth-child(3),
+.titlebar .left .titlebutton:nth-child(3),
+.titlebar .left:dir(rtl) .titlebutton:nth-last-child(3) {
+ background-image: url('window-controls/neutral.png');
+}
+
+.titlebar .right .titlebutton:nth-last-child(3):hover,
+.titlebar .right:dir(rtl) .titlebutton:nth-child(3):hover,
+.titlebar .left .titlebutton:nth-child(3):hover,
+.titlebar .left:dir(rtl) .titlebutton:nth-last-child(3):hover {
+ background-image: url('window-controls/button-min-focus.png');
+}
+
+.titlebar .right .titlebutton:nth-last-child(3):active,
+.titlebar .right:dir(rtl) .titlebutton:nth-child(3):active,
+.titlebar .left .titlebutton:nth-child(3):active,
+.titlebar .left:dir(rtl) .titlebutton:nth-last-child(3):active,
+.titlebar .right .titlebutton:nth-last-child(3):checked,
+.titlebar .right:dir(rtl) .titlebutton:nth-child(3):checked,
+.titlebar .left .titlebutton:nth-child(3):checked,
+.titlebar .left:dir(rtl) .titlebutton:nth-last-child(3):checked {
+ background-image: url('window-controls/neutral.png');
+}
+
+.titlebar .right .titlebutton:nth-last-child(3):backdrop,
+.titlebar .right:dir(rtl) .titlebutton:nth-child(3):backdrop,
+.titlebar .left .titlebutton:nth-child(3):backdrop,
+.titlebar .left:dir(rtl) .titlebutton:nth-last-child(3):backdrop {
+ background-image: url('window-controls/unfocused.png');
+}
+/*
+.titlebar .right .titlebutton:nth-last-child(3):backdrop:hover,
+.titlebar .right:dir(rtl) .titlebutton:nth-child(3):backdrop:hover,
+.titlebar .left .titlebutton:nth-child(3):backdrop:hover,
+.titlebar .left:dir(rtl) .titlebutton:nth-last-child(3):backdrop:hover {
+ background-image: url('window-controls/minimize_unfocused_prelight.png');
+}
+*/
+/* maximize */
+.titlebar .right .titlebutton:nth-last-child(2),
+.titlebar .right:dir(rtl) .titlebutton:nth-child(2),
+.titlebar .left .titlebutton:nth-child(2),
+.titlebar .left:dir(rtl) .titlebutton:nth-last-child(2) {
+ background-image: url('window-controls/neutral.png');
+}
+
+.titlebar .right .titlebutton:nth-last-child(2):hover,
+.titlebar .right:dir(rtl) .titlebutton:nth-child(2):hover,
+.titlebar .left .titlebutton:nth-child(2):hover,
+.titlebar .left:dir(rtl) .titlebutton:nth-last-child(2):hover {
+ background-image: url('window-controls/button-max-focus.png');
+}
+
+.titlebar .right .titlebutton:nth-last-child(2):active,
+.titlebar .right:dir(rtl) .titlebutton:nth-child(2):active,
+.titlebar .left .titlebutton:nth-child(2):active,
+.titlebar .left:dir(rtl) .titlebutton:nth-last-child(2):active,
+.titlebar .right .titlebutton:nth-last-child(2):checked,
+.titlebar .right:dir(rtl) .titlebutton:nth-child(2):checked,
+.titlebar .left .titlebutton:nth-child(2):checked,
+.titlebar .left:dir(rtl) .titlebutton:nth-last-child(2):checked {
+ background-image: url('window-controls/neutral.png');
+}
+
+.titlebar .right .titlebutton:nth-last-child(2):backdrop,
+.titlebar .right:dir(rtl) .titlebutton:nth-child(2):backdrop,
+.titlebar .left .titlebutton:nth-child(2):backdrop,
+.titlebar .left:dir(rtl) .titlebutton:nth-last-child(2):backdrop {
+ background-image: url('window-controls/unfocus.png');
+}
+/*
+.titlebar .right .titlebutton:nth-last-child(2):backdrop:hover,
+.titlebar .right:dir(rtl) .titlebutton:nth-child(2):backdrop:hover,
+.titlebar .left .titlebutton:nth-child(2):backdrop:hover,
+.titlebar .left:dir(rtl) .titlebutton:nth-last-child(2):backdrop:hover {
+ background-image: url('window-controls/maximize_unfocused_prelight.png');
+}
+*/
+/* close */
+.titlebar .right .titlebutton:last-child,
+.titlebar .right:dir(rtl) .titlebutton:first-child,
+.titlebar .left .titlebutton:first-child,
+.titlebar .left:dir(rtl) .titlebutton:last-child {
+ background-image: url('window-controls/neutral.png');
+ /*padding: 2px 6px 3px 3px;*/ /* FIXME: Uncomment this shit when using the Faenza icon theme and maybe some other icon themes */
+}
+
+.titlebar .right .titlebutton:last-child:hover,
+.titlebar .right:dir(rtl) .titlebutton:first-child:hover,
+.titlebar .left .titlebutton:first-child:hover,
+.titlebar .left:dir(rtl) .titlebutton:last-child:hover {
+ background-image: url('window-controls/button-close-focus.png');
+}
+
+.titlebar .right .titlebutton:last-child:active,
+.titlebar .right:dir(rtl) .titlebutton:first-child:active,
+.titlebar .left .titlebutton:first-child:active,
+.titlebar .left:dir(rtl) .titlebutton:last-child:active,
+.titlebar .right .titlebutton:last-child:checked,
+.titlebar .right:dir(rtl) .titlebutton:first-child:checked,
+.titlebar .left .titlebutton:first-child:checked,
+.titlebar .left:dir(rtl) .titlebutton:last-child:checked {
+ background-image: url('window-controls/neutral.png');
+}
+
+.titlebar .right .titlebutton:last-child:backdrop,
+.titlebar .right:dir(rtl) .titlebutton:first-child:backdrop,
+.titlebar .left .titlebutton:first-child:backdrop,
+.titlebar .left:dir(rtl) .titlebutton:last-child:backdrop {
+ background-image: url('window-controls/unfocus.png');
+}
+/*
+.titlebar .right .titlebutton:last-child:backdrop:hover,
+.titlebar .right:dir(rtl) .titlebutton:first-child:backdrop:hover,
+.titlebar .left .titlebutton:first-child:backdrop:hover,
+.titlebar .left:dir(rtl) .titlebutton:last-child:backdrop:hover {
+ background-image: url('window-controls/close_unfocused_prelight.png');
+}
+*/
+/* Menu button when fallback kicks in (XFCE, Cinnamon etc.) */
+
+.titlebar .button.menu-button.titlebutton {
+ background-image: url('window-controls/neutral.png');
+}
+
+.titlebar .button.menu-button.titlebutton:hover {
+ background-image: url('window-controls/yellow.png');
+}
+
+.titlebar .button.menu-button.titlebutton:active {
+ background-image: url('window-controls/menu-button-pressed.png');
+}
diff --git a/desktop-themes/GreenLaguna/gtk-3.0/window-controls/Makefile.am b/desktop-themes/GreenLaguna/gtk-3.0/window-controls/Makefile.am
new file mode 100644
index 00000000..0d3aa937
--- /dev/null
+++ b/desktop-themes/GreenLaguna/gtk-3.0/window-controls/Makefile.am
@@ -0,0 +1,18 @@
+THEME_NAME=GreenLaguna
+
+themedir = $(datadir)/themes/$(THEME_NAME)/gtk-3.0/window-controls
+
+theme_DATA = \
+ button-close-focus.png
+ button-max-focus1.png
+ button-max-focus.png
+ button-min-focus.png
+ menu-button-pressed.png
+ neutral.png
+ unabove-button.png
+ unabove-button-unfocus.png
+ unfocus.png
+ yellow.png
+
+EXTRA_DIST = $(theme_DATA)
+
diff --git a/desktop-themes/GreenLaguna/gtk-3.0/window-controls/button-close-focus.png b/desktop-themes/GreenLaguna/gtk-3.0/window-controls/button-close-focus.png
new file mode 100644
index 00000000..3297f854
--- /dev/null
+++ b/desktop-themes/GreenLaguna/gtk-3.0/window-controls/button-close-focus.png
Binary files differ
diff --git a/desktop-themes/GreenLaguna/gtk-3.0/window-controls/button-max-focus.png b/desktop-themes/GreenLaguna/gtk-3.0/window-controls/button-max-focus.png
new file mode 100644
index 00000000..6b93868c
--- /dev/null
+++ b/desktop-themes/GreenLaguna/gtk-3.0/window-controls/button-max-focus.png
Binary files differ
diff --git a/desktop-themes/GreenLaguna/gtk-3.0/window-controls/button-max-focus1.png b/desktop-themes/GreenLaguna/gtk-3.0/window-controls/button-max-focus1.png
new file mode 100644
index 00000000..6b93868c
--- /dev/null
+++ b/desktop-themes/GreenLaguna/gtk-3.0/window-controls/button-max-focus1.png
Binary files differ
diff --git a/desktop-themes/GreenLaguna/gtk-3.0/window-controls/button-min-focus.png b/desktop-themes/GreenLaguna/gtk-3.0/window-controls/button-min-focus.png
new file mode 100644
index 00000000..b44cde4c
--- /dev/null
+++ b/desktop-themes/GreenLaguna/gtk-3.0/window-controls/button-min-focus.png
Binary files differ
diff --git a/desktop-themes/GreenLaguna/gtk-3.0/window-controls/menu-button-pressed.png b/desktop-themes/GreenLaguna/gtk-3.0/window-controls/menu-button-pressed.png
new file mode 100644
index 00000000..b15b508a
--- /dev/null
+++ b/desktop-themes/GreenLaguna/gtk-3.0/window-controls/menu-button-pressed.png
Binary files differ
diff --git a/desktop-themes/GreenLaguna/gtk-3.0/window-controls/neutral.png b/desktop-themes/GreenLaguna/gtk-3.0/window-controls/neutral.png
new file mode 100644
index 00000000..8b224eca
--- /dev/null
+++ b/desktop-themes/GreenLaguna/gtk-3.0/window-controls/neutral.png
Binary files differ
diff --git a/desktop-themes/GreenLaguna/gtk-3.0/window-controls/unabove-button-unfocus.png b/desktop-themes/GreenLaguna/gtk-3.0/window-controls/unabove-button-unfocus.png
new file mode 100644
index 00000000..b44cde4c
--- /dev/null
+++ b/desktop-themes/GreenLaguna/gtk-3.0/window-controls/unabove-button-unfocus.png
Binary files differ
diff --git a/desktop-themes/GreenLaguna/gtk-3.0/window-controls/unabove-button.png b/desktop-themes/GreenLaguna/gtk-3.0/window-controls/unabove-button.png
new file mode 100644
index 00000000..b44cde4c
--- /dev/null
+++ b/desktop-themes/GreenLaguna/gtk-3.0/window-controls/unabove-button.png
Binary files differ
diff --git a/desktop-themes/GreenLaguna/gtk-3.0/window-controls/unfocus.png b/desktop-themes/GreenLaguna/gtk-3.0/window-controls/unfocus.png
new file mode 100644
index 00000000..247739d7
--- /dev/null
+++ b/desktop-themes/GreenLaguna/gtk-3.0/window-controls/unfocus.png
Binary files differ
diff --git a/desktop-themes/GreenLaguna/gtk-3.0/window-controls/yellow.png b/desktop-themes/GreenLaguna/gtk-3.0/window-controls/yellow.png
new file mode 100644
index 00000000..b15b508a
--- /dev/null
+++ b/desktop-themes/GreenLaguna/gtk-3.0/window-controls/yellow.png
Binary files differ