mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
WindowServer: Don't fill the active menubar menu with selection color
This commit is contained in:
parent
128c4c2db0
commit
1108c41790
Notes:
sideshowbarker
2024-07-18 21:05:14 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/1108c417900
1 changed files with 1 additions and 4 deletions
|
@ -312,11 +312,8 @@ void WindowFrame::paint_menubar(Gfx::Painter& painter)
|
|||
m_window.menubar()->for_each_menu([&](Menu& menu) {
|
||||
auto text_rect = menu.text_rect_in_window_menubar();
|
||||
Color text_color = palette.window_text();
|
||||
if (MenuManager::the().is_open(menu)) {
|
||||
painter.fill_rect(menu.rect_in_window_menubar(), palette.menu_selection());
|
||||
text_color = palette.menu_selection_text();
|
||||
if (MenuManager::the().is_open(menu))
|
||||
text_rect.move_by(1, 1);
|
||||
}
|
||||
if (&menu == MenuManager::the().hovered_menu() || MenuManager::the().is_open(menu))
|
||||
Gfx::StylePainter::paint_button(painter, menu.rect_in_window_menubar(), palette, Gfx::ButtonStyle::CoolBar, MenuManager::the().is_open(menu), true);
|
||||
painter.draw_text(
|
||||
|
|
Loading…
Reference in a new issue