Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Breeze Style for QQC2
Commits
aa7f8095
Commit
aa7f8095
authored
Feb 16, 2021
by
Noah Davis
🌵
Browse files
[ToolBar] Use more top and bottom padding, make checking for separator height more robust
parent
f666bcbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
style/qtquickcontrols/ToolBar.qml
View file @
aa7f8095
...
...
@@ -20,8 +20,13 @@ T.ToolBar {
spacing
:
Kirigami
.
Units
.
smallSpacing
padding
:
Kirigami
.
Units
.
smallSpacing
topPadding
:
__isFooter
?
1
:
0
// Add space for the separator above the footer
bottomPadding
:
__isHeader
?
1
:
0
// Add space for the separator below the header
// Add space for the separator above the footer
topPadding
:
__isFooter
&&
background
&&
background
.
hasOwnProperty
(
"
separator
"
)
?
background
.
separator
.
height
+
verticalPadding
:
verticalPadding
// Add space for the separator below the header
bottomPadding
:
__isHeader
&&
background
&&
background
.
hasOwnProperty
(
"
separator
"
)
?
background
.
separator
.
height
+
verticalPadding
:
verticalPadding
Kirigami.Theme.inherit
:
!
__isHeader
Kirigami.Theme.colorSet
:
Kirigami
.
Theme
.
Header
...
...
@@ -30,8 +35,8 @@ T.ToolBar {
// Enough height for Buttons/ComboBoxes/TextFields with smallSpacing padding on top and bottom
implicitHeight
:
Kirigami
.
Units
.
mediumControlHeight
+
(
Kirigami
.
Units
.
smallSpacing
*
2
)
+
(
separator
.
visible
?
1
:
0
)
color
:
Kirigami
.
Theme
.
backgroundColor
Kirigami.Separator
{
id
:
separator
property
Item
separator
:
Kirigami.Separator
{
parent
:
background
visible
:
control
.
__isHeader
||
control
.
__isFooter
anchors
{
left
:
parent
.
left
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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