mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:18:14 +00:00
LibGUI: Add visual indicators for accepted drags to view classes
All the view classes used in FileManager now indicate when they are ready to accept a drop by showing a rounded rectangle around the item.
This commit is contained in:
parent
607c01fad1
commit
9e60fc5006
4 changed files with 13 additions and 1 deletions
|
@ -378,6 +378,10 @@ void TreeView::paint_event(PaintEvent& event)
|
|||
else
|
||||
painter.blit(toggle_rect.location(), *m_expand_bitmap, m_expand_bitmap->rect());
|
||||
}
|
||||
|
||||
if (has_pending_drop() && index == drop_candidate_index()) {
|
||||
painter.draw_rect(rect, palette().selection(), true);
|
||||
}
|
||||
}
|
||||
x_offset += column_width + horizontal_padding() * 2;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue