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 r4bbit.eth
parent 93f9214aad
commit 496ad05247
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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