summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibGUI/TreeView.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/TreeView.cpp b/Userland/Libraries/LibGUI/TreeView.cpp
index 72bb6a735d..ebe6259684 100644
--- a/Userland/Libraries/LibGUI/TreeView.cpp
+++ b/Userland/Libraries/LibGUI/TreeView.cpp
@@ -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;
});
}