fix: make emoijs work again

This commit is contained in:
Pascal Precht 2021-10-29 13:58:07 +02:00 committed by Iuri Matias
parent 63963039eb
commit d814484c72
3 changed files with 3 additions and 2 deletions

View File

@ -13,6 +13,7 @@ import shared.panels 1.0
//TODO remove this dependency
import "../../../app/AppLayouts/Chat/panels"
import "./emojiList.js" as EmojiJSON
import StatusQ.Core.Theme 0.1
import StatusQ.Components 0.1

View File

@ -93,7 +93,7 @@ Item {
width: emojiSection.imageWidth
height: emojiSection.imageWidth
//TODO EMOJI SVG?
source: "../../imports/assets/twemoji/svg/" + modelData.filename + "?22x22"
source: "../../assets/twemoji/svg/" + modelData.filename + "?22x22"
MouseArea {
cursorShape: Qt.PointingHandCursor

View File

@ -11,7 +11,7 @@ StatusInputListPopup {
id: emojiSuggestions
getImageSource: function (modelData) {
return `../../imports/assets/twemoji/72x72/${modelData.unicode}.png`
return `../../assets/twemoji/72x72/${modelData.unicode}.png`
}
getText: function (modelData) {
return modelData.shortname