Skip to content

Commit

Permalink
Remove background hover customization from UserLine.
Browse files Browse the repository at this point in the history
Signed-off-by: Camila Ayres <[email protected]>
  • Loading branch information
camilasan committed Sep 3, 2024
1 parent 090670e commit 5ab462b
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions src/gui/tray/UserLine.qml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ AbstractButton {
height: width
anchors.bottom: accountAvatar.bottom
anchors.right: accountAvatar.right
color: userLine.hovered || userLine.visualFocus ? "#f6f6f6" : "white"
radius: width*0.5
}

Expand Down Expand Up @@ -149,7 +148,7 @@ AbstractButton {

Image {
anchors.fill: parent
source: "image://svgimage-custom-color/more.svg" + "/" + palette.buttonText
source: "image://svgimage-custom-color/more.svg/"
fillMode: Image.PreserveAspectFit
}

Expand All @@ -175,16 +174,6 @@ AbstractButton {
accountMenu.close()
}

background: Item {
height: parent.height
width: parent.menu.width
Rectangle {
anchors.fill: parent
anchors.margins: 1
color: parent.parent.hovered ? palette.highlight : palette.window
}
}

Accessible.role: Accessible.Button
Accessible.name: model.isConnected ? qsTr("Log out") : qsTr("Log in")

Expand All @@ -208,16 +197,6 @@ AbstractButton {
accountMenu.close()
}

background: Item {
height: parent.height
width: parent.menu.width
Rectangle {
anchors.fill: parent
anchors.margins: 1
color: parent.parent.hovered ? palette.highlight : palette.window
}
}

Accessible.role: Accessible.Button
Accessible.name: text
Accessible.onPressAction: removeAccountButton.clicked()
Expand Down

0 comments on commit 5ab462b

Please sign in to comment.