fix(StatusLetterIdenticon): fix emoji positioning

The emoji wasn't centered correctly on Windows
Fixes #5045
This commit is contained in:
Jonathan Rainville 2022-03-21 16:50:53 -04:00 committed by Michał Cieślak
parent 957680cb1c
commit 78ce7a6ac0
3 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ Rectangle {
width: 24
height: 24
color: Theme.palette.miscColor5
letterSize: emoji ? 10 : 15
letterSize: emoji ? 11 : 15
emoji: ""
emojiSize: Emoji.size.verySmall
charactersLen: 1

View File

@ -21,11 +21,11 @@ Rectangle {
StatusBaseText {
id: identiconText
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
anchors.alignWhenCentered: false
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
width: parent.width
height: parent.height
font.weight: Font.Bold
font.pixelSize: root.letterSize

View File

@ -58,7 +58,7 @@ Item {
name: ""
color: Theme.palette.baseColor1
emoji: ""
letterSize: 14
letterSize: emoji ? 11 : 14
background: StatusIconBackgroundSettings {
width: 30
height: 30