fix header buttons background color to match existing colors
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Mon, 12 Aug 2024 13:37:03 +0000 (15:37 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Mon, 12 Aug 2024 14:53:33 +0000 (16:53 +0200)
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 <matthieu.gallien@nextcloud.com>
src/gui/tray/HeaderButton.qml
src/gui/tray/Window.qml

index cb217db1cdcf0aaf9bcfcdc6c98d1b5324d9d916..a1280176d10c7ee299bf2a218c3ff0bd5a10d464 100644 (file)
@@ -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
     }
 
index f7d071e9a6328e77f6e5956a3516d8abbda3cd84..08d847176097ae2629fc7a4cda499ec8035703e0 100644 (file)
@@ -452,7 +452,7 @@ ApplicationWindow {
                     }\r
 \r
                     background: Rectangle {\r
-                        color: parent.hovered || parent.visualFocus ? Style.currentUserHeaderTextColor : palette.window\r
+                        color: currentAccountButton.hovered || currentAccountButton.visualFocus ? Style.currentUserHeaderTextColor : Style.currentUserHeaderColor\r
                         opacity: 0.2\r
                     }\r
 \r