Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Breeze visual style
Commits
437c1355
Commit
437c1355
authored
Aug 28, 2020
by
Jan Blackquill
🌈
Committed by
Nate Graham
Dec 03, 2020
Browse files
Increase menu padding to allow for a larger interaction region
parent
42a885a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
kstyle/breezemetrics.h
View file @
437c1355
...
...
@@ -53,9 +53,10 @@ namespace Breeze
// menu items
static
constexpr
int
Menu_FrameWidth
=
0
;
static
constexpr
int
MenuItem_MarginWidth
=
5
;
static
constexpr
int
MenuItem_MarginHeight
=
3
;
static
constexpr
int
MenuItem_MarginWidth
=
10
;
static
constexpr
int
MenuItem_MarginHeight
=
5
;
static
constexpr
int
MenuItem_ItemSpacing
=
4
;
static
constexpr
int
MenuItem_SeparatorPadding
=
0
;
static
constexpr
int
MenuItem_AcceleratorSpace
=
16
;
static
constexpr
int
MenuButton_IndicatorWidth
=
20
;
...
...
kstyle/breezestyle.cpp
View file @
437c1355
...
...
@@ -2933,7 +2933,7 @@ namespace Breeze
if
(
menuItemOption
->
text
.
isEmpty
()
&&
menuItemOption
->
icon
.
isNull
()
)
{
return
expandSize
(
QSize
(
0
,
1
),
Metrics
::
MenuItem_MarginWidth
,
Metrics
::
MenuItem_
MarginHeight
);
return
expandSize
(
QSize
(
0
,
1
),
Metrics
::
MenuItem_MarginWidth
,
Metrics
::
MenuItem_
SeparatorPadding
);
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment