From bff34a2e211d61d13463781f32c4de6b61281510 Mon Sep 17 00:00:00 2001 From: Khushboo Mehta Date: Tue, 17 Aug 2021 18:46:44 +0200 Subject: [PATCH] feat(StatusLetterIdenticon): Expose the text component Aliased the text compoenent so that its color, text value can be set from outside --- ui/StatusQ/src/StatusQ/Components/StatusLetterIdenticon.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/StatusQ/src/StatusQ/Components/StatusLetterIdenticon.qml b/ui/StatusQ/src/StatusQ/Components/StatusLetterIdenticon.qml index 7a68badcbf..5c2be1dbde 100644 --- a/ui/StatusQ/src/StatusQ/Components/StatusLetterIdenticon.qml +++ b/ui/StatusQ/src/StatusQ/Components/StatusLetterIdenticon.qml @@ -5,6 +5,7 @@ import StatusQ.Core.Theme 0.1 Rectangle { id: statusLetterIdenticon + property alias identiconText: identiconText property string name property int letterSize: 21 @@ -14,6 +15,7 @@ Rectangle { radius: width / 2 StatusBaseText { + id: identiconText text: ((statusLetterIdenticon.name.charAt(0) === "#") || (statusLetterIdenticon.name.charAt(0) === "@") ? statusLetterIdenticon.name.charAt(1) : statusLetterIdenticon.name.charAt(0)).toUpperCase()