mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:17:44 +00:00
LibGfx: Oops, fix misaligned window buttons for WindowType::Normal
This commit is contained in:
parent
89c7886d1c
commit
f24287e0e1
1 changed files with 2 additions and 2 deletions
|
@ -63,9 +63,9 @@ Gfx::IntRect ClassicWindowTheme::title_bar_text_rect(WindowType window_type, con
|
||||||
auto titlebar_rect = title_bar_rect(window_type, window_rect, palette);
|
auto titlebar_rect = title_bar_rect(window_type, window_rect, palette);
|
||||||
auto titlebar_icon_rect = title_bar_icon_rect(window_type, window_rect, palette);
|
auto titlebar_icon_rect = title_bar_icon_rect(window_type, window_rect, palette);
|
||||||
return {
|
return {
|
||||||
titlebar_rect.x() + 3 + (titlebar_icon_rect.is_empty() ? 0 : titlebar_icon_rect.width() + 2),
|
titlebar_rect.x() + 3 + (titlebar_icon_rect.is_empty() ? 0 : (titlebar_icon_rect.width() + 2)),
|
||||||
titlebar_rect.y(),
|
titlebar_rect.y(),
|
||||||
titlebar_rect.width() - 5 - (titlebar_icon_rect.is_empty() ? 0 : titlebar_icon_rect.width() - 2),
|
titlebar_rect.width() - 5 - (titlebar_icon_rect.is_empty() ? 0 : (titlebar_icon_rect.width() + 2)),
|
||||||
titlebar_rect.height()
|
titlebar_rect.height()
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue