Closed alirezadizaji closed 1 year ago
I think this is probably a bit of an overkill for triggering darkmode on a schedule. A simpler approach would be checking the status in the browser instead of a cron job to update the config and re deploy. But I think keeping a static option for dark mode is fine for now.
Hi,
I implemented a feature to enable triggering dark mode automatically by developing a workflow. Beforehand, users should set a variable called
trigger_darkmode
, which by default isnull
meaning to disable this feature. If notnull
, then this variable should contain two keys:start_light
andstart_dark
, indicating the hour to start light and dark mode respectively. Both should have theHH
format.