Commit 3993ab79 authored by Jan Blackquill's avatar Jan Blackquill 🌈 Committed by Jan Blackquill
Browse files

kstyle: add menu margin

This is more consistent with Plasma and our qqc2-desktop-style.

BUG: 374311
BUG: 445886
FIXED-IN: 5.25
parent 9cd1244b
Pipeline #139253 passed with stage
in 1 minute and 49 seconds
......@@ -51,6 +51,7 @@ namespace Breeze
// menu items
static constexpr int Menu_FrameWidth = 0;
static constexpr int MenuItem_MarginWidth = 5;
static constexpr int MenuItem_HighlightGap = 4;
static constexpr int MenuItem_ExtraLeftMargin = 4;
static constexpr int MenuItem_MarginHeight = 3;
static constexpr int MenuItem_ItemSpacing = 4;
......
......@@ -555,6 +555,10 @@ namespace Breeze
switch( metric )
{
case PM_MenuHMargin:
case PM_MenuVMargin:
return Metrics::MenuItem_HighlightGap;
// small icon size
case PM_SmallIconSize:
if ( isTabletMode() )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment