Remove customizations for hover background from the user menu options.
authorCamila Ayres <hello@camilasan.com>
Tue, 3 Sep 2024 17:54:34 +0000 (19:54 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Fri, 6 Sep 2024 08:42:08 +0000 (10:42 +0200)
Signed-off-by: Camila Ayres <hello@camilasan.com>
src/gui/tray/Window.qml

index 7dfe5f9d12d9b57512b421cca7af4f1363fbf9ef..55bd53f6cf3054f0b1a72bd2e5f0524c1b3f452b 100644 (file)
@@ -319,16 +319,6 @@ ApplicationWindow {
                             hoverEnabled: true\r
                             visible: Systray.enableAddAccount\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 || parent.parent.visualFocus ? palette.highlight : palette.window\r
-                                }\r
-                            }\r
-\r
                             RowLayout {\r
                                 anchors.fill: parent\r
                                 spacing: 0\r
@@ -370,17 +360,6 @@ ApplicationWindow {
                             font.pixelSize: Style.topLinePixelSize\r
                             hoverEnabled: true\r
                             onClicked: Systray.syncIsPaused = !Systray.syncIsPaused\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 || parent.parent.visualFocus ? palette.highlight : palette.window\r
-                                }\r
-                            }\r
-\r
                             Accessible.role: Accessible.MenuItem\r
                             Accessible.name: Systray.syncIsPaused ? qsTr("Resume sync for all") : qsTr("Pause sync for all")\r
                             Accessible.onPressAction: syncPauseButton.clicked()\r
@@ -392,17 +371,6 @@ ApplicationWindow {
                             font.pixelSize: Style.topLinePixelSize\r
                             hoverEnabled: true\r
                             onClicked: Systray.openSettings()\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 || parent.parent.visualFocus ? palette.highlight : palette.window\r
-                                }\r
-                            }\r
-\r
                             Accessible.role: Accessible.MenuItem\r
                             Accessible.name: text\r
                             Accessible.onPressAction: settingsButton.clicked()\r
@@ -414,17 +382,6 @@ ApplicationWindow {
                             font.pixelSize: Style.topLinePixelSize\r
                             hoverEnabled: true\r
                             onClicked: Systray.shutdown()\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 || parent.parent.visualFocus ? palette.highlight : palette.window\r
-                                }\r
-                            }\r
-\r
                             Accessible.role: Accessible.MenuItem\r
                             Accessible.name: text\r
                             Accessible.onPressAction: exitButton.clicked()\r
@@ -668,15 +625,15 @@ ApplicationWindow {
                                     onTriggered: UserAppsModel.openAppUrl(appUrl)\r
                                     hoverEnabled: true\r
 \r
-                                    background: Item {\r
-                                        height: parent.height\r
-                                        width: parent.width\r
-                                        Rectangle {\r
-                                            anchors.fill: parent\r
-                                            anchors.margins: 1\r
-                                            color: parent.parent.hovered || parent.parent.visualFocus ? palette.highlight : palette.window\r
-                                        }\r
-                                    }\r
+                                    // background: Item {\r
+                                    //     height: parent.height\r
+                                    //     width: parent.width\r
+                                    //     Rectangle {\r
+                                    //         anchors.fill: parent\r
+                                    //         anchors.margins: 1\r
+                                    //         color: parent.parent.hovered || parent.parent.visualFocus ? palette.highlight : palette.window\r
+                                    //     }\r
+                                    // }\r
 \r
                                     Accessible.role: Accessible.MenuItem\r
                                     Accessible.name: qsTr("Open %1 in browser").arg(model.appName)\r