[gtk-theme-engine-clearlooks/gtk-style-context] Set Focus fill color.



commit 309fab1755ff7bd67613255d933b33b44aa410fd
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Nov 30 03:12:50 2010 +0100

    Set Focus fill color.

 src/clearlooks_engine.c |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/src/clearlooks_engine.c b/src/clearlooks_engine.c
index 603176a..bcf72cc 100644
--- a/src/clearlooks_engine.c
+++ b/src/clearlooks_engine.c
@@ -1240,7 +1240,7 @@ clearlooks_engine_render_focus (GtkThemingEngine *engine,
 				gdouble           height)
 {
 	ClearlooksStyleFunctions *style_functions;
-	CairoColor *focus_color, *bg_color;
+	CairoColor *focus_color, *focus_fill_color, *bg_color;
 	const GtkWidgetPath *path;
 	FocusParameters focus;
 	GtkStateFlags state;
@@ -1265,6 +1265,7 @@ clearlooks_engine_render_focus (GtkThemingEngine *engine,
 
 	gtk_theming_engine_get (engine, state,
 				"-clearlooks-focus-color", &focus_color,
+				"-clearlooks-focus-fill-color", &focus_fill_color,
 				NULL);
 
 	gtk_theming_engine_get (engine, GTK_STATE_FLAG_SELECTED,
@@ -1414,10 +1415,20 @@ clearlooks_engine_render_focus (GtkThemingEngine *engine,
 	else
 		focus.color = *bg_color;
 
+	if (focus_fill_color)
+		focus.fill_color = *focus_fill_color;
+	else
+	{
+		focus.fill_color = *bg_color;
+		focus.fill_color.a = 0.05;
+	}
+
+
 	style_functions->draw_focus (cr, engine, &focus, x, y, width, height);
 
 	g_free (focus.dash_list);
 	gdk_rgba_free ((GdkRGBA *) focus_color);
+	gdk_rgba_free ((GdkRGBA *) focus_fill_color);
 	gdk_rgba_free ((GdkRGBA *) bg_color);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]