From 164f09c9395ed812b9044c5c7e11fc94d0fa9211 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 6 Sep 2019 16:14:39 -0400 Subject: [PATCH] Add theme property to control hovered avatar size --- src/qml/Base/HAvatar.qml | 2 +- src/themes/Default.qpl | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/qml/Base/HAvatar.qml b/src/qml/Base/HAvatar.qml index af768b6d..36f5f5c8 100644 --- a/src/qml/Base/HAvatar.qml +++ b/src/qml/Base/HAvatar.qml @@ -58,7 +58,7 @@ Rectangle { width: Math.min( mainUI.width / 1.25, mainUI.height / 1.25, - 192 + background.border.width * 2 + theme.controls.avatar.hoveredSize + background.border.width * 2 ) height: width delay: 1000 diff --git a/src/themes/Default.qpl b/src/themes/Default.qpl index 85a74c04..67a86295 100644 --- a/src/themes/Default.qpl +++ b/src/themes/Default.qpl @@ -172,8 +172,9 @@ controls: color foreground: colors.accentBackground avatar: - int size: baseElementsHeight - int radius: theme.radius + int size: baseElementsHeight + int radius: theme.radius + int hoveredSize: 192 background: int saturation: colors.saturation + 10