Fix colour of indicator outlines in tray header elements

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>

f bgc

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-11-19 11:51:20 +08:00
parent a235b9379d
commit 0f689fd255
No known key found for this signature in database
GPG key ID: C839200C384636B0
2 changed files with 4 additions and 0 deletions

View file

@ -400,6 +400,7 @@ ApplicationWindow {
&& UserModel.currentUser.serverHasUserStatus
width: Style.accountAvatarStateIndicatorSize + + Style.trayFolderStatusIndicatorSizeOffset
height: width
color: trayWindowHeaderBackground.color
anchors.bottom: currentAccountAvatar.bottom
anchors.right: currentAccountAvatar.right
radius: width * Style.trayFolderStatusIndicatorRadiusFactor
@ -501,6 +502,7 @@ ApplicationWindow {
visible: currentUser.hasLocalFolder
currentUser: UserModel.currentUser
parentBackgroundColor: trayWindowHeaderBackground.color
onClicked: openLocalFolderButton.userHasGroupFolders ? openLocalFolderButton.toggleMenuOpen() : UserModel.openCurrentAccountLocalFolder()

View file

@ -26,6 +26,7 @@ HeaderButton {
required property var currentUser
property bool userHasGroupFolders: currentUser.groupFolders.length > 0
property color parentBackgroundColor: "transparent"
function openMenu() {
foldersMenuLoader.openMenu()
@ -90,6 +91,7 @@ HeaderButton {
id: folderStateIndicatorBackground
width: Style.folderStateIndicatorSize + Style.trayFolderStatusIndicatorSizeOffset
height: width
color: root.parentBackgroundColor
anchors.centerIn: parent
radius: width * Style.trayFolderStatusIndicatorRadiusFactor
z: -2