1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:37:44 +00:00

WindowServer: Use font height for item heights in Menus

The height of menu items was relatively small on larger fonts.
This commit is contained in:
Karol Kosek 2022-03-14 18:00:43 +01:00 committed by Andreas Kling
parent 11f82a32d4
commit fe47e66438
2 changed files with 6 additions and 1 deletions

View file

@ -86,7 +86,7 @@ public:
int content_width() const;
static constexpr int item_height() { return 22; }
int item_height() const;
static constexpr int frame_thickness() { return 2; }
static constexpr int horizontal_padding() { return left_padding() + right_padding(); }
static constexpr int left_padding() { return 14; }