mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-19 04:08:48 +00:00
28 lines
669 B
QML
28 lines
669 B
QML
import QtQuick
|
|
import qs.modules.common
|
|
import qs.modules.common.widgets
|
|
import qs
|
|
import qs.services
|
|
import Quickshell.Io
|
|
|
|
QuickToggleButton {
|
|
id: nightLightButton
|
|
property bool enabled: Hyprsunset.active
|
|
toggled: enabled
|
|
buttonIcon: Config.options.light.night.automatic ? "night_sight_auto" : "bedtime"
|
|
onClicked: {
|
|
Hyprsunset.toggle()
|
|
}
|
|
|
|
altAction: () => {
|
|
Config.options.light.night.automatic = !Config.options.light.night.automatic
|
|
}
|
|
|
|
Component.onCompleted: {
|
|
Hyprsunset.fetchState()
|
|
}
|
|
|
|
StyledToolTip {
|
|
content: Translation.tr("Night Light | Right-click to toggle Auto mode")
|
|
}
|
|
}
|