mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
LibGUI: Draw a focus rect over the row when sel. behavior is SelectRows
This commit is contained in:
parent
b6ef12bd26
commit
309a20c014
1 changed files with 5 additions and 0 deletions
|
@ -373,6 +373,11 @@ void TreeView::paint_event(PaintEvent& event)
|
|||
x_offset += column_width + horizontal_padding() * 2;
|
||||
}
|
||||
|
||||
if (selection_behavior() == SelectionBehavior::SelectRows && is_focused() && index == cursor_index()) {
|
||||
painter.draw_rect(row_rect, palette().color(background_role()));
|
||||
painter.draw_focus_rect(row_rect, palette().focus_outline());
|
||||
}
|
||||
|
||||
return IterationDecision::Continue;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue