From a7702a5260d9f6ed3be38f9ca52a359a65297216 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 10 Jul 2020 13:38:18 -0400 Subject: [PATCH] Add borderWidth presence theme property --- src/gui/Base/HUserAvatar.qml | 2 +- src/themes/Glass.qpl | 1 + src/themes/Midnight.qpl | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/Base/HUserAvatar.qml b/src/gui/Base/HUserAvatar.qml index eca7e78c..a9d42f12 100644 --- a/src/gui/Base/HUserAvatar.qml +++ b/src/gui/Base/HUserAvatar.qml @@ -84,7 +84,7 @@ HAvatar { theme.controls.presence.offline border.color: theme.controls.presence.border - border.width: Math.ceil(diameter / 10) + border.width: theme.controls.presence.borderWidth Behavior on color { HColorAnimation {} } Behavior on opacity { HNumberAnimation {} } diff --git a/src/themes/Glass.qpl b/src/themes/Glass.qpl index 3a6709b2..ea166049 100644 --- a/src/themes/Glass.qpl +++ b/src/themes/Glass.qpl @@ -272,6 +272,7 @@ controls: color unavailable: colors.middleBackground color offline: hsluv(0, 0, 60, 1) color border: "black" + int borderWidth: 2 * uiScale real opacity: 1.0 real radius: 6.0 * uiScale diff --git a/src/themes/Midnight.qpl b/src/themes/Midnight.qpl index 7ac0d09c..41eb16d6 100644 --- a/src/themes/Midnight.qpl +++ b/src/themes/Midnight.qpl @@ -278,6 +278,7 @@ controls: color unavailable: colors.middleBackground color offline: hsluv(0, 0, 60, 1) color border: "black" + int borderWidth: 2 * uiScale real opacity: 1.0 real radius: 6.0 * uiScale