Files
yacreader/YACReaderLibrary/qml/InfoFavorites.qml
2026-02-19 18:06:32 +01:00

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
}
}