From 7e13bd86589c1f2df337fc52df5480d49a12c406 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Fri, 6 Jan 2017 13:13:03 +0100 Subject: [PATCH] Quick 'n Dirty work around for handle color in scrollbar. --- source/widgets/scrollbar.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/widgets/scrollbar.c b/source/widgets/scrollbar.c index 41f18414..e58cf5f8 100644 --- a/source/widgets/scrollbar.c +++ b/source/widgets/scrollbar.c @@ -45,7 +45,6 @@ scrollbar *scrollbar_create ( const char *name, int width ) { scrollbar *sb = g_malloc0 ( sizeof ( scrollbar ) ); widget_init ( WIDGET (sb), name ); - sb->widget.state = g_strdup("handle"); sb->widget.x = 0; sb->widget.y = 0; sb->widget.w = widget_padding_get_padding_width ( WIDGET (sb) ) +width; @@ -119,7 +118,10 @@ static void scrollbar_draw ( widget *wid, cairo_t *draw ) // Never go out of bar. height = MAX ( 2, height ); // Cap length; + // @TODO hack. + wid->state = "handle"; rofi_theme_get_color ( WIDGET (sb ), "foreground", draw ); + wid->state = NULL; cairo_rectangle ( draw, widget_padding_get_left ( wid ),