From 570fd57e7ea979a94e986b6fde8272dc46785419 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 3 Jun 2007 19:39:19 +0000 Subject: [PATCH] add title separator colors to the preview --- src/preview.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/preview.c b/src/preview.c index b3af411..f8ca248 100644 --- a/src/preview.c +++ b/src/preview.c @@ -415,6 +415,19 @@ static GdkPixbuf* preview_window(RrTheme *theme, const gchar *titlelayout, 0, 0, x, y, w, h); } + /* title separator colour */ + x = theme->fbwidth; + y = theme->fbwidth + theme->title_height; + w = width - 2*theme->fbwidth; + h = theme->fbwidth; + + scratch = gdk_pixbuf_new(GDK_COLORSPACE_RGB, TRUE, 8, w, h); + gdk_pixbuf_fill(scratch, rr_color_pixel(focus ? + theme->title_separator_focused_color : + theme->title_separator_unfocused_color)); + + gdk_pixbuf_copy_area(scratch, 0, 0, w, h, pixbuf, x, y); + /* retarded way of adding client colour */ x = theme->fbwidth; y = theme->title_height + 2*theme->fbwidth; -- 2.34.1