mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-19 07:49:05 +00:00
LibGfx: Oops, fix misaligned window buttons for WindowType::Normal
This commit is contained in:
parent
89c7886d1c
commit
f24287e0e1
Notes:
sideshowbarker
2024-07-18 22:13:01 +09:00
Author: https://github.com/awesomekling
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_icon_rect = title_bar_icon_rect(window_type, window_rect, palette);
|
||||
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.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()
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue