refactor(StatusBar): restructure layout and improve button organization

This commit is contained in:
uncor3
2026-06-08 21:01:44 +00:00
parent 693538b699
commit b14f52ff58
+32 -3
View File
@@ -6,8 +6,37 @@ import "." as App
Item {
Layout.fillWidth: true
Layout.preferredHeight: 28
Label {
text : qsTr("iDescriptor: %1 device(s) connected").arg(App.DeviceContext.devices.count)
color: "red"
RowLayout {
anchors.fill: parent
spacing: 12
Label {
text : qsTr("iDescriptor: %1 device(s) connected").arg(App.DeviceContext.devices.count)
color: "red"
}
Button {
icon.source: "qrc:/resources/icons/lets-icons_horizontal-down-left-main-light.svg"
onClicked: {
App.DeviceContext.showWelcomePage = !App.DeviceContext.showWelcomePage
}
background: Rectangle {
color: "transparent"
}
}
Button {
id: myButton
icon.source: "qrc:/resources/icons/uim_process.svg"
onClicked: {
var globalPos = myButton.mapToGlobal(0, 0)
StatusWindow.toggle(Window.window,globalPos)
}
background: Rectangle {
color: "transparent"
}
}
Item { Layout.fillWidth: true }
}
}