Quick 'n Dirty work around for handle color in scrollbar.

This commit is contained in:
Dave Davenport 2017-01-06 13:13:03 +01:00
parent add0e2f801
commit 7e13bd8658
1 changed files with 3 additions and 1 deletions

View File

@ -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 ),