Commit cdc62e0b authored by Nate Graham's avatar Nate Graham
Browse files

applet: Use PlasmaCore units, not Kirigami units

Plasma applets use Plasma units, not Kirigami units.

Also use multiples of smallSpacing rather than largeSpacing since it's
calculated incorrectly in a way that's unfixable without messing up
spacings all over the place in Plasma; preserve the spirit of the layout
instead.
parent 9682a9b4
......@@ -8,9 +8,8 @@ import QtQuick 2.15
import QtQuick.Layouts 1.15
import QtQuick.Window 2.15
import org.kde.plasma.core 2.1 as PlasmaCore
import org.kde.plasma.components 3.0 as PlasmaComponents3
import org.kde.kirigami 2.3 as Kirigami
import org.kde.prison 1.0 as Prison
Window {
......@@ -40,7 +39,7 @@ Window {
anchors {
fill: parent
margins: Kirigami.Units.largeSpacing * 4
margins: PlasmaCore.Units.smallSpacing * 8
}
barcodeType: "QRCode"
......@@ -53,7 +52,7 @@ Window {
anchors {
right: parent.right
top: parent.top
margins: Kirigami.Units.largeSpacing
margins: PlasmaCore.Units.smallSpacing * 2
}
icon.name: "window-close"
......
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