From c39e94ef6f2b8d68aa308b675eca4f0be259305b Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Mon, 12 Aug 2024 15:37:03 +0200 Subject: [PATCH] fix header buttons background color to match existing colors the bckground of buttons on teh top bar of main dialog had a wrong color not matching the top bar background color Signed-off-by: Matthieu Gallien --- src/gui/tray/HeaderButton.qml | 2 +- src/gui/tray/Window.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/tray/HeaderButton.qml b/src/gui/tray/HeaderButton.qml index cb217db1cdcf0..a1280176d10c7 100644 --- a/src/gui/tray/HeaderButton.qml +++ b/src/gui/tray/HeaderButton.qml @@ -38,7 +38,7 @@ Button { Layout.preferredHeight: Style.trayWindowHeaderHeight background: Rectangle { - color: root.hovered || root.visualFocus ? Style.currentUserHeaderTextColor : palette.base + color: root.hovered || root.visualFocus ? Style.currentUserHeaderTextColor : Style.currentUserHeaderColor opacity: 0.2 } diff --git a/src/gui/tray/Window.qml b/src/gui/tray/Window.qml index f7d071e9a6328..08d847176097a 100644 --- a/src/gui/tray/Window.qml +++ b/src/gui/tray/Window.qml @@ -452,7 +452,7 @@ ApplicationWindow { } background: Rectangle { - color: parent.hovered || parent.visualFocus ? Style.currentUserHeaderTextColor : palette.window + color: currentAccountButton.hovered || currentAccountButton.visualFocus ? Style.currentUserHeaderTextColor : Style.currentUserHeaderColor opacity: 0.2 }