diff --git a/LightGroup.qml b/LightGroup.qml index 465a67b..dc7ae29 100644 --- a/LightGroup.qml +++ b/LightGroup.qml @@ -20,8 +20,18 @@ Item { radius: 5 Label { - text: root.title anchors.centerIn: parent + text: root.title + } + + Image { + anchors.left: parent.left + anchors.top: parent.top + anchors.bottom: parent.bottom + anchors.margins: 5 + width: height + + source: "Off.png" } } @@ -39,9 +49,28 @@ Item { width: root.width GradientButton { + id: button + width: (root.width - buttonsRow.spacing * (root.lights.count - 1)) / root.lights.count height: width / 2 radius: 5 + + Column { + anchors.centerIn: parent + + Image { + height: button.height * 0.5 + width: height + anchors.horizontalCenter: parent.horizontalCenter + source: "lamp.png" + } + + Label { + anchors.horizontalCenter: parent.horizontalCenter + horizontalAlignment: Text.horizontalCenter + text: name + } + } } } } diff --git a/Off.png b/Off.png new file mode 100644 index 0000000..51c605d Binary files /dev/null and b/Off.png differ diff --git a/lamp.png b/lamp.png new file mode 100644 index 0000000..7abace3 Binary files /dev/null and b/lamp.png differ diff --git a/qml.qrc b/qml.qrc index f6d169e..eae51c0 100644 --- a/qml.qrc +++ b/qml.qrc @@ -9,5 +9,7 @@ LightsModel.qml LightGroup.qml GradientButton.qml + lamp.png + Off.png