mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 04:55:48 +03:00
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:
parent
a235b9379d
commit
0f689fd255
2 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue