2023-07-29 11:01:56 +02:00
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2023-06-29 20:31:59 +02:00
|
|
|
import QtQuick
|
2023-07-29 11:01:56 +02:00
|
|
|
import QtQuick.Layouts
|
2023-06-29 20:31:59 +02:00
|
|
|
import QtQuick.Controls
|
|
|
|
import QtQuick.Controls.Material
|
2023-11-03 12:44:54 +01:00
|
|
|
import ScreenPlayWallpaper
|
2023-06-29 20:31:59 +02:00
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
id: root
|
|
|
|
color: "#333333"
|
|
|
|
anchors.fill: parent
|
2023-07-29 11:01:56 +02:00
|
|
|
property int counter: 0
|
|
|
|
ColumnLayout {
|
2023-06-29 20:31:59 +02:00
|
|
|
anchors.centerIn: parent
|
2023-07-29 11:01:56 +02:00
|
|
|
Text {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
color: "white"
|
|
|
|
font.pointSize: 14
|
|
|
|
text: "🎉 Qml Button clicked: " + root.counter
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
}
|
|
|
|
Button {
|
|
|
|
text: "Click me!"
|
|
|
|
Layout.fillWidth: true
|
|
|
|
onClicked: root.counter++
|
|
|
|
}
|
2023-11-03 12:44:54 +01:00
|
|
|
TextField {
|
|
|
|
placeholderText: "Edit me"
|
|
|
|
}
|
|
|
|
Button {
|
|
|
|
text: "Exit"
|
|
|
|
onClicked: {
|
|
|
|
Qt.callLater(function () {
|
|
|
|
Wallpaper.terminate();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
2023-06-29 20:31:59 +02:00
|
|
|
}
|
|
|
|
}
|