nysh/src/widgets/caffeine/Caffeine.qml

17 lines
329 B
QML

import "../../base"
import "../../provider"
import QtQuick
import Quickshell.Widgets
BButton {
id: caffeine
onClicked: () => Inhibitor.toggle()
IconImage {
anchors.fill: parent
anchors.margins: 4
source: Inhibitor.active ? "root:assets/eye-open.svg" : "root:assets/eye-closed.svg"
}
}