mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 14:55:07 +00:00
WindowServer: Improve look of drag&drop items somewhat
This just adds a bit of padding around items. There's lots of room for improvement here.
This commit is contained in:
parent
0391806eec
commit
ce4ee1df1b
2 changed files with 4 additions and 3 deletions
|
@ -1381,7 +1381,7 @@ Gfx::IntRect WindowManager::dnd_rect() const
|
|||
int width = font().width(m_dnd_text) + bitmap_width;
|
||||
int height = max((int)font().glyph_height(), bitmap_height);
|
||||
auto location = Compositor::the().current_cursor_rect().center().translated(8, 8);
|
||||
return Gfx::IntRect(location, { width, height }).inflated(4, 4);
|
||||
return Gfx::IntRect(location, { width, height }).inflated(16, 8);
|
||||
}
|
||||
|
||||
bool WindowManager::update_theme(String theme_path, String theme_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue