Skip to content

Commit

Permalink
Do not load caret on current user button if the button had a non-null…
Browse files Browse the repository at this point in the history
… indicator

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Nov 21, 2024
1 parent 330483c commit 362d3d9
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions src/gui/tray/MainWindow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -478,16 +478,19 @@ ApplicationWindow {
}
}

Image {
Layout.alignment: Qt.AlignRight
verticalAlignment: Qt.AlignCenter
horizontalAlignment: Qt.AlignRight
Layout.leftMargin: Style.accountDropDownCaretMargin
source: "image://svgimage-custom-color/caret-down.svg/" + palette.windowText
sourceSize.width: Style.accountDropDownCaretSize
sourceSize.height: Style.accountDropDownCaretSize
Accessible.role: Accessible.PopupMenu
Accessible.name: qsTr("Account switcher and settings menu")
Loader {
active: currentAccountButton.indicator === null
sourceComponent: Image {
Layout.alignment: Qt.AlignRight
verticalAlignment: Qt.AlignCenter
horizontalAlignment: Qt.AlignRight
Layout.leftMargin: Style.accountDropDownCaretMargin
source: "image://svgimage-custom-color/caret-down.svg/" + palette.windowText
sourceSize.width: Style.accountDropDownCaretSize
sourceSize.height: Style.accountDropDownCaretSize
Accessible.role: Accessible.PopupMenu
Accessible.name: qsTr("Account switcher and settings menu")
}
}
}
}
Expand Down

0 comments on commit 362d3d9

Please sign in to comment.