fix: use SVGs in emoji popup

This commit is contained in:
Richard Ramos 2021-03-03 09:54:44 -04:00 committed by Iuri Matias
parent 017b570dd4
commit 6a51d80832
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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