mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
LibGUI: Paint a focus rect around the cursor index in ColumnsView
This commit is contained in:
parent
c0076681ad
commit
f7d8174bee
Notes:
sideshowbarker
2024-07-19 01:41:18 +09:00
Author: https://github.com/awesomekling
Commit: f7d8174bee
1 changed files with 5 additions and 0 deletions
|
@ -147,6 +147,11 @@ void ColumnsView::paint_event(PaintEvent& event)
|
|||
};
|
||||
draw_item_text(painter, index, is_selected_row, text_rect, index.data().to_string(), font_for_index(index), Gfx::TextAlignment::CenterLeft, Gfx::TextElision::None);
|
||||
|
||||
if (is_focused() && index == cursor_index()) {
|
||||
painter.draw_rect(row_rect, palette().color(background_role()));
|
||||
painter.draw_focus_rect(row_rect, palette().focus_outline());
|
||||
}
|
||||
|
||||
bool expandable = model()->row_count(index) > 0;
|
||||
if (expandable) {
|
||||
Gfx::IntRect arrow_rect = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue