From 5248b59a145d537d13eb7ae562e7fa8aa8fdc623 Mon Sep 17 00:00:00 2001 From: Rello Date: Fri, 5 Sep 2025 09:17:19 +0700 Subject: [PATCH] Fix layout and color for CurrentAccountHeaderButton Signed-off-by: Rello --- src/gui/tray/CurrentAccountHeaderButton.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/tray/CurrentAccountHeaderButton.qml b/src/gui/tray/CurrentAccountHeaderButton.qml index b320098f73..8803992679 100644 --- a/src/gui/tray/CurrentAccountHeaderButton.qml +++ b/src/gui/tray/CurrentAccountHeaderButton.qml @@ -162,9 +162,9 @@ Button { && UserModel.currentUser.serverHasUserStatus && UserModel.currentUser.status !== UserStatus.Invisible && UserModel.currentUser.status !== UserStatus.Offline - width: Style.accountAvatarStateIndicatorSize + + Style.trayFolderStatusIndicatorSizeOffset + width: Style.accountAvatarStateIndicatorSize + Style.trayFolderStatusIndicatorSizeOffset height: width - color: root.parentBackgroundColor + color: "white" anchors.bottom: currentAccountAvatar.bottom anchors.right: currentAccountAvatar.right radius: width * Style.trayFolderStatusIndicatorRadiusFactor @@ -178,8 +178,8 @@ Button { && UserModel.currentUser.status !== UserStatus.Offline source: UserModel.currentUser ? UserModel.currentUser.statusIcon : "" cache: false - x: currentAccountStatusIndicatorBackground.x + 1 - y: currentAccountStatusIndicatorBackground.y + 1 + x: currentAccountStatusIndicatorBackground.x + Style.trayFolderStatusIndicatorSizeOffset / 2 + y: currentAccountStatusIndicatorBackground.y + Style.trayFolderStatusIndicatorSizeOffset / 2 sourceSize.width: Style.accountAvatarStateIndicatorSize sourceSize.height: Style.accountAvatarStateIndicatorSize