mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibGUI: Draw a focus rect over the row when sel. behavior is SelectRows
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user