Commit def4caed authored by Noah Davis's avatar Noah Davis 🌵
Browse files

[ToolBar] Fix separator position in footer

It was a pixel too high.

Also use more concise code
parent 218b34ca
......@@ -33,16 +33,13 @@ T.ToolBar {
background: Rectangle {
// 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)
implicitHeight: Kirigami.Units.mediumControlHeight + (Kirigami.Units.smallSpacing * 2) + (separator.visible ? separator.height : 0)
color: Kirigami.Theme.backgroundColor
property Item separator: Kirigami.Separator {
parent: background
visible: control.__isHeader || control.__isFooter
anchors {
left: parent.left
right: parent.right
verticalCenter: control.__isFooter ? parent.top : parent.bottom
}
width: parent.width
y: control.__isFooter ? 0 : parent.height - height
}
}
}
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