Skip to content

Commit

Permalink
Fix colour of indicator outlines in tray header elements
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>

f bgc

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Nov 21, 2024
1 parent f6e23aa commit 1b195df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/tray/MainWindow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -501,6 +502,7 @@ ApplicationWindow {

visible: currentUser.hasLocalFolder
currentUser: UserModel.currentUser
parentBackgroundColor: trayWindowHeaderBackground.color

onClicked: openLocalFolderButton.userHasGroupFolders ? openLocalFolderButton.toggleMenuOpen() : UserModel.openCurrentAccountLocalFolder()

Expand Down
2 changes: 2 additions & 0 deletions src/gui/tray/TrayFoldersMenuButton.qml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ HeaderButton {

required property var currentUser
property bool userHasGroupFolders: currentUser.groupFolders.length > 0
property color parentBackgroundColor: "transparent"

function openMenu() {
foldersMenuLoader.openMenu()
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1b195df

Please sign in to comment.