From 3eeb6ab9107f82158ac1bd8d27b1a5100627f3af5c219dc3ad5c7e1bd38e207b Mon Sep 17 00:00:00 2001 From: linuxero Date: Tue, 4 Feb 2025 10:49:14 +0100 Subject: [PATCH] TopBar modified to style buttons --- Gui/TopBar.qml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Gui/TopBar.qml b/Gui/TopBar.qml index d2d0495..0ec4e88 100644 --- a/Gui/TopBar.qml +++ b/Gui/TopBar.qml @@ -25,6 +25,7 @@ RowLayout Layout.margins: 3 background: Rectangle { + id: dashiBackie border.width: dashBoard.activeFocus ? 2 : 1 border.color: "#888" radius: 4 @@ -37,6 +38,11 @@ RowLayout onClicked: { appLoader.source = "Dashboard.qml" + dashiBackie.border.width = 2 + kundiBackie.border.width = 1 + mitoBackie.border.width = 1 + invoBackie.border.width = 1 + objBackie.border.width = 1 } } @@ -49,6 +55,7 @@ RowLayout Layout.margins: 3 background: Rectangle { + id: kundiBackie border.width: kunden.activeFocus ? 2 : 1 border.color: "#888" radius: 4 @@ -62,6 +69,11 @@ RowLayout { // TODO: here we should call the model appLoader.source = "CustomerTable.qml" + kundiBackie.border.width = 2 + dashiBackie.border.width = 1 + mitoBackie.border.width = 1 + invoBackie.border.width = 1 + objBackie.border.width = 1 } } @@ -74,6 +86,7 @@ RowLayout Layout.margins: 3 background: Rectangle { + id: objBackie border.width: objekt.activeFocus ? 2 : 1 border.color: "#888" radius: 4 @@ -86,6 +99,11 @@ RowLayout onClicked: { appLoader.source = "ObjectTable.qml" + objBackie.border.width = 2 + dashiBackie.border.width = 1 + kundiBackie.border.width = 1 + mitoBackie.border.width = 1 + invoBackie.border.width = 1 } } @@ -99,6 +117,7 @@ RowLayout Layout.margins: 3 background: Rectangle { + id: mitoBackie border.width: mitarbeiter.activeFocus ? 2 : 1 border.color: "#888" radius: 4 @@ -111,6 +130,11 @@ RowLayout onClicked: { appLoader.source = "EmployeeTable.qml" + mitoBackie.border.width = 2 + dashiBackie.border.width = 1 + kundiBackie.border.width = 1 + invoBackie.border.width = 1 + objBackie.border.width = 1 } } @@ -123,6 +147,7 @@ RowLayout Layout.margins: 3 background: Rectangle { + id: invoBackie border.width: abrechnung.activeFocus ? 2 : 1 border.color: "#888" radius: 4