From 33cd0381c07f9cb9a28eeb7d9f97f0e851ce5706 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Thu, 16 Apr 2015 16:04:25 +0200 Subject: Menta themes GTK3: use normal window control icons for csd applications --- desktop-themes/Menta/gtk-3.0/Makefile.am | 7 +- desktop-themes/Menta/gtk-3.0/gtk-main.css | 1 + .../Menta/gtk-3.0/gtk-widgets-borders.css | 11 -- desktop-themes/Menta/gtk-3.0/gtk-widgets.css | 17 ++- desktop-themes/Menta/gtk-3.0/window-controls.css | 159 +++++++++++++++++++++ .../Menta/gtk-3.0/window-controls/Makefile.am | 22 +++ .../window-controls/close_focused_normal.png | Bin 0 -> 971 bytes .../window-controls/close_focused_prelight.png | Bin 0 -> 994 bytes .../window-controls/close_focused_pressed.png | Bin 0 -> 943 bytes .../gtk-3.0/window-controls/close_unfocused.png | Bin 0 -> 591 bytes .../window-controls/close_unfocused_prelight.png | Bin 0 -> 606 bytes .../window-controls/maximize_focused_normal.png | Bin 0 -> 918 bytes .../window-controls/maximize_focused_prelight.png | Bin 0 -> 926 bytes .../window-controls/maximize_focused_pressed.png | Bin 0 -> 884 bytes .../gtk-3.0/window-controls/maximize_unfocused.png | Bin 0 -> 611 bytes .../maximize_unfocused_prelight.png | Bin 0 -> 603 bytes .../Menta/gtk-3.0/window-controls/menu.png | Bin 0 -> 314 bytes .../gtk-3.0/window-controls/menu_prelight.png | Bin 0 -> 272 bytes .../window-controls/minimize_focused_normal.png | Bin 0 -> 899 bytes .../window-controls/minimize_focused_prelight.png | Bin 0 -> 903 bytes .../window-controls/minimize_focused_pressed.png | Bin 0 -> 883 bytes .../gtk-3.0/window-controls/minimize_unfocused.png | Bin 0 -> 602 bytes .../minimize_unfocused_prelight.png | Bin 0 -> 593 bytes 23 files changed, 198 insertions(+), 19 deletions(-) create mode 100644 desktop-themes/Menta/gtk-3.0/window-controls.css create mode 100644 desktop-themes/Menta/gtk-3.0/window-controls/Makefile.am create mode 100644 desktop-themes/Menta/gtk-3.0/window-controls/close_focused_normal.png create mode 100644 desktop-themes/Menta/gtk-3.0/window-controls/close_focused_prelight.png create mode 100644 desktop-themes/Menta/gtk-3.0/window-controls/close_focused_pressed.png create mode 100644 desktop-themes/Menta/gtk-3.0/window-controls/close_unfocused.png create mode 100644 desktop-themes/Menta/gtk-3.0/window-controls/close_unfocused_prelight.png create mode 100644 desktop-themes/Menta/gtk-3.0/window-controls/maximize_focused_normal.png create mode 100644 desktop-themes/Menta/gtk-3.0/window-controls/maximize_focused_prelight.png create mode 100644 desktop-themes/Menta/gtk-3.0/window-controls/maximize_focused_pressed.png create mode 100644 desktop-themes/Menta/gtk-3.0/window-controls/maximize_unfocused.png create mode 100644 desktop-themes/Menta/gtk-3.0/window-controls/maximize_unfocused_prelight.png create mode 100644 desktop-themes/Menta/gtk-3.0/window-controls/menu.png create mode 100644 desktop-themes/Menta/gtk-3.0/window-controls/menu_prelight.png create mode 100644 desktop-themes/Menta/gtk-3.0/window-controls/minimize_focused_normal.png create mode 100644 desktop-themes/Menta/gtk-3.0/window-controls/minimize_focused_prelight.png create mode 100644 desktop-themes/Menta/gtk-3.0/window-controls/minimize_focused_pressed.png create mode 100644 desktop-themes/Menta/gtk-3.0/window-controls/minimize_unfocused.png create mode 100644 desktop-themes/Menta/gtk-3.0/window-controls/minimize_unfocused_prelight.png (limited to 'desktop-themes/Menta/gtk-3.0') diff --git a/desktop-themes/Menta/gtk-3.0/Makefile.am b/desktop-themes/Menta/gtk-3.0/Makefile.am index 37e0fc55..35bce905 100644 --- a/desktop-themes/Menta/gtk-3.0/Makefile.am +++ b/desktop-themes/Menta/gtk-3.0/Makefile.am @@ -1,4 +1,3 @@ - themedir = $(datadir)/themes/Menta/gtk-3.0 theme_DATA = \ @@ -14,10 +13,12 @@ theme_DATA = \ gtk-widgets-borders.css \ other-applications.css \ settings.ini \ - unity.css + unity.css \ + window-controls.css EXTRA_DIST = $(theme_DATA) SUBDIRS = \ assets \ - borders + borders \ + window-controls diff --git a/desktop-themes/Menta/gtk-3.0/gtk-main.css b/desktop-themes/Menta/gtk-3.0/gtk-main.css index 567fa79b..1a00f46a 100644 --- a/desktop-themes/Menta/gtk-3.0/gtk-main.css +++ b/desktop-themes/Menta/gtk-3.0/gtk-main.css @@ -225,3 +225,4 @@ @import url("mate-applications.css"); @import url("other-applications.css"); @import url("unity.css"); +@import url("window-controls.css"); diff --git a/desktop-themes/Menta/gtk-3.0/gtk-widgets-borders.css b/desktop-themes/Menta/gtk-3.0/gtk-widgets-borders.css index e94ceda5..3177d75f 100644 --- a/desktop-themes/Menta/gtk-3.0/gtk-widgets-borders.css +++ b/desktop-themes/Menta/gtk-3.0/gtk-widgets-borders.css @@ -81,17 +81,6 @@ GtkComboBox.combobox-entry .button:focus, border-color: transparent; } -/* generic button borders */ -.titlebar .titlebutton, -.titlebar .titlebutton:hover, -.titlebar .titlebutton:active { - border-image: url("borders/button.png") 3 4 4 4 / 3px 4px 4px 4px stretch; - border-radius: 4px; - border-width: 2px; - border-style: solid; - border-color: transparent; -} - .titlebar .button:hover, .titlebar .button:checked:checked, .titlebar .titlebutton:hover, diff --git a/desktop-themes/Menta/gtk-3.0/gtk-widgets.css b/desktop-themes/Menta/gtk-3.0/gtk-widgets.css index c1c1911e..d913466d 100644 --- a/desktop-themes/Menta/gtk-3.0/gtk-widgets.css +++ b/desktop-themes/Menta/gtk-3.0/gtk-widgets.css @@ -33,7 +33,7 @@ outline-offset: -3px; /* 2px */ outline-width: 0px; /* disable ugly focus-line */ outline-radius: 2px; - -gtk-icon-style: regular; /* disable symbolic icons */ +/* -gtk-icon-style: regular;*/ /* disable symbolic icons */ } /*************** @@ -867,6 +867,7 @@ GtkLevelBar.vertical { } GtkScrolledWindow.frame { + -gtk-icon-style: regular; border-style: solid; border-color: @borders; border-width: 1px; @@ -887,6 +888,7 @@ GtkScrolledWindow GtkViewport.frame { .button.menuitem.menubar, GtkColorButton.button, GtkComboBox.combobox-entry .button { + -gtk-icon-style: regular; padding: 4px; } @@ -2764,6 +2766,7 @@ GtkMessageDialog { ***********/ .sidebar, .sidebar .view { + -gtk-icon-style: regular; background-color: @sidebar_bg; } @@ -3889,6 +3892,7 @@ GtkTreeView.view.expander:checked { } GtkExpander { + -gtk-icon-style: regular; -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); } GtkExpander:dir(rtl) { @@ -4357,10 +4361,13 @@ GtkModelButton.button.flat:selected { border-image: none;*/ } -/* borders are in gtk-widget-assets */ -.titlebar .titlebutton:hover { -/* border: none; - border-image: none;*/ +.titlebar .titlebutton { + /* fake request for hardcoded icons, + to avoid usage of regular window-close button*/ + -gtk-icon-style: requested; + color: @wm_title; + padding: 4px; + border-image: none; } .titlebar .titlebutton:active { diff --git a/desktop-themes/Menta/gtk-3.0/window-controls.css b/desktop-themes/Menta/gtk-3.0/window-controls.css new file mode 100644 index 00000000..7ec98563 --- /dev/null +++ b/desktop-themes/Menta/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/minimize_focused_normal.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/minimize_focused_prelight.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/minimize_focused_pressed.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/minimize_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/maximize_focused_normal.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/maximize_focused_prelight.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/maximize_focused_pressed.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/maximize_unfocused.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/close_focused_normal.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/close_focused_prelight.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/close_focused_pressed.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/close_unfocused.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/menu.png'); +} + +.titlebar .button.menu-button.titlebutton:hover { + background-image: url('window-controls/menu_prelight.png'); +} + +.titlebar .button.menu-button.titlebutton:active { + background-image: url('window-controls/menu.png'); +} diff --git a/desktop-themes/Menta/gtk-3.0/window-controls/Makefile.am b/desktop-themes/Menta/gtk-3.0/window-controls/Makefile.am new file mode 100644 index 00000000..32b34aee --- /dev/null +++ b/desktop-themes/Menta/gtk-3.0/window-controls/Makefile.am @@ -0,0 +1,22 @@ +themedir = $(datadir)/themes/Menta/gtk-3.0/window-controls + +theme_DATA = \ + close_focused_normal.png \ + close_focused_prelight.png \ + close_focused_pressed.png \ + close_unfocused.png \ + close_unfocused_prelight.png \ + maximize_focused_normal.png \ + maximize_focused_prelight.png \ + maximize_focused_pressed.png \ + maximize_unfocused.png \ + maximize_unfocused_prelight.png \ + menu.png \ + menu_prelight.png \ + minimize_focused_normal.png \ + minimize_focused_prelight.png \ + minimize_focused_pressed.png \ + minimize_unfocused.png \ + minimize_unfocused_prelight.png + +EXTRA_DIST = $(theme_DATA) diff --git a/desktop-themes/Menta/gtk-3.0/window-controls/close_focused_normal.png b/desktop-themes/Menta/gtk-3.0/window-controls/close_focused_normal.png new file mode 100644 index 00000000..1e756072 Binary files /dev/null and b/desktop-themes/Menta/gtk-3.0/window-controls/close_focused_normal.png differ diff --git a/desktop-themes/Menta/gtk-3.0/window-controls/close_focused_prelight.png b/desktop-themes/Menta/gtk-3.0/window-controls/close_focused_prelight.png new file mode 100644 index 00000000..1f3a813f Binary files /dev/null and b/desktop-themes/Menta/gtk-3.0/window-controls/close_focused_prelight.png differ diff --git a/desktop-themes/Menta/gtk-3.0/window-controls/close_focused_pressed.png b/desktop-themes/Menta/gtk-3.0/window-controls/close_focused_pressed.png new file mode 100644 index 00000000..53173dc1 Binary files /dev/null and b/desktop-themes/Menta/gtk-3.0/window-controls/close_focused_pressed.png differ diff --git a/desktop-themes/Menta/gtk-3.0/window-controls/close_unfocused.png b/desktop-themes/Menta/gtk-3.0/window-controls/close_unfocused.png new file mode 100644 index 00000000..8f35ba3d Binary files /dev/null and b/desktop-themes/Menta/gtk-3.0/window-controls/close_unfocused.png differ diff --git a/desktop-themes/Menta/gtk-3.0/window-controls/close_unfocused_prelight.png b/desktop-themes/Menta/gtk-3.0/window-controls/close_unfocused_prelight.png new file mode 100644 index 00000000..e6afbd63 Binary files /dev/null and b/desktop-themes/Menta/gtk-3.0/window-controls/close_unfocused_prelight.png differ diff --git a/desktop-themes/Menta/gtk-3.0/window-controls/maximize_focused_normal.png b/desktop-themes/Menta/gtk-3.0/window-controls/maximize_focused_normal.png new file mode 100644 index 00000000..604db70a Binary files /dev/null and b/desktop-themes/Menta/gtk-3.0/window-controls/maximize_focused_normal.png differ diff --git a/desktop-themes/Menta/gtk-3.0/window-controls/maximize_focused_prelight.png b/desktop-themes/Menta/gtk-3.0/window-controls/maximize_focused_prelight.png new file mode 100644 index 00000000..25b8f06b Binary files /dev/null and b/desktop-themes/Menta/gtk-3.0/window-controls/maximize_focused_prelight.png differ diff --git a/desktop-themes/Menta/gtk-3.0/window-controls/maximize_focused_pressed.png b/desktop-themes/Menta/gtk-3.0/window-controls/maximize_focused_pressed.png new file mode 100644 index 00000000..892efce1 Binary files /dev/null and b/desktop-themes/Menta/gtk-3.0/window-controls/maximize_focused_pressed.png differ diff --git a/desktop-themes/Menta/gtk-3.0/window-controls/maximize_unfocused.png b/desktop-themes/Menta/gtk-3.0/window-controls/maximize_unfocused.png new file mode 100644 index 00000000..c734f5ea Binary files /dev/null and b/desktop-themes/Menta/gtk-3.0/window-controls/maximize_unfocused.png differ diff --git a/desktop-themes/Menta/gtk-3.0/window-controls/maximize_unfocused_prelight.png b/desktop-themes/Menta/gtk-3.0/window-controls/maximize_unfocused_prelight.png new file mode 100644 index 00000000..598af3f0 Binary files /dev/null and b/desktop-themes/Menta/gtk-3.0/window-controls/maximize_unfocused_prelight.png differ diff --git a/desktop-themes/Menta/gtk-3.0/window-controls/menu.png b/desktop-themes/Menta/gtk-3.0/window-controls/menu.png new file mode 100644 index 00000000..b35c0828 Binary files /dev/null and b/desktop-themes/Menta/gtk-3.0/window-controls/menu.png differ diff --git a/desktop-themes/Menta/gtk-3.0/window-controls/menu_prelight.png b/desktop-themes/Menta/gtk-3.0/window-controls/menu_prelight.png new file mode 100644 index 00000000..0713ddc7 Binary files /dev/null and b/desktop-themes/Menta/gtk-3.0/window-controls/menu_prelight.png differ diff --git a/desktop-themes/Menta/gtk-3.0/window-controls/minimize_focused_normal.png b/desktop-themes/Menta/gtk-3.0/window-controls/minimize_focused_normal.png new file mode 100644 index 00000000..dd8834d0 Binary files /dev/null and b/desktop-themes/Menta/gtk-3.0/window-controls/minimize_focused_normal.png differ diff --git a/desktop-themes/Menta/gtk-3.0/window-controls/minimize_focused_prelight.png b/desktop-themes/Menta/gtk-3.0/window-controls/minimize_focused_prelight.png new file mode 100644 index 00000000..c8b10e71 Binary files /dev/null and b/desktop-themes/Menta/gtk-3.0/window-controls/minimize_focused_prelight.png differ diff --git a/desktop-themes/Menta/gtk-3.0/window-controls/minimize_focused_pressed.png b/desktop-themes/Menta/gtk-3.0/window-controls/minimize_focused_pressed.png new file mode 100644 index 00000000..a5581579 Binary files /dev/null and b/desktop-themes/Menta/gtk-3.0/window-controls/minimize_focused_pressed.png differ diff --git a/desktop-themes/Menta/gtk-3.0/window-controls/minimize_unfocused.png b/desktop-themes/Menta/gtk-3.0/window-controls/minimize_unfocused.png new file mode 100644 index 00000000..701996c7 Binary files /dev/null and b/desktop-themes/Menta/gtk-3.0/window-controls/minimize_unfocused.png differ diff --git a/desktop-themes/Menta/gtk-3.0/window-controls/minimize_unfocused_prelight.png b/desktop-themes/Menta/gtk-3.0/window-controls/minimize_unfocused_prelight.png new file mode 100644 index 00000000..2f93af0a Binary files /dev/null and b/desktop-themes/Menta/gtk-3.0/window-controls/minimize_unfocused_prelight.png differ -- cgit v1.2.1