Commit 6f6c7339 authored by Marco Martin's avatar Marco Martin

sync formfactor from plasmoid to faces

parent ddefcfb7
...@@ -46,9 +46,29 @@ Control { ...@@ -46,9 +46,29 @@ Control {
Kirigami.Theme.textColor: PlasmaCore.ColorScope.textColor Kirigami.Theme.textColor: PlasmaCore.ColorScope.textColor
leftPadding: 0
topPadding: 0
rightPadding: 0
bottomPadding: 0
anchors.fill: parent anchors.fill: parent
contentItem: plasmoid.nativeInterface.faceController.compactRepresentation contentItem: plasmoid.nativeInterface.faceController.compactRepresentation
Binding {
target: plasmoid.nativeInterface.faceController.compactRepresentation
property: "formFactor"
value: {
switch (plasmoid.formFactor) {
case Faces.SensorFace.Horizontal:
return PlasmaCore.Types.Horizontal;
case Faces.SensorFace.Verical:
return PlasmaCore.Types.Vertical;
default:
return PlasmaCore.Types.Planar;
}
}
}
MouseArea { MouseArea {
parent: chartFace parent: chartFace
anchors.fill: parent anchors.fill: parent
......
...@@ -57,5 +57,20 @@ Control { ...@@ -57,5 +57,20 @@ Control {
Kirigami.Theme.textColor: PlasmaCore.ColorScope.textColor Kirigami.Theme.textColor: PlasmaCore.ColorScope.textColor
contentItem: plasmoid.nativeInterface.faceController.fullRepresentation contentItem: plasmoid.nativeInterface.faceController.fullRepresentation
Binding {
target: plasmoid.nativeInterface.faceController.compactRepresentation
property: "formFactor"
value: {
switch (plasmoid.formFactor) {
case Faces.SensorFace.Horizontal:
return PlasmaCore.Types.Horizontal;
case Faces.SensorFace.Verical:
return PlasmaCore.Types.Vertical;
default:
return PlasmaCore.Types.Planar;
}
}
}
} }
Markdown is supported
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