mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:47:46 +00:00
TaskbarWindow: Redraw start button when default font changes
This commit is contained in:
parent
8992271c5c
commit
ac78f1e812
1 changed files with 7 additions and 1 deletions
|
@ -246,7 +246,8 @@ void TaskbarWindow::update_window_button(::Window& window, bool show_as_active)
|
||||||
|
|
||||||
void TaskbarWindow::event(Core::Event& event)
|
void TaskbarWindow::event(Core::Event& event)
|
||||||
{
|
{
|
||||||
if (event.type() == GUI::Event::MouseDown) {
|
switch (event.type()) {
|
||||||
|
case GUI::Event::MouseDown: {
|
||||||
// If the cursor is at the edge/corner of the screen but technically not within the start button (or other taskbar buttons),
|
// If the cursor is at the edge/corner of the screen but technically not within the start button (or other taskbar buttons),
|
||||||
// we adjust it so that the nearest button ends up being clicked anyways.
|
// we adjust it so that the nearest button ends up being clicked anyways.
|
||||||
|
|
||||||
|
@ -262,6 +263,11 @@ void TaskbarWindow::event(Core::Event& event)
|
||||||
Window::event(adjusted_event);
|
Window::event(adjusted_event);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case GUI::Event::FontsChange:
|
||||||
|
m_start_button->set_font(Gfx::FontDatabase::default_font().bold_variant());
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
Window::event(event);
|
Window::event(event);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue