mirror of
https://github.com/YACReader/yacreader
synced 2025-05-25 18:00:46 -04:00
29 lines
487 B
QML
29 lines
487 B
QML
import QtQuick 2.15
|
|
|
|
import QtGraphicalEffects 1.0
|
|
|
|
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
|
|
}
|
|
}
|