mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 23:09:26 -05:00
29 lines
732 B
QML
29 lines
732 B
QML
import QtQuick
|
|
import Quickshell
|
|
import qs
|
|
import qs.services
|
|
import qs.modules.common
|
|
import qs.modules.common.functions
|
|
import qs.modules.common.widgets
|
|
|
|
QuickToggleModel {
|
|
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.temperatureActive
|
|
icon: auto ? "night_sight_auto" : "bedtime"
|
|
|
|
mainAction: () => {
|
|
Hyprsunset.toggleTemperature()
|
|
}
|
|
hasMenu: true
|
|
|
|
Component.onCompleted: {
|
|
Hyprsunset.fetchState()
|
|
}
|
|
|
|
tooltipText: Translation.tr("Night Light | Right-click to configure")
|
|
}
|