WindowServer+WorkspacePicker: Adjust active and inactive colors

Now uses the Selection ColorRole for the active desktop and a
slightly darkened Window for inactive ones. Several themes use
the same color for thread highlighting and inactive windows which
was causing frames to draw without the correct perception of depth.
This commit is contained in:
thankyouverycool 2022-08-15 09:20:09 -04:00 committed by Andreas Kling
parent 24424d265d
commit 1f1ac99ef9
Notes: sideshowbarker 2024-07-17 08:12:33 +09:00
2 changed files with 4 additions and 4 deletions

View file

@ -47,8 +47,8 @@ public:
auto& desktop = GUI::Desktop::the();
auto active_color = palette().active_window_border1();
auto inactive_color = palette().inactive_window_border1();
auto active_color = palette().selection();
auto inactive_color = palette().window().darkened(0.9f);
for (unsigned row = 0; row < desktop.workspace_rows(); ++row) {
for (unsigned column = 0; column < desktop.workspace_columns(); ++column) {

View file

@ -323,8 +323,8 @@ void WindowStackSwitchOverlay::render_overlay_bitmap(Gfx::Painter& painter)
{
// We should come up with a more elegant way to get the content rectangle
auto content_rect = Gfx::IntRect({}, m_content_size).centered_within({ {}, rect().size() });
auto active_color = WindowManager::the().palette().active_window_border1();
auto inactive_color = WindowManager::the().palette().inactive_window_border1();
auto active_color = WindowManager::the().palette().selection();
auto inactive_color = WindowManager::the().palette().window().darkened(0.9f);
for (int y = 0; y < m_rows; y++) {
for (int x = 0; x < m_columns; x++) {
Gfx::IntRect rect {