mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 07:22:50 -05:00
gamma: display automation state in UI
This commit is contained in:
@@ -41,6 +41,18 @@ Singleton {
|
||||
property bool automationAvailable: false
|
||||
property bool gammaControlAvailable: false
|
||||
|
||||
property var gammaState: ({})
|
||||
property int gammaCurrentTemp: gammaState?.currentTemp ?? 0
|
||||
property string gammaNextTransition: gammaState?.nextTransition ?? ""
|
||||
property string gammaSunriseTime: gammaState?.sunriseTime ?? ""
|
||||
property string gammaSunsetTime: gammaState?.sunsetTime ?? ""
|
||||
property string gammaDawnTime: gammaState?.dawnTime ?? ""
|
||||
property string gammaNightTime: gammaState?.nightTime ?? ""
|
||||
property bool gammaIsDay: gammaState?.isDay ?? true
|
||||
property real gammaSunPosition: gammaState?.sunPosition ?? 0
|
||||
property int gammaLowTemp: gammaState?.config?.LowTemp ?? 0
|
||||
property int gammaHighTemp: gammaState?.config?.HighTemp ?? 0
|
||||
|
||||
function markDeviceUserControlled(deviceId) {
|
||||
const newControlled = Object.assign({}, userControlledDevices);
|
||||
newControlled[deviceId] = Date.now();
|
||||
@@ -809,6 +821,10 @@ Singleton {
|
||||
osdSuppressTimer.restart();
|
||||
}
|
||||
}
|
||||
|
||||
function onGammaStateUpdate(data) {
|
||||
root.gammaState = data;
|
||||
}
|
||||
}
|
||||
|
||||
// Session Data Connections
|
||||
|
||||
Reference in New Issue
Block a user