mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 08:41:15 +00:00
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:
parent
24424d265d
commit
1f1ac99ef9
Notes:
sideshowbarker
2024-07-17 08:12:33 +09:00
Author: https://github.com/thankyouverycool Commit: https://github.com/SerenityOS/serenity/commit/1f1ac99ef9 Pull-request: https://github.com/SerenityOS/serenity/pull/14885
|
@ -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) {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue