mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +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
|
@ -154,6 +154,10 @@ void ColumnsView::paint_event(PaintEvent& event)
|
|||
painter.draw_focus_rect(row_rect, palette().focus_outline());
|
||||
}
|
||||
|
||||
if (has_pending_drop() && index == drop_candidate_index()) {
|
||||
painter.draw_rect(row_rect, palette().selection(), true);
|
||||
}
|
||||
|
||||
bool expandable = model()->row_count(index) > 0;
|
||||
if (expandable) {
|
||||
Gfx::IntRect arrow_rect = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue