diff --git a/wallpapers/potd/contents/ui/config.qml b/wallpapers/potd/contents/ui/config.qml --- a/wallpapers/potd/contents/ui/config.qml +++ b/wallpapers/potd/contents/ui/config.qml @@ -18,11 +18,14 @@ */ import QtQuick 2.5 -import QtQuick.Controls 1.0 as QtControls + +import QtQuick.Layouts 1.3 +import QtQuick.Controls 2.2 as QtControls import QtQuick.Dialogs 1.1 as QtDialogs + import org.kde.plasma.core 2.0 as PlasmaCore -Column { +ColumnLayout { id: root property string cfg_Provider property int cfg_FillMode @@ -59,9 +62,11 @@ } } - Row { + RowLayout { spacing: units.largeSpacing / 2 QtControls.Label { + Layout.minimumWidth: width + Layout.maximumWidth: width width: formAlignment - units.largeSpacing horizontalAlignment: Text.AlignRight text: i18nd("plasma_applet_org.kde.potd", "Providers:") @@ -79,11 +84,13 @@ } } - Row { + RowLayout { //x: formAlignment - positionLabel.paintedWidth spacing: units.largeSpacing / 2 QtControls.Label { id: positionLabel + Layout.minimumWidth: width + Layout.maximumWidth: width width: formAlignment - units.largeSpacing anchors { verticalCenter: resizeComboBox.verticalCenter @@ -140,10 +147,12 @@ title: i18nd("plasma_applet_org.kde.potd", "Select Background Color") } - Row { + RowLayout { id: colorRow spacing: units.largeSpacing / 2 QtControls.Label { + Layout.minimumWidth: width + Layout.maximumWidth: width width: formAlignment - units.largeSpacing anchors.verticalCenter: colorButton.verticalCenter horizontalAlignment: Text.AlignRight @@ -164,4 +173,8 @@ } } } + + Item { // tighten layout + Layout.fillHeight: true + } }