mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-25 13:55:34 -05:00
Fix #237 add none style to separator style
This commit is contained in:
parent
aea2458575
commit
2d167e21d7
3 changed files with 29 additions and 27 deletions
|
@ -873,6 +873,7 @@ static void menu_update ( MenuState *state )
|
||||||
( ( pixel & 0x000000FF ) >> 0 ) / 256.0,
|
( ( pixel & 0x000000FF ) >> 0 ) / 256.0,
|
||||||
( ( pixel & 0xFF000000 ) >> 24 ) / 256.0
|
( ( pixel & 0xFF000000 ) >> 24 ) / 256.0
|
||||||
);
|
);
|
||||||
|
if ( strcmp ( config.separator_style, "none" ) ) {
|
||||||
if ( strcmp ( config.separator_style, "dash" ) == 0 ) {
|
if ( strcmp ( config.separator_style, "dash" ) == 0 ) {
|
||||||
const double dashes[1] = { 4 };
|
const double dashes[1] = { 4 };
|
||||||
cairo_set_dash ( d, dashes, 1, 0.0 );
|
cairo_set_dash ( d, dashes, 1, 0.0 );
|
||||||
|
@ -890,12 +891,13 @@ static void menu_update ( MenuState *state )
|
||||||
cairo_move_to ( d, 0, state->h - state->line_height - ( config.padding ) * 1 - 1 - config.line_margin );
|
cairo_move_to ( d, 0, state->h - state->line_height - ( config.padding ) * 1 - 1 - config.line_margin );
|
||||||
cairo_line_to ( d, state->w, state->h - state->line_height - ( config.padding ) * 1 - 1 - config.line_margin );
|
cairo_line_to ( d, state->w, state->h - state->line_height - ( config.padding ) * 1 - 1 - config.line_margin );
|
||||||
cairo_stroke ( d );
|
cairo_stroke ( d );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ( config.sidebar_mode == TRUE ) {
|
||||||
for ( unsigned int j = 0; j < num_switchers; j++ ) {
|
for ( unsigned int j = 0; j < num_switchers; j++ ) {
|
||||||
textbox_draw ( switchers[j].tb, d );
|
textbox_draw ( switchers[j].tb, d );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
state->update = FALSE;
|
state->update = FALSE;
|
||||||
|
|
||||||
// Draw to actual window.
|
// Draw to actual window.
|
||||||
|
|
Loading…
Reference in a new issue