import qs.modules.common import qs.modules.common.widgets import qs.services import QtQuick import Quickshell AndroidQuickToggleButton { id: root property bool auto: Config.options.light.night.automatic name: Translation.tr("Night Light") statusText: (auto ? Translation.tr("Auto, ") : "") + (toggled ? Translation.tr("Active") : Translation.tr("Inactive")) toggled: Hyprsunset.active buttonIcon: auto ? "night_sight_auto" : "bedtime" onClicked: { Hyprsunset.toggle() } altAction: () => { root.openMenu() } Component.onCompleted: { Hyprsunset.fetchState() } StyledToolTip { text: Translation.tr("Night Light | Right-click to configure") } }