From f43f5bb4574fda6bf3f7c895add2dc9dea1d71ae Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sun, 19 Apr 2015 13:55:25 +0200 Subject: Menta themes GTK+-3.16: adjustments for window-frame (csd apps) --> - enable windows shadows for compositor - add stylying for new widget window-frame.solid-csd (non compositor) --- desktop-themes/Menta/gtk-3.0/gtk-main.css | 6 +- desktop-themes/Menta/gtk-3.0/gtk-widgets.css | 38 +++++----- .../Menta/metacity-1/metacity-theme-1.xml | 80 +++++++++++----------- 3 files changed, 66 insertions(+), 58 deletions(-) (limited to 'desktop-themes/Menta') diff --git a/desktop-themes/Menta/gtk-3.0/gtk-main.css b/desktop-themes/Menta/gtk-3.0/gtk-main.css index 212d519b..d7490bb8 100644 --- a/desktop-themes/Menta/gtk-3.0/gtk-main.css +++ b/desktop-themes/Menta/gtk-3.0/gtk-main.css @@ -207,7 +207,8 @@ @define-color wm_bg_a shade (@theme_bg_color, 1.1); @define-color wm_bg_b @theme_bg_color; -@define-color wm_shadow alpha(black, 0.18); +@define-color wm_shadow alpha(black, 0.5); +@define-color wm_border alpha(black,0.18); @define-color wm_button_bg_a shade (@theme_bg_color, 1.0); @define-color wm_button_bg_b shade (@theme_bg_color, 0.85); @@ -223,6 +224,9 @@ @define-color wm_button_bg_active_b shade (@theme_bg_color, 0.9); @define-color wm_button_bg_active_c shade (@theme_bg_color, 0.9); +/* csd border */ +@define-color wm_csd_solid_border_color shade (#3c3c3c, 1.2); + @import url("gtk-main-common.css"); @import url("gtk-widgets-backgrounds.css"); @import url("gtk-widgets-borders.css"); diff --git a/desktop-themes/Menta/gtk-3.0/gtk-widgets.css b/desktop-themes/Menta/gtk-3.0/gtk-widgets.css index 2f11e4c6..c8304336 100644 --- a/desktop-themes/Menta/gtk-3.0/gtk-widgets.css +++ b/desktop-themes/Menta/gtk-3.0/gtk-widgets.css @@ -2651,10 +2651,8 @@ GtkCheckButton.text-button, GtkRadioButton.text-button { border-width: 0px 0px 0px 0px; border-style: solid; border-color: shade(@borders, 0.90); - box-shadow: inset 0 -1px shade(@wm_bg_b, 0.95); background-color: @theme_bg_color; - padding: 6px; } @@ -4504,7 +4502,9 @@ GtkModelButton.button.flat:selected { *******/ .titlebar { text-shadow: 0 1px @wm_title_shadow; - background-image: none; + background-image: linear-gradient(to bottom, + @wm_bg_a, + @wm_bg_b); border-radius: 6px 6px 0px 0px; box-shadow: inset 0 -1px alpha(@theme_base_color, 0.4); border-color: @borders; @@ -4561,20 +4561,16 @@ GtkModelButton.button.flat:selected { icon-shadow: none; } -/**************************************************************************************** -* Give and take related to recent gtk3.3.14 development, * -* to achieve full size of the icon menu of some of the applications whose notification * -* icons appear in the system tray, the "shadow" is disabled. * -* same affect in mate-panel main menu, csd apps, header-bars apps * -* if compositor switch to disable !!!!! * -*****************************************************************************************/ - .window-frame { - border-radius: 0px 0px 0px 0px; - border-width: 1px; - box-shadow: 0 0 0 @wm_shadow; + border-radius: 6px 6px 0px 0px; + border-width: 0px; + box-shadow: 0 0 0 1px @wm_border, 0 2px 8px 3px @wm_shadow; /* this is used for the resize cursor area */ - margin: 2px; + margin: 10px; +} + +.window-frame:backdrop { + box-shadow: 0 0 0 1px shade(@wm_border,1.1), 0 2px 5px 1px @wm_shadow; } .window-frame.tiled { @@ -4582,8 +4578,16 @@ GtkModelButton.button.flat:selected { background-color: @theme_bg_color; } -.window-frame:backdrop { - box-shadow: 0 0 0 @wm_shadow; +.window-frame.ssd { + box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.23); +} + +.window-frame.solid-csd { + border-radius: 0; + margin: 2px; + background-color: @wm_bg_a; + border: solid 1px @wm_csd_solid_border_color; + box-shadow: none; } .window-frame.csd.popup { diff --git a/desktop-themes/Menta/metacity-1/metacity-theme-1.xml b/desktop-themes/Menta/metacity-1/metacity-theme-1.xml index 2c0af0e2..1ea24e11 100644 --- a/desktop-themes/Menta/metacity-1/metacity-theme-1.xml +++ b/desktop-themes/Menta/metacity-1/metacity-theme-1.xml @@ -11,55 +11,55 @@ - - - - - - - - - + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + -- cgit v1.2.1