mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
WindowServer: Use active shadow for highlighted window
If we're switching through windows we should also use the active shadow for the highlighted window.
This commit is contained in:
parent
c57d719d62
commit
87c1b1a25d
Notes:
sideshowbarker
2024-07-18 21:45:52 +09:00
Author: https://github.com/tomuta
Commit: 87c1b1a25d
Pull-request: https://github.com/SerenityOS/serenity/pull/5618
Issue: https://github.com/SerenityOS/serenity/issues/5599
1 changed files with 2 additions and 0 deletions
|
@ -217,6 +217,8 @@ Gfx::Bitmap* WindowFrame::window_shadow() const
|
||||||
case WindowType::Taskbar:
|
case WindowType::Taskbar:
|
||||||
return s_task_bar_shadow;
|
return s_task_bar_shadow;
|
||||||
default:
|
default:
|
||||||
|
if (auto* highlight_window = WindowManager::the().highlight_window())
|
||||||
|
return highlight_window == &m_window ? s_active_window_shadow : s_inactive_window_shadow;
|
||||||
return m_window.is_active() ? s_active_window_shadow : s_inactive_window_shadow;
|
return m_window.is_active() ? s_active_window_shadow : s_inactive_window_shadow;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue