Files
scheincommander/LightControlWindow.qml

80 lines
1.7 KiB
QML
Raw Normal View History

2023-02-15 01:12:19 +01:00
import QtQuick
import QtQuick.Controls.Material
import QtQuick.Layouts
import QtQuick.Window
ApplicationWindow {
id: window
width: 1360
height: 768
title: qsTr("Hello World")
Material.theme: Material.Dark
Material.accent: Material.Purple
2023-02-20 00:44:44 +01:00
FontLoader {
id: materialIcons
2023-02-21 20:28:53 +01:00
source: "qrc:/scheincommander/ui-icons/MaterialIcons-Regular.ttf"
2023-02-20 00:44:44 +01:00
}
2023-02-15 01:12:19 +01:00
ColumnLayout {
2023-02-19 04:19:56 +01:00
anchors.left: parent.left
anchors.top: parent.top
anchors.right: parent.right
2023-02-20 00:36:55 +01:00
height: window.height - (lampRegistersPanel.active ? lampRegistersPanel.height : 0)
2023-02-15 01:12:19 +01:00
2023-02-18 15:54:41 +01:00
StatusBar {
2023-02-15 01:12:19 +01:00
Layout.fillWidth: true
Layout.preferredHeight: 75
}
2023-02-19 21:22:45 +01:00
AnimatedStackView {
2023-02-15 01:12:19 +01:00
id: stackview
Layout.fillWidth: true
Layout.fillHeight: true
2023-02-19 21:22:45 +01:00
initialItem: Component {
2023-02-15 01:12:19 +01:00
HomePage {
}
}
}
}
2023-02-19 21:22:45 +01:00
LampRegistersPanel {
2023-02-19 04:19:56 +01:00
id: lampRegistersPanel
2023-02-18 16:09:51 +01:00
z: 98
x: 0
height: 300
y: window.height - height
width: window.width
2023-02-19 21:22:45 +01:00
active: typeof stackview.currentItem.needsRegler == 'boolean' ? stackview.currentItem.needsRegler : false
2023-02-18 16:09:51 +01:00
}
2023-02-15 01:12:19 +01:00
Button {
id: closeButton
visible: inputPanel.active
anchors.bottom: inputPanel.top
anchors.right: parent.right
z: 99
//onClicked: inputPanel.active = false
// onClicked: InputContext.priv.hideInputPanel()
text: qsTr("Close keyboard?")
focus: false
}
2023-02-19 21:22:45 +01:00
AnimatedInputPanel {
2023-02-15 01:12:19 +01:00
id: inputPanel
2023-02-19 21:22:45 +01:00
2023-02-15 01:12:19 +01:00
z: 99
x: 0
y: window.height
width: window.width
}
}