diff --git a/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/actions/buttons/brigthness/brigthness.png b/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/actions/buttons/brigthness/brigthness.png new file mode 100644 index 0000000..1a58795 Binary files /dev/null and b/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/actions/buttons/brigthness/brigthness.png differ diff --git a/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/actions/buttons/brigthness/brigthness@2x.png b/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/actions/buttons/brigthness/brigthness@2x.png new file mode 100644 index 0000000..1a58795 Binary files /dev/null and b/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/actions/buttons/brigthness/brigthness@2x.png differ diff --git a/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/actions/icons/brightness/brightness.png b/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/actions/icons/brightness/brightness.png index 03a714b..ecadc7b 100644 Binary files a/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/actions/icons/brightness/brightness.png and b/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/actions/icons/brightness/brightness.png differ diff --git a/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/actions/icons/brightness/brightness@2x.png b/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/actions/icons/brightness/brightness@2x.png index 91b2a84..e49f4aa 100644 Binary files a/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/actions/icons/brightness/brightness@2x.png and b/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/actions/icons/brightness/brightness@2x.png differ diff --git a/streamdeck-plugin/busylight/src/actions/set-brightness.ts b/streamdeck-plugin/busylight/src/actions/set-brightness.ts index 115026c..4821fc7 100644 --- a/streamdeck-plugin/busylight/src/actions/set-brightness.ts +++ b/streamdeck-plugin/busylight/src/actions/set-brightness.ts @@ -1,4 +1,4 @@ -import streamDeck, { action, DidReceiveSettingsEvent, WillAppearEvent, KeyDownEvent, SingletonAction } from "@elgato/streamdeck"; +import streamDeck, { action, DidReceiveSettingsEvent, WillAppearEvent, KeyDownEvent, PropertyInspectorDidAppearEvent, SingletonAction } from "@elgato/streamdeck"; @action({ UUID: "org.igox.busylight.brigthness.set" }) export class SetBrightness extends SingletonAction { @@ -25,7 +25,13 @@ export class SetBrightness extends SingletonAction { const { settings } = ev.payload; await ev.action.setSettings(settings); - await ev.action.setTitle(`${settings.brightness} %`); + await ev.action.setTitle(`${settings.brightness}%`); + } + + override async onPropertyInspectorDidAppear(ev: PropertyInspectorDidAppearEvent): Promise { + streamDeck.logger.debug(`>>> Received onPropertyInspectorDidAppear. Setting action icon <<<`); + + await ev.action.setImage(`imgs/actions/buttons/brigthness/brigthness.png`); } } diff --git a/streamdeck-plugin/download/org.igox.busylight.v0.3.1.0.streamDeckPlugin b/streamdeck-plugin/download/org.igox.busylight.v0.3.1.0.streamDeckPlugin index 3818b48..88571e2 100644 Binary files a/streamdeck-plugin/download/org.igox.busylight.v0.3.1.0.streamDeckPlugin and b/streamdeck-plugin/download/org.igox.busylight.v0.3.1.0.streamDeckPlugin differ