Commit bc28e41a authored by Volker Krause's avatar Volker Krause
Browse files

Port two leftovers to the PlasmaCore.Units singleton

parent 3415d64d
Pipeline #227040 passed with stage
in 3 minutes and 29 seconds
......@@ -56,7 +56,7 @@ DragDrop.DropArea {
property var marginHighlightSvg: PlasmaCore.Svg{imagePath: "widgets/margins-highlight"}
//Margins are either the size of the margins in the SVG, unless that prevents the panel from being at least half a smallMedium icon) tall at which point we set the margin to whatever allows it to be that...or if it still won't fit, 1.
//the size a margin should be to force a panel to be the required size above
readonly property real spacingAtMinSize: Math.floor(Math.max(1, (isHorizontal ? root.height : root.width) - units.iconSizes.smallMedium)/2)
readonly property real spacingAtMinSize: Math.floor(Math.max(1, (isHorizontal ? root.height : root.width) - PlasmaCore.Units.iconSizes.smallMedium)/2)
//END properties
......
......@@ -23,7 +23,7 @@ Item {
property bool floatingPrefix: floatingPanelSvg.usedPrefix === "floating"
readonly property bool verticalPanel: containment && containment.formFactor === PlasmaCore.Types.Vertical
readonly property real spacingAtMinSize: Math.round(Math.max(1, (verticalPanel ? root.width : root.height) - units.iconSizes.smallMedium)/2)
readonly property real spacingAtMinSize: Math.round(Math.max(1, (verticalPanel ? root.width : root.height) - PlasmaCore.Units.iconSizes.smallMedium)/2)
PlasmaCore.FrameSvgItem {
id: thickPanelSvg
visible: false
......
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