mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-20 02:28:56 +00:00
fix(StatusLetterIdenticon): fix emoji positioning
The emoji wasn't centered correctly on Windows Fixes #5045
This commit is contained in:
parent
957680cb1c
commit
78ce7a6ac0
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user