fix: use SVGs in emoji popup
This commit is contained in:
parent
017b570dd4
commit
6a51d80832
|
@ -76,7 +76,7 @@ Popup {
|
|||
categoryNames[emoji.category] = newCategories.length
|
||||
newCategories.push([])
|
||||
}
|
||||
newCategories[categoryNames[emoji.category]].push(Object.assign({}, emoji, {filename: emoji.unicode + '.png'}))
|
||||
newCategories[categoryNames[emoji.category]].push(Object.assign({}, emoji, {filename: emoji.unicode + '.svg'}))
|
||||
})
|
||||
|
||||
if (newCategories[categoryNames.recent].length === 0) {
|
||||
|
|
|
@ -90,7 +90,7 @@ Item {
|
|||
SVGImage {
|
||||
width: emojiSection.imageWidth
|
||||
height: emojiSection.imageWidth
|
||||
source: "../../imports/twemoji/72x72/" + modelData.filename
|
||||
source: "../../imports/twemoji/svg/" + modelData.filename + "?22x22"
|
||||
|
||||
MouseArea {
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
|
|
Loading…
Reference in New Issue