From ee5cc384e27119833e9f0347d0a0f40ba73df703 Mon Sep 17 00:00:00 2001 From: Luke Horwell Date: Tue, 7 Dec 2021 14:20:38 +0000 Subject: [PATCH] Restore separator spacing in context menus This restores the spacing for separators that was lost since around Plasma 5.20. Long menus can be difficult to scan and overwhelming when all items are clumped together with no additional spacing. This balances the margins/padding similar to how they were pre-5.20. --- kstyle/breezemetrics.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kstyle/breezemetrics.h b/kstyle/breezemetrics.h index 9425b07f..2ccdbac0 100644 --- a/kstyle/breezemetrics.h +++ b/kstyle/breezemetrics.h @@ -50,11 +50,11 @@ namespace Breeze // menu items static constexpr int Menu_FrameWidth = 0; - static constexpr int MenuItem_MarginWidth = 8; + static constexpr int MenuItem_MarginWidth = 5; static constexpr int MenuItem_ExtraLeftMargin = 4; - static constexpr int MenuItem_MarginHeight = 4; + static constexpr int MenuItem_MarginHeight = 3; static constexpr int MenuItem_ItemSpacing = 4; - static constexpr int MenuItem_SeparatorPadding = 0; + static constexpr int MenuItem_SeparatorPadding = 3; static constexpr int MenuItem_AcceleratorSpace = 16; static constexpr int MenuButton_IndicatorWidth = 20;