Commit b40dabdc authored by Filip Fila's avatar Filip Fila 🌆

[color-wallpaper] Align with the master FormLayout

Summary: This patch aligns the color wallpaper plugin's options with the FormLayout above it by making use of twinFormLayouts.

Test Plan:
D19932 needed before testing.

Before:
{F6719634}

After:
{F6719629}

Before:
{F6719633}

After:
{F6719630}

Reviewers: #plasma, ngraham

Reviewed By: ngraham

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D20048
parent c4804df3
......@@ -18,27 +18,18 @@
*/
import QtQuick 2.0
import QtQuick.Controls 1.0 as QtControls
import org.kde.kquickcontrols 2.0 as KQuickControls
//We need units from it
import org.kde.plasma.core 2.0 as Plasmacore
import org.kde.kirigami 2.5 as Kirigami
Column {
Kirigami.FormLayout {
id: root
property alias cfg_Color: colorButton.color
twinFormLayouts: parentLayout
Row {
spacing: units.largeSpacing / 2
property alias cfg_Color: colorButton.color
QtControls.Label {
width: formAlignment - units.largeSpacing
anchors.verticalCenter: colorButton.verticalCenter
horizontalAlignment: Text.AlignRight
text: i18nd("plasma_wallpaper_org.kde.color", "Color:")
}
KQuickControls.ColorButton {
id: colorButton
dialogTitle: i18nd("plasma_wallpaper_org.kde.color", "Select Background Color")
}
KQuickControls.ColorButton {
id: colorButton
Kirigami.FormData.label: i18nd("plasma_wallpaper_org.kde.color", "Color:")
dialogTitle: i18nd("plasma_wallpaper_org.kde.color", "Select Background Color")
}
}
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