use SVGimage for emojis
This commit is contained in:
parent
4c2e50ae47
commit
49e76d17bf
|
@ -2,6 +2,7 @@ import QtQuick 2.13
|
|||
import QtQuick.Controls 2.13
|
||||
import QtGraphicalEffects 1.13
|
||||
import "../../../../imports"
|
||||
import "../../../../shared"
|
||||
import "../components"
|
||||
|
||||
Item {
|
||||
|
@ -27,10 +28,10 @@ Item {
|
|||
color: parent.enabled ? Style.current.blue : Style.current.grey
|
||||
radius: 50
|
||||
}
|
||||
Image {
|
||||
SVGImage {
|
||||
source: "../../../img/arrowUp.svg"
|
||||
width: 12
|
||||
fillMode: Image.PreserveAspectFit
|
||||
// fillMode: Image.PreserveAspectFit
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
|
@ -48,12 +49,12 @@ Item {
|
|||
radius: Style.current.radius
|
||||
color: hovered ? Style.current.lightBlue : Style.current.transparent
|
||||
|
||||
Image {
|
||||
SVGImage {
|
||||
id: emojiIcon
|
||||
visible: txtData.length == 0
|
||||
width: 20
|
||||
height: 20
|
||||
fillMode: Image.PreserveAspectFit
|
||||
// fillMode: Image.PreserveAspectFit
|
||||
source: "../../../img/emojiBtn.svg"
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
|
|
|
@ -72,11 +72,11 @@ Popup {
|
|||
anchors.fill: parent
|
||||
anchors.topMargin: emojiGrid.imageMargin
|
||||
anchors.leftMargin: emojiGrid.imageMargin
|
||||
Image {
|
||||
SVGImage {
|
||||
width: emojiGrid.imageWidth
|
||||
height: emojiGrid.imageWidth
|
||||
source: "../../../../imports/twemoji/26x26/" + filename
|
||||
fillMode: Image.PreserveAspectFit
|
||||
// fillMode: Image.PreserveAspectFit
|
||||
MouseArea {
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
anchors.fill: parent
|
||||
|
|
Loading…
Reference in New Issue