mirror of
https://github.com/lbonn/rofi
synced 2024-11-15 08:37:17 +00:00
Don't highlight row when empty.
This commit is contained in:
parent
236b36d328
commit
dc8f2a2cfb
1 changed files with 11 additions and 4 deletions
|
@ -735,10 +735,17 @@ void menu_draw( textbox *text, textbox **boxes, int max_lines, int selected, cha
|
|||
textbox_draw( text );
|
||||
|
||||
for ( i = 0; i < max_lines; i++ ) {
|
||||
textbox_font( boxes[i], config_menu_font,
|
||||
i == selected ? config_menu_hlfg: config_menu_fg,
|
||||
i == selected ? config_menu_hlbg: config_menu_bg );
|
||||
textbox_text( boxes[i], filtered[i] ? filtered[i]: "" );
|
||||
if(filtered[i] == NULL) {
|
||||
textbox_font( boxes[i], config_menu_font,
|
||||
config_menu_fg,
|
||||
config_menu_bg );
|
||||
textbox_text( boxes[i], "" );
|
||||
}else {
|
||||
textbox_font( boxes[i], config_menu_font,
|
||||
i == selected ? config_menu_hlfg: config_menu_fg,
|
||||
i == selected ? config_menu_hlbg: config_menu_bg );
|
||||
textbox_text( boxes[i], filtered[i]);
|
||||
}
|
||||
textbox_draw( boxes[i] );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue