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

[Popup] Add padding, remove unnecessary code

Most qqc2 style have padding in Popup. Usually it's a fairly high amount
like 12.
parent 01a2374a
......@@ -13,16 +13,12 @@ import "impl"
T.Popup {
id: control
palette: Kirigami.Theme.palette
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
contentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
contentHeight + topPadding + bottomPadding)
contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0)
contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0)
padding: 0
padding: Kirigami.Units.veryLargeSpacing
// clip: true
enter: Transition {
......
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