From 8557c79e12cf2ddbf89d79742bcc7b03419fc6f8 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 10 Jul 2020 13:42:08 -0400 Subject: [PATCH] Improve z-ordering of account avatar elements Show presence orb in front of unread messages, which are shown in front of the loading spinner overlays --- src/gui/Base/HUserAvatar.qml | 2 +- src/gui/MainPane/AccountDelegate.qml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/Base/HUserAvatar.qml b/src/gui/Base/HUserAvatar.qml index a9d42f12..8fb91f31 100644 --- a/src/gui/Base/HUserAvatar.qml +++ b/src/gui/Base/HUserAvatar.qml @@ -59,7 +59,7 @@ HAvatar { anchors.bottomMargin: -diameter / 2 anchors.rightMargin: -diameter / 2 opacity: theme.controls.presence.opacity - z: 100 + z: 300 property int diameter: window.settings.compactMode ? diff --git a/src/gui/MainPane/AccountDelegate.qml b/src/gui/MainPane/AccountDelegate.qml index 19115502..fce8ef5f 100644 --- a/src/gui/MainPane/AccountDelegate.qml +++ b/src/gui/MainPane/AccountDelegate.qml @@ -35,7 +35,7 @@ HTile { HLoader { anchors.fill: parent - z: 9998 + z: 100 opacity: model.connecting ? 1 : 0 active: opacity > 0 @@ -57,7 +57,7 @@ HTile { id: totalMessageIndicator anchors.right: parent.right anchors.bottom: parent.bottom - z: 9999 + z: 200 indicatorTheme: theme.mainPane.accountBar.account.unreadIndicator