yacreader/YACReaderLibrary/qml/InfoTick6.qml
Luis Ángel San Martín bc35b5d65f Fix QML in Qt6
This means having two versions of everything, the idea is to migrate to Qt6, test that everything works fine and drop Qt5 as soon as possible.
2022-09-12 19:24:56 +02:00

29 lines
491 B
QML

import QtQuick 2.15
import Qt5Compat.GraphicalEffects
Item {
property bool read
signal readChangedByUser(bool read)
MouseArea {
anchors.fill: read_compact
onClicked: {
readChangedByUser(!read);
}
}
Image {
id: read_compact
source: "info-tick.png"
}
ColorOverlay {
anchors.fill: read_compact
source: read_compact
color: read ? readTickCheckedColor : readTickUncheckedColor
}
}