From 6e3e0dcd739bcf7ef549cecc0aa5061c794e14bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?UTF-8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Mon, 7 Apr 2014 04:39:40 +0000 Subject: [PATCH] W32: Add a basic set of CSD styles https://bugzilla.gnome.org/show_bug.cgi?id=727316 --- gtk/resources/theme/gtk-win32-base.css | 83 ++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/gtk/resources/theme/gtk-win32-base.css b/gtk/resources/theme/gtk-win32-base.css index 28eb5e2502..82ce94a5a2 100644 --- a/gtk/resources/theme/gtk-win32-base.css +++ b/gtk/resources/theme/gtk-win32-base.css @@ -1358,3 +1358,86 @@ GtkPopover > .toolbar { color: alpha(currentColor, 0.55); text-shadow: none; } + + + + + + + +/* Client side decorations */ +.titlebar { + text-shadow: 1px 1px lighter (@bg_color); + background-image: linear-gradient(to bottom, white, @bg_color); + border-radius: 7px 7px 0px 0px; +} + +.maximized .titlebar, +.tiled .titlebar { + border-radius: 0; +} + +.titlebar.default-decoration { + border: none; + box-shadow: none; +} + +.titlebar .title { + font: Bold 10; +} + +.titlebar .subtitle { + font: 9; +} + +.titlebar:backdrop { + text-shadow: none; + background-image: none; + background-color: @bg_color; +} + +.titlebar .titlebutton { + icon-shadow: 0px 1px #ffff; + color: shade(@fg_color, 1.8); + background: none; + + border-radius: 3px; + border-width: 1px 1px 2px 1px; + border-color: transparent; + border-style: solid; +} + +.titlebar .titlebutton:hover { + background-image: -gtk-win32-theme-part(button, 1 2); +} +.titlebar .titlebutton:active { + background-image: -gtk-win32-theme-part(button, 1 3); + color: @selected_fg_color; + icon-shadow: none; +} + +.titlebar .titlebutton:backdrop { + background-image: none; + color: #a7aba7; + border-image: none; + icon-shadow: none; +} + +.window-frame { + border-color: darker (@bg_color); + border-radius: 7px 7px 0 0; + border-width: 1px; + border-style: solid; + + box-shadow: 0 2px 7px 3px alpha(black, 0.6); + margin: 10px; +} + +.window-frame.tiled { + border-radius: 0; + background-color: @bg_color; +} + +.window-frame:backdrop { + box-shadow: 0 2px 5px 1px alpha(black, 0.4); +}