From e803aa51c6cf63ca9c3a76e6a30aba3015c4e335 Mon Sep 17 00:00:00 2001 From: Satyajit Sahoo Date: Mon, 18 Mar 2013 16:35:52 +0530 Subject: [PATCH] Fixes for Granite --- gtk-3.0/apps/granite-widgets.css | 33 ++++++++++++++++++++++---------- gtk-3.0/gtk-widgets.css | 5 +++++ 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/gtk-3.0/apps/granite-widgets.css b/gtk-3.0/apps/granite-widgets.css index a00a44b..9cabe54 100644 --- a/gtk-3.0/apps/granite-widgets.css +++ b/gtk-3.0/apps/granite-widgets.css @@ -60,8 +60,8 @@ border-width: 1px; border-style: solid; border-color: shade(@theme_bg_color, 0.8); - border-radius: 5px; - background-color:shade(@theme_bg_color, 1.08); + border-radius: 2px; + background-color:@theme_bg_color; color: @theme_fg_color; } @@ -84,20 +84,20 @@ .content-view .button { border-style: solid; border-radius: 2px; - background-color: alpha(@theme_bg_color, 0.0); + background-color: shade(@theme_bg_color, 1.08); background-image: none; color: @theme_fg_color; } .content-view .button:active, .content-view .button:active:hover { + background-color: shade(@theme_bg_color, 1.10); background-image: none; - background-color: alpha(@theme_bg_color, 0.5); } .content-view .button:insensitive { + background-color: shade(@theme_bg_color, 0.9); background-image: none; - background-color: alpha(@theme_base_color, 0.0); } .content-view .help_button * { @@ -109,8 +109,8 @@ border-width: 0 0 1px 0; border-style: solid; border-color: shade(@theme_bg_color, 0.8); - background-image: none; background-color: @theme_bg_color; + background-image: none; -GtkWidget-window-dragging: true; } @@ -188,21 +188,34 @@ GraniteWidgetsPopOver * { GraniteWidgetsPopOver .button { border-color: shade(@menu_bg_color, 0.8); - background-color: transparent; + background-color: shade(@menu_bg_color, 1.08); background-image: none; color: @menu_fg_color; } +GraniteWidgetsPopOver .button:hover { + border-color: shade(@menu_bg_color, 0.7); + background-color: shade(@menu_bg_color, 1.10); + background-image: none; +} + GraniteWidgetsPopOver .button:active, GraniteWidgetsPopOver .button:hover:active { - background-color: @menu_bg_color; + border-color: shade(@menu_bg_color, 0.8); + background-color: shade(@menu_bg_color, 0.95); background-image: none; } GraniteWidgetsPopOver .entry { - background-color: @theme_base_color; + border-color: shade(@menu_bg_color, 0.7); + background-color: @menu_bg_color; background-image: none; - color: @theme_text_color; + color: @menu_fg_color; +} + +GraniteWidgetsPopOver .entry:active, +GraniteWidgetsPopOver .entry:focus { + border-color: shade(@menu_bg_color, 0.7); } .button.app { diff --git a/gtk-3.0/gtk-widgets.css b/gtk-3.0/gtk-widgets.css index f336839..9becf76 100644 --- a/gtk-3.0/gtk-widgets.css +++ b/gtk-3.0/gtk-widgets.css @@ -929,6 +929,11 @@ GtkTreeMenu .menuitem * { color: @menu_fg_color; } +.menuitem .entry:active, +.menuitem .entry:focus { + border-color: shade(@menu_bg_color, 0.7); +} + .menuitem .accelerator { color: alpha(@menu_fg_color, 0.6); }