mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:27:45 +00:00
WindowServer: Use system theme for the drag and drop popups
This commit is contained in:
parent
2eb9620415
commit
ba7281a7b2
1 changed files with 2 additions and 2 deletions
|
@ -451,12 +451,12 @@ void Compositor::draw_cursor()
|
||||||
|
|
||||||
if (wm.dnd_client()) {
|
if (wm.dnd_client()) {
|
||||||
auto dnd_rect = wm.dnd_rect();
|
auto dnd_rect = wm.dnd_rect();
|
||||||
m_back_painter->fill_rect(dnd_rect, Color(110, 34, 9, 200));
|
m_back_painter->fill_rect(dnd_rect, wm.palette().selection().with_alpha(200));
|
||||||
if (!wm.dnd_text().is_empty()) {
|
if (!wm.dnd_text().is_empty()) {
|
||||||
auto text_rect = dnd_rect;
|
auto text_rect = dnd_rect;
|
||||||
if (wm.dnd_bitmap())
|
if (wm.dnd_bitmap())
|
||||||
text_rect.move_by(wm.dnd_bitmap()->width(), 0);
|
text_rect.move_by(wm.dnd_bitmap()->width(), 0);
|
||||||
m_back_painter->draw_text(text_rect, wm.dnd_text(), Gfx::TextAlignment::CenterLeft, Color::White);
|
m_back_painter->draw_text(text_rect, wm.dnd_text(), Gfx::TextAlignment::CenterLeft, wm.palette().selection_text());
|
||||||
}
|
}
|
||||||
if (wm.dnd_bitmap()) {
|
if (wm.dnd_bitmap()) {
|
||||||
m_back_painter->blit(dnd_rect.top_left(), *wm.dnd_bitmap(), wm.dnd_bitmap()->rect());
|
m_back_painter->blit(dnd_rect.top_left(), *wm.dnd_bitmap(), wm.dnd_bitmap()->rect());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue