summaryrefslogtreecommitdiffstats
path: root/HomeScreenNG/qml/MediaArea.qml
diff options
context:
space:
mode:
Diffstat (limited to 'HomeScreenNG/qml/MediaArea.qml')
-rw-r--r--HomeScreenNG/qml/MediaArea.qml40
1 files changed, 40 insertions, 0 deletions
diff --git a/HomeScreenNG/qml/MediaArea.qml b/HomeScreenNG/qml/MediaArea.qml
new file mode 100644
index 0000000..16ceb27
--- /dev/null
+++ b/HomeScreenNG/qml/MediaArea.qml
@@ -0,0 +1,40 @@
+import QtQuick 2.7
+import QtQuick.Controls 2.0
+
+StackView {
+ id: root
+ width: 1080
+ height: 215
+
+ initialItem: blank
+
+ Component {
+ id: blank
+ MediaAreaBlank {
+ MouseArea {
+ anchors.fill: parent
+ onClicked: root.push(mouse.x < 540 ? music : radio)
+ }
+ }
+ }
+
+ Component {
+ id: music
+ MediaAreaMusic {
+ MouseArea {
+ anchors.fill: parent
+ onClicked: root.pop()
+ }
+ }
+ }
+
+ Component {
+ id: radio
+ MediaAreaRadio {
+ MouseArea {
+ anchors.fill: parent
+ onClicked: root.pop()
+ }
+ }
+ }
+}