mirror of
https://github.com/283375/arcaea-offline-pyside-ui.git
synced 2025-11-07 04:52:15 +00:00
63 lines
1.2 KiB
QML
63 lines
1.2 KiB
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
|
|
import internal.ui.vm 1.0
|
|
|
|
Page {
|
|
id: root
|
|
|
|
property alias b30: vm.b30
|
|
|
|
OverviewViewModel {
|
|
id: vm
|
|
}
|
|
|
|
component Display: RowLayout {
|
|
required property string label
|
|
required property string value
|
|
|
|
spacing: 5
|
|
|
|
// implicitHeight: valueText.implicitHeight
|
|
|
|
Label {
|
|
text: parent.label
|
|
Layout.alignment: Qt.AlignBaseline
|
|
}
|
|
|
|
Label {
|
|
id: valueText
|
|
|
|
text: parent.value
|
|
font.pointSize: 18
|
|
Layout.alignment: Qt.AlignBaseline
|
|
}
|
|
}
|
|
|
|
RowLayout {
|
|
ColumnLayout {
|
|
Layout.fillWidth: true
|
|
Layout.alignment: Qt.AlignBottom
|
|
|
|
Display {
|
|
label: 'B30'
|
|
value: root.b30 >= 0 ? root.b30.toFixed(3) : 'N/A'
|
|
}
|
|
|
|
Display {
|
|
label: 'R10'
|
|
value: 'Not supported'
|
|
}
|
|
}
|
|
|
|
Button {
|
|
Layout.alignment: Qt.AlignBottom
|
|
|
|
// TODO: icon
|
|
text: 'Reload'
|
|
onClicked: vm.reload()
|
|
}
|
|
}
|
|
}
|