From a3a5b613aeabc90e0eaa63430b46ac217c049a2c Mon Sep 17 00:00:00 2001 From: casper Date: Tue, 1 Mar 2022 12:09:27 +0100 Subject: [PATCH] Style menu bar according to theme CURA-8688 --- resources/qml/MainWindow/ApplicationMenu.qml | 22 +++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/resources/qml/MainWindow/ApplicationMenu.qml b/resources/qml/MainWindow/ApplicationMenu.qml index 0345e6dda5..6792690328 100644 --- a/resources/qml/MainWindow/ApplicationMenu.qml +++ b/resources/qml/MainWindow/ApplicationMenu.qml @@ -21,7 +21,27 @@ Item id: applicationMenu width: parent.width height: UM.Theme.getSize("context_menu").height - background: Rectangle {} + + background: Rectangle { + color: UM.Theme.getColor("background_1") + } + + delegate: MenuBarItem + { + id: menuBarItem + + contentItem: UM.Label + { + text: menuBarItem.text + horizontalAlignment: Text.AlignLeft + verticalAlignment: Text.AlignVCenter + } + + background: Rectangle + { + color: menuBarItem.highlighted ? UM.Theme.getColor("background_2") : "transparent" + } + } FileMenu {} EditMenu {}