diff --git a/src/shell/qmlpackages/wallpaper/contents/ui/config.qml b/src/shell/qmlpackages/wallpaper/contents/ui/config.qml index 0bf7966a6..6d23766e1 100644 --- a/src/shell/qmlpackages/wallpaper/contents/ui/config.qml +++ b/src/shell/qmlpackages/wallpaper/contents/ui/config.qml @@ -23,6 +23,9 @@ Column { id: root property alias cfg_Color: picker.color + PlasmaComponents.Label { + text: "Color:" + } Column { id: picker @@ -68,7 +71,29 @@ Column { picker.color = Qt.hsla(picker.hue, picker.saturation, picker.lightness, 1) } } + Rectangle { + /*anchors { + left: parent.left + right: parent.right + }*/ + width: 200 + height: 30 + color: Qt.hsla(picker.hue, picker.saturation, picker.lightness, 1) + MouseArea { + anchors.fill: parent + onClicked: pickerRow.height = (pickerRow.height == 0 ? pickerRow.implicitHeight : 0) + } + } Row { + id: pickerRow + clip: true + height: 0 + Behavior on height { + NumberAnimation { + duration: 250 + easing.type: "InOutQuad" + } + } MouseArea { width: 255 height: 255 @@ -156,13 +181,5 @@ Column { } } } - Rectangle { - anchors { - left: parent.left - right: parent.right - } - height: 30 - color: Qt.hsla(picker.hue, picker.saturation, picker.lightness, 1) - } } } \ No newline at end of file