diff --git a/streamdeck-plugin/README.md b/streamdeck-plugin/README.md index f41ca58..8369455 100644 --- a/streamdeck-plugin/README.md +++ b/streamdeck-plugin/README.md @@ -1,5 +1,32 @@ # Release notes +## Version 0.3.1.0 (2024-01-06) + +### Download + +[org.igox.busylight.v0.3.1.0.streamDeckPlugin](download/org.igox.busylight.v0.3.1.0.streamDeckPlugin) + +### Features + +- None added + +### Enhancements + +- Add colored button for "Set color" action. +- Update plugin and plugin category icons + +### Fixes + +- None. + +### Bugs & known limitations + +- None known at publication time. + +### Screenshot + +![v0.3.1.0 screenshot](img/v0.3.1.0.png) + ## Version 0.3.0.0 (2024-01-06) ### Download diff --git a/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/plugin/category.png b/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/plugin/category-icon.png similarity index 100% rename from streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/plugin/category.png rename to streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/plugin/category-icon.png diff --git a/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/plugin/category@2x.png b/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/plugin/category-icon@2x.png similarity index 100% rename from streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/plugin/category@2x.png rename to streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/plugin/category-icon@2x.png diff --git a/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/plugin/icon.png b/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/plugin/icon.png new file mode 100644 index 0000000..e3811f7 Binary files /dev/null and b/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/plugin/icon.png differ diff --git a/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/plugin/icon@2x.png b/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/plugin/icon@2x.png new file mode 100644 index 0000000..e3811f7 Binary files /dev/null and b/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/imgs/plugin/icon@2x.png differ diff --git a/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/manifest.json b/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/manifest.json index 391a035..673f234 100644 --- a/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/manifest.json +++ b/streamdeck-plugin/busylight/org.igox.busylight.sdPlugin/manifest.json @@ -1,6 +1,6 @@ { "Name": "iGoX BusyLight", - "Version": "0.3.0.0", + "Version": "0.3.1.0", "Author": "iGoX", "$schema": "https://schemas.elgato.com/streamdeck/plugins/manifest.json", "Actions": [ @@ -54,10 +54,10 @@ } ], "Category": "iGoX BusyLight", - "CategoryIcon": "imgs/plugin/category", + "CategoryIcon": "imgs/plugin/category-icon", "CodePath": "bin/plugin.js", "Description": "Control your DIY BusyLight (https://github.com/igox/busylight) from your Stream Deck", - "Icon": "imgs/plugin/category", + "Icon": "imgs/plugin/icon", "SDKVersion": 2, "Software": { "MinimumVersion": "6.4" diff --git a/streamdeck-plugin/busylight/src/actions/set-color.ts b/streamdeck-plugin/busylight/src/actions/set-color.ts index 6e6d19f..b1839c7 100644 --- a/streamdeck-plugin/busylight/src/actions/set-color.ts +++ b/streamdeck-plugin/busylight/src/actions/set-color.ts @@ -1,4 +1,4 @@ -import streamDeck, { action, JsonObject, KeyDownEvent, DidReceiveSettingsEvent, SingletonAction } from "@elgato/streamdeck"; +import streamDeck, { action, JsonObject, KeyDownEvent, DidReceiveSettingsEvent, PropertyInspectorDidAppearEvent, SingletonAction } from "@elgato/streamdeck"; @action({ UUID: "org.igox.busylight.color.set" }) export class SetColor extends SingletonAction { @@ -18,6 +18,12 @@ export class SetColor extends SingletonAction { const { settings } = ev.payload; await ev.action.setSettings(settings); } + + override async onPropertyInspectorDidAppear(ev: PropertyInspectorDidAppearEvent): Promise { + streamDeck.logger.debug(`>>> Color button property inspector diplayed! <<<`); + + await ev.action.setImage(`imgs/actions/buttons/colored/colored.png`); + } } function hexToRgb(hex: string): { r: number, g: number, b: number } { 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 new file mode 100644 index 0000000..3818b48 Binary files /dev/null and b/streamdeck-plugin/download/org.igox.busylight.v0.3.1.0.streamDeckPlugin differ diff --git a/streamdeck-plugin/img/v0.3.1.0.png b/streamdeck-plugin/img/v0.3.1.0.png new file mode 100644 index 0000000..71115e5 Binary files /dev/null and b/streamdeck-plugin/img/v0.3.1.0.png differ