fix: define declared method + insert new bar entries to config file list + rename Hyprsunset -> Nightlight

This commit is contained in:
2026-09-30 14:26:56 +02:00
parent 133d453f6f
commit 10d763cfe5
23 changed files with 1445 additions and 1184 deletions
+39
View File
@@ -0,0 +1,39 @@
pragma Singleton
import Quickshell
import QtQuick
import ZShell.Services
import ZShell.Config
Singleton {
id: root
readonly property bool enabled: service.enabled
readonly property int end: Config.general.color.scheduleHyprsunsetEnd
property bool manualToggle: false
readonly property int start: Config.general.color.scheduleHyprsunsetStart
readonly property int temp: Config.general.color.hyprsunsetTemp
function checkStartup(): void {
if (!Config.general.color.scheduleHyprsunset)
return;
service.apply();
}
function toggleNightLight(): void {
service.manualToggle = true;
service.toggle();
}
NightlightManager {
id: service
activeAuto: Config.general.color.scheduleHyprsunset
endTime: root.end
startTime: root.start
temp: root.temp
fadeDuration: Config.general.color.nativeFadeDuration / 1000
useNativeNightlight: Config.general.color.useNativeNightlight
}
}