diff --git a/YACReaderLibrary/qml/InfoTick.qml b/YACReaderLibrary/qml/InfoTick.qml index 7685f4ec..f52e5402 100644 --- a/YACReaderLibrary/qml/InfoTick.qml +++ b/YACReaderLibrary/qml/InfoTick.qml @@ -4,15 +4,26 @@ 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: true ? "#e84852" : "#1c1c1c" + color: read ? "#e84852" : "#1c1c1c" } } +