mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-14 17:52:10 -04:00
gamma: add ipc call night getTemperature and enrich status function
fixes #1778
This commit is contained in:
@@ -1051,7 +1051,19 @@ Singleton {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function status(): string {
|
function status(): string {
|
||||||
return root.nightModeEnabled ? "Night mode is enabled" : "Night mode is disabled";
|
const parts = ["Night mode is " + (root.nightModeEnabled ? "enabled" : "disabled")];
|
||||||
|
parts.push("Temperature: " + SessionData.nightModeTemperature + "K");
|
||||||
|
if (SessionData.nightModeAutoEnabled) {
|
||||||
|
parts.push("Automation: " + SessionData.nightModeAutoMode);
|
||||||
|
parts.push("Day temperature: " + SessionData.nightModeHighTemperature + "K");
|
||||||
|
}
|
||||||
|
if (DisplayService.gammaCurrentTemp > 0)
|
||||||
|
parts.push("Current: " + DisplayService.gammaCurrentTemp + "K");
|
||||||
|
return parts.join("\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
function getTemperature(): string {
|
||||||
|
return SessionData.nightModeTemperature.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
function temperature(value: string): string {
|
function temperature(value: string): string {
|
||||||
|
|||||||
Reference in New Issue
Block a user