From b14f52ff5876884076d9f6d1e6c147e40e9741fe Mon Sep 17 00:00:00 2001 From: uncor3 Date: Mon, 8 Jun 2026 21:01:44 +0000 Subject: [PATCH] refactor(StatusBar): restructure layout and improve button organization --- src/ui/StatusBar.qml | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/src/ui/StatusBar.qml b/src/ui/StatusBar.qml index 858d7f9..091001c 100644 --- a/src/ui/StatusBar.qml +++ b/src/ui/StatusBar.qml @@ -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 } + } } \ No newline at end of file