1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:47:34 +00:00

WindowServer+LibGfx: Make menubar menus slightly larger

Also make sure the left/right padding is equally large.
This commit is contained in:
Andreas Kling 2021-03-26 14:24:04 +01:00
parent 3020f5efd9
commit 4b6fba1e4c
5 changed files with 9 additions and 16 deletions

View file

@ -33,7 +33,7 @@
namespace Gfx {
static constexpr int menu_bar_height = 19;
static constexpr int menu_bar_height = 20;
ClassicWindowTheme::ClassicWindowTheme()
{
@ -149,7 +149,7 @@ IntRect ClassicWindowTheme::menu_bar_rect(WindowType window_type, const IntRect&
{
if (window_type != WindowType::Normal)
return {};
return { 4, 4 + title_bar_height(window_type, palette) + 2, window_rect.width(), menu_bar_height * menu_row_count };
return { 4, 3 + title_bar_height(window_type, palette) + 2, window_rect.width(), menu_bar_height * menu_row_count };
}
IntRect ClassicWindowTheme::title_bar_rect(WindowType window_type, const IntRect& window_rect, const Palette& palette) const
@ -209,9 +209,9 @@ IntRect ClassicWindowTheme::frame_rect_for_window(WindowType window_type, const
case WindowType::ToolWindow:
return {
window_rect.x() - 4,
window_rect.y() - window_titlebar_height - 6 - menu_row_count * menu_bar_height,
window_rect.y() - window_titlebar_height - 5 - menu_row_count * menu_bar_height,
window_rect.width() + 8,
window_rect.height() + 10 + window_titlebar_height + menu_row_count * menu_bar_height
window_rect.height() + 9 + window_titlebar_height + menu_row_count * menu_bar_height
};
case WindowType::Notification:
return {