mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 10:22:58 -05:00
28 lines
490 B
QML
28 lines
490 B
QML
import QtQuick
|
|
|
|
import QtQuick.Controls.impl
|
|
|
|
Item {
|
|
width: 20
|
|
height: 20
|
|
|
|
property bool active
|
|
|
|
signal activeChangedByUser(bool active)
|
|
|
|
MouseArea {
|
|
anchors.fill: favorites_button_compact
|
|
onClicked: {
|
|
activeChangedByUser(!active);
|
|
}
|
|
}
|
|
|
|
ColorImage {
|
|
anchors.centerIn: parent
|
|
id: favorites_button_compact
|
|
source: "info-favorites.svg"
|
|
color: active ? favCheckedColor : favUncheckedColor
|
|
}
|
|
}
|
|
|