From 5073be1c0e9d2e8a1d442ae3d278ce5471a47080 Mon Sep 17 00:00:00 2001 From: Camila Ayres Date: Tue, 3 Sep 2024 19:54:34 +0200 Subject: [PATCH] Remove customizations for hover background from the user menu options. Signed-off-by: Camila Ayres --- src/gui/tray/Window.qml | 61 ++++++----------------------------------- 1 file changed, 9 insertions(+), 52 deletions(-) diff --git a/src/gui/tray/Window.qml b/src/gui/tray/Window.qml index 7dfe5f9d1..55bd53f6c 100644 --- a/src/gui/tray/Window.qml +++ b/src/gui/tray/Window.qml @@ -319,16 +319,6 @@ ApplicationWindow { hoverEnabled: true visible: Systray.enableAddAccount - background: Item { - height: parent.height - width: parent.menu.width - Rectangle { - anchors.fill: parent - anchors.margins: 1 - color: parent.parent.hovered || parent.parent.visualFocus ? palette.highlight : palette.window - } - } - RowLayout { anchors.fill: parent spacing: 0 @@ -370,17 +360,6 @@ ApplicationWindow { font.pixelSize: Style.topLinePixelSize hoverEnabled: true onClicked: Systray.syncIsPaused = !Systray.syncIsPaused - - background: Item { - height: parent.height - width: parent.menu.width - Rectangle { - anchors.fill: parent - anchors.margins: 1 - color: parent.parent.hovered || parent.parent.visualFocus ? palette.highlight : palette.window - } - } - Accessible.role: Accessible.MenuItem Accessible.name: Systray.syncIsPaused ? qsTr("Resume sync for all") : qsTr("Pause sync for all") Accessible.onPressAction: syncPauseButton.clicked() @@ -392,17 +371,6 @@ ApplicationWindow { font.pixelSize: Style.topLinePixelSize hoverEnabled: true onClicked: Systray.openSettings() - - background: Item { - height: parent.height - width: parent.menu.width - Rectangle { - anchors.fill: parent - anchors.margins: 1 - color: parent.parent.hovered || parent.parent.visualFocus ? palette.highlight : palette.window - } - } - Accessible.role: Accessible.MenuItem Accessible.name: text Accessible.onPressAction: settingsButton.clicked() @@ -414,17 +382,6 @@ ApplicationWindow { font.pixelSize: Style.topLinePixelSize hoverEnabled: true onClicked: Systray.shutdown() - - background: Item { - height: parent.height - width: parent.menu.width - Rectangle { - anchors.fill: parent - anchors.margins: 1 - color: parent.parent.hovered || parent.parent.visualFocus ? palette.highlight : palette.window - } - } - Accessible.role: Accessible.MenuItem Accessible.name: text Accessible.onPressAction: exitButton.clicked() @@ -668,15 +625,15 @@ ApplicationWindow { onTriggered: UserAppsModel.openAppUrl(appUrl) hoverEnabled: true - background: Item { - height: parent.height - width: parent.width - Rectangle { - anchors.fill: parent - anchors.margins: 1 - color: parent.parent.hovered || parent.parent.visualFocus ? palette.highlight : palette.window - } - } + // background: Item { + // height: parent.height + // width: parent.width + // Rectangle { + // anchors.fill: parent + // anchors.margins: 1 + // color: parent.parent.hovered || parent.parent.visualFocus ? palette.highlight : palette.window + // } + // } Accessible.role: Accessible.MenuItem Accessible.name: qsTr("Open %1 in browser").arg(model.appName) -- 2.30.2