diff options
author | raveit65 <[email protected]> | 2015-04-16 16:09:24 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2015-04-16 16:09:24 +0200 |
commit | 3d877aa3f2f6b22a13b26872c18e6f8db4982b48 (patch) | |
tree | 5e5eec5be639e1027683fc763ec2ad94561f1e50 /desktop-themes/Menta | |
parent | efbefdb4e1b3bb95e03110e8f0a7ec7364a500d4 (diff) | |
download | mate-themes-3d877aa3f2f6b22a13b26872c18e6f8db4982b48.tar.bz2 mate-themes-3d877aa3f2f6b22a13b26872c18e6f8db4982b48.tar.xz |
Menta themes GTK3: use normal window control icons for csd applications
Diffstat (limited to 'desktop-themes/Menta')
23 files changed, 198 insertions, 19 deletions
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 ad15d35c..fcbfe780 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 */ } /*************** @@ -862,6 +862,7 @@ GtkLevelBar.vertical { } GtkScrolledWindow.frame { + -gtk-icon-style: regular; border-style: solid; border-color: @borders; border-width: 1px; @@ -882,6 +883,7 @@ GtkScrolledWindow GtkViewport.frame { .button.menuitem.menubar, GtkColorButton.button, GtkComboBox.combobox-entry .button { + -gtk-icon-style: regular; padding: 4px; } @@ -2760,6 +2762,7 @@ GtkMessageDialog { .sidebar, .sidebar .view, .sidebar GtkScrolledWindow { + -gtk-icon-style: regular; background-color: @sidebar_bg; } @@ -3885,6 +3888,7 @@ GtkTreeView.view.expander:checked { } GtkExpander { + -gtk-icon-style: regular; -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); } GtkExpander:dir(rtl) { @@ -4353,10 +4357,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 Binary files differnew file mode 100644 index 00000000..1e756072 --- /dev/null +++ b/desktop-themes/Menta/gtk-3.0/window-controls/close_focused_normal.png 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 Binary files differnew file mode 100644 index 00000000..1f3a813f --- /dev/null +++ b/desktop-themes/Menta/gtk-3.0/window-controls/close_focused_prelight.png 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 Binary files differnew file mode 100644 index 00000000..53173dc1 --- /dev/null +++ b/desktop-themes/Menta/gtk-3.0/window-controls/close_focused_pressed.png 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 Binary files differnew file mode 100644 index 00000000..8f35ba3d --- /dev/null +++ b/desktop-themes/Menta/gtk-3.0/window-controls/close_unfocused.png 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 Binary files differnew file mode 100644 index 00000000..e6afbd63 --- /dev/null +++ b/desktop-themes/Menta/gtk-3.0/window-controls/close_unfocused_prelight.png 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 Binary files differnew file mode 100644 index 00000000..604db70a --- /dev/null +++ b/desktop-themes/Menta/gtk-3.0/window-controls/maximize_focused_normal.png 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 Binary files differnew file mode 100644 index 00000000..25b8f06b --- /dev/null +++ b/desktop-themes/Menta/gtk-3.0/window-controls/maximize_focused_prelight.png 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 Binary files differnew file mode 100644 index 00000000..892efce1 --- /dev/null +++ b/desktop-themes/Menta/gtk-3.0/window-controls/maximize_focused_pressed.png 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 Binary files differnew file mode 100644 index 00000000..c734f5ea --- /dev/null +++ b/desktop-themes/Menta/gtk-3.0/window-controls/maximize_unfocused.png 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 Binary files differnew file mode 100644 index 00000000..598af3f0 --- /dev/null +++ b/desktop-themes/Menta/gtk-3.0/window-controls/maximize_unfocused_prelight.png diff --git a/desktop-themes/Menta/gtk-3.0/window-controls/menu.png b/desktop-themes/Menta/gtk-3.0/window-controls/menu.png Binary files differnew file mode 100644 index 00000000..b35c0828 --- /dev/null +++ b/desktop-themes/Menta/gtk-3.0/window-controls/menu.png 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 Binary files differnew file mode 100644 index 00000000..0713ddc7 --- /dev/null +++ b/desktop-themes/Menta/gtk-3.0/window-controls/menu_prelight.png 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 Binary files differnew file mode 100644 index 00000000..dd8834d0 --- /dev/null +++ b/desktop-themes/Menta/gtk-3.0/window-controls/minimize_focused_normal.png 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 Binary files differnew file mode 100644 index 00000000..c8b10e71 --- /dev/null +++ b/desktop-themes/Menta/gtk-3.0/window-controls/minimize_focused_prelight.png 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 Binary files differnew file mode 100644 index 00000000..a5581579 --- /dev/null +++ b/desktop-themes/Menta/gtk-3.0/window-controls/minimize_focused_pressed.png 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 Binary files differnew file mode 100644 index 00000000..701996c7 --- /dev/null +++ b/desktop-themes/Menta/gtk-3.0/window-controls/minimize_unfocused.png 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 Binary files differnew file mode 100644 index 00000000..2f93af0a --- /dev/null +++ b/desktop-themes/Menta/gtk-3.0/window-controls/minimize_unfocused_prelight.png |