Skip to content

Commit

Permalink
Merge pull request #2716 from nextcloud/backport/2698/stable-3.1
Browse files Browse the repository at this point in the history
[stable-3.1] Use the icon color property to color the icons in the tray window header.
  • Loading branch information
Camila authored Dec 15, 2020
2 parents 583c496 + 3fa796e commit c85d124
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/gui/tray/HeaderButton.qml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Button {

icon.width: Style.headerButtonIconSize
icon.height: Style.headerButtonIconSize
icon.color: "transparent"
icon.color: Style.ncTextColor

Layout.alignment: Qt.AlignRight
Layout.preferredWidth: Style.trayWindowHeaderHeight
Expand Down
20 changes: 13 additions & 7 deletions src/gui/tray/Window.qml
Original file line number Diff line number Diff line change
Expand Up @@ -388,13 +388,19 @@ Window {
}
}

Image {
Layout.alignment: Qt.AlignRight
verticalAlignment: Qt.AlignCenter
Layout.margins: Style.accountDropDownCaretMargin
source: "qrc:///client/theme/white/caret-down.svg"
sourceSize.width: Style.accountDropDownCaretSize
sourceSize.height: Style.accountDropDownCaretSize
ColorOverlay {
cached: true
color: Style.ncTextColor
width: source.width
height: source.height
source: Image {
Layout.alignment: Qt.AlignRight
verticalAlignment: Qt.AlignCenter
Layout.margins: Style.accountDropDownCaretMargin
source: "qrc:///client/theme/white/caret-down.svg"
sourceSize.width: Style.accountDropDownCaretSize
sourceSize.height: Style.accountDropDownCaretSize
}
}
}
}
Expand Down

0 comments on commit c85d124

Please sign in to comment.