- LIGHTING{t(locale, "adv.dpiIndicator")} + {powerOverview ? "POWER" : "LIGHTING"}{t(locale, "adv.dpiIndicator")} {t(locale, "adv.effect")} control.applyTeevolutionDpiLighting("mode", Number(event.currentTarget.value))} + onChange={(event) => apply("mode", Number(event.currentTarget.value))} > {([[0, "adv.ledOff"], [1, "adv.ledSteady"], [2, "adv.ledBreathing"]] as const) - .filter(([value]) => profile.dpiLighting.modes.includes(value)) + .filter(([value]) => profile.modes.includes(value)) .map(([value, label]) => {t(locale, label)})} @@ -464,16 +470,16 @@ export function TeevolutionDpiLightingCard({ snapshot }: { snapshot: ControlSnap control.applyTeevolutionDpiLighting("brightness", Number(event.currentTarget.value))} + onChange={(event) => apply("brightness", Number(event.currentTarget.value))} /> @@ -486,25 +492,42 @@ export function TeevolutionDpiLightingCard({ snapshot }: { snapshot: ControlSnap control.applyTeevolutionDpiLighting("speed", Number(event.currentTarget.value))} + onChange={(event) => apply("speed", Number(event.currentTarget.value))} /> - {t(locale, "adv.dpiStageNote")} + {profile.sleepTimeouts?.length && status.dpiLedSleepTimeout != null ? ( + + {t(locale, "adv.autoSleep")} + control.applyDpiLightingSleepTimeout(Number(event.currentTarget.value))} + > + {profile.sleepTimeouts.map((seconds) => ( + {sleepLabel(seconds, locale)} + ))} + + + ) : null} + {teevolution ? {t(locale, "adv.dpiStageNote")} : null}