Prepare player and settings, create branding
This commit is contained in:
70
Main.qml
70
Main.qml
@@ -1,5 +1,8 @@
|
||||
import QtQuick 6.8
|
||||
import QtQuick.Controls 6.8
|
||||
import QtQuick.Controls.Basic 6.8
|
||||
import QtQuick.Layouts 6.8
|
||||
|
||||
import QYRComponents 1.0
|
||||
|
||||
ApplicationWindow {
|
||||
@@ -7,52 +10,45 @@ ApplicationWindow {
|
||||
height: 800
|
||||
title: qsTr("Hello World")
|
||||
|
||||
header: Rectangle {
|
||||
color: Colors.surface1
|
||||
width: children.width
|
||||
height: children.height
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
anchors.margins: 10
|
||||
|
||||
RowLayout {
|
||||
anchors.fill: parent
|
||||
|
||||
Label {
|
||||
Layout.fillWidth: true
|
||||
heading: "h2"
|
||||
text: "QYouRadio"
|
||||
font.bold: true
|
||||
}
|
||||
|
||||
Button {
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
TabBar {
|
||||
id: tabbar
|
||||
Layout.fillWidth: true
|
||||
spacing: 10
|
||||
TabButton {
|
||||
text: qsTr("Autoradio")
|
||||
}
|
||||
|
||||
Button {
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
text: qsTr("Live Radio")
|
||||
TabButton {
|
||||
text: qsTr("Live Mix")
|
||||
}
|
||||
|
||||
Button {
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
TabButton {
|
||||
text: qsTr("Deep Bass")
|
||||
}
|
||||
TabButton {
|
||||
text: qsTr("Settings")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
StackLayout {
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
Layout.margins: 10
|
||||
|
||||
Button {
|
||||
text: qsTr("Settings")
|
||||
}
|
||||
|
||||
CheckBox {}
|
||||
|
||||
Slider {
|
||||
from: 0.0
|
||||
value: 0.5
|
||||
stepSize: 0.1
|
||||
to: 1.1
|
||||
currentIndex: tabbar.currentIndex
|
||||
ViewPlayer {
|
||||
title: qsTr("Autoradio")
|
||||
}
|
||||
ViewPlayer {
|
||||
title: qsTr("Live Radio")
|
||||
}
|
||||
ViewPlayer {
|
||||
title: qsTr("Deep Bass")
|
||||
}
|
||||
ViewSettings {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user