Remove background hover customization from UserLine.
authorCamila Ayres <hello@camilasan.com>
Tue, 3 Sep 2024 18:35:48 +0000 (20:35 +0200)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Fri, 6 Sep 2024 08:55:44 +0000 (10:55 +0200)
Signed-off-by: Camila Ayres <hello@camilasan.com>
src/gui/tray/UserLine.qml

index ead5ef7ac87b3c2e7767d11e03988af80b992797..ea2d222b1574d0beb0eeab33331f86cfcf730010 100644 (file)
@@ -62,7 +62,6 @@ AbstractButton {
                 height: width\r
                 anchors.bottom: accountAvatar.bottom\r
                 anchors.right: accountAvatar.right\r
-                color: userLine.hovered || userLine.visualFocus ? "#f6f6f6" : "white"\r
                 radius: width*0.5\r
             }\r
 \r
@@ -149,7 +148,7 @@ AbstractButton {
 \r
             Image {\r
                 anchors.fill: parent\r
-                source: "image://svgimage-custom-color/more.svg" + "/" + palette.buttonText\r
+                source: "image://svgimage-custom-color/more.svg/"\r
                 fillMode: Image.PreserveAspectFit\r
             }\r
 \r
@@ -175,16 +174,6 @@ AbstractButton {
                         accountMenu.close()\r
                     }\r
 \r
-                    background: Item {\r
-                        height: parent.height\r
-                        width: parent.menu.width\r
-                        Rectangle {\r
-                            anchors.fill: parent\r
-                            anchors.margins: 1\r
-                            color: parent.parent.hovered ? palette.highlight : palette.window\r
-                        }\r
-                    }\r
-\r
                     Accessible.role: Accessible.Button\r
                     Accessible.name: model.isConnected ? qsTr("Log out") : qsTr("Log in")\r
 \r
@@ -208,16 +197,6 @@ AbstractButton {
                         accountMenu.close()\r
                     }\r
 \r
-                    background: Item {\r
-                        height: parent.height\r
-                        width: parent.menu.width\r
-                        Rectangle {\r
-                            anchors.fill: parent\r
-                            anchors.margins: 1\r
-                            color: parent.parent.hovered ? palette.highlight : palette.window\r
-                        }\r
-                    }\r
-\r
                     Accessible.role: Accessible.Button\r
                     Accessible.name: text\r
                     Accessible.onPressAction: removeAccountButton.clicked()\r