mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
Quick 'n Dirty work around for handle color in scrollbar.
This commit is contained in:
parent
add0e2f801
commit
7e13bd8658
1 changed files with 3 additions and 1 deletions
|
@ -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 ),
|
||||
|
|
Loading…
Reference in a new issue