diff options
author | Linus Groh <mail@linusgroh.de> | 2021-01-02 23:05:27 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-02 23:31:22 +0100 |
commit | 306aff80d03d25df185dee5a37b89d1af30daee4 (patch) | |
tree | c713d48ddffee8b71448985b9fb5e1a82e8a4e42 /Services | |
parent | fc2c5c373bc89b7b9e0495afbce528b51dd88ca4 (diff) | |
download | serenity-306aff80d03d25df185dee5a37b89d1af30daee4.zip |
LibGUI: Remove Widget's unused m_{foreground,background}_color
...as well as the few remaining references to set_foreground_color().
These properties are not being used for rendering anymore, presumably
because they completely mess up theming - assigning random white and
gray backgrounds just doesn't work with dark themes.
I've chosen to not replace most of the few remaining uses of this
broken functionality with custom palette colors (the closest
replacement is background_role) for now (except for Minesweeper where
squares with mines are painted red again now), as no one has actually
complained about them being broken, so it must look somewhat decent
(some just look right anyway). :^)
Examples of this are the taskbar buttons, which apparently had a
DarkGray foreground color for minimized windows once - this has since
been replaced with bold/regular font. Another one is the Profiler's
ProfileTimelineWidget, which is supposed to have a white background -
which it didn't have for quite some time, it's grey now (with the
default theme, that is). Doesn't look bad either.
Diffstat (limited to 'Services')
-rw-r--r-- | Services/Taskbar/TaskbarWindow.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Services/Taskbar/TaskbarWindow.cpp b/Services/Taskbar/TaskbarWindow.cpp index 9ad590c495..a68dedc4c9 100644 --- a/Services/Taskbar/TaskbarWindow.cpp +++ b/Services/Taskbar/TaskbarWindow.cpp @@ -206,12 +206,6 @@ void TaskbarWindow::update_window_button(::Window& window, bool show_as_active) auto* button = window.button(); if (!button) return; - - if (window.is_minimized()) { - button->set_foreground_color(Color::DarkGray); - } else { - button->set_foreground_color(Color::Black); - } button->set_text(window.title()); button->set_checked(show_as_active); } |