Bug: Toggle Action

When you have a Toggle Action Button and add a text to both states (Only tried with two states) Both texts are showing. Not checked with Icon yet if it also stacks on top.
No description
16 Replies
ninjadev64
ninjadev643w ago
Can't reproduce this by just adding it quickly, anything else you did?
Terrorwolf
TerrorwolfOP3w ago
I just created the toggle action, added two run command actions with the same command (mute my audio) and then changed the inage and added a text bottom aligned. Then pressed the button. If you want I can send you the Profile @ninjadev64 I have found the "Problem" I think. You need to use a picture with the bottom part, where the text is, is transparent. (Or with the format of the image, so that down there is no picture anymore) It doesn't override the button but puts the "active state" in front of the other which then produces above problem.
ninjadev64
ninjadev643w ago
Interesting
Terrorwolf
TerrorwolfOP3w ago
Just checked with a friend, it is also reproducible via opendeck flatpak.
Percy_Ikana
Percy_Ikana3w ago
I think it just takes the current canvas and draws over it vs clear then draw
Terrorwolf
TerrorwolfOP3w ago
That would be the logical thing after my testing.
ninjadev64
ninjadev643w ago
GitHub
OpenDeck/src/lib/rendererHelper.ts at 337f012a0a6bc2714ee04df98bd5d...
Linux software for your Elgato Stream Deck. Contribute to ninjadev64/OpenDeck development by creating an account on GitHub.
ninjadev64
ninjadev643w ago
So it's not that straightforward it seems
TheHiddenOne
TheHiddenOne3d ago
Can confirm this bug, getting it as well Does a github issue exist for this? Happy to make one if not
Terrorwolf
TerrorwolfOP3d ago
No Github issue. Its tracked here because its not clear if its an Opendeck issue or and Starterpack issue. Had no time yet to dive into the code for it.
TheHiddenOne
TheHiddenOne3d ago
Yeah looking at the network tab of the debugger there is definitely something funky going on Also the Graphics tab shows the images combined into one canvas, though I guess that's not surprise because that's how it shows on the deck itself Last comment until someone technical takes a look. My state1 image has a background, and that background is still there when it doubles up the icons. My icons where 200x200, so I modified them down to 144x144, so it's not related to the scaling code at all 🤷‍♂️
TheHiddenOne
TheHiddenOne3d ago
You can import this into the graphics tab of the web inspector, upper right is the import button, if I can provide anything else, let me know
TheHiddenOne
TheHiddenOne3d ago
Clear rectangle is on frame 1, frame 3, frame 4, and not again until frame 7 Frame 5 draws the first state icon, frame 6 draws the second state icon So it really seems like a callback order/timing issue? I bet this isn't caught, because I'm using icons with transparent backgrounds 🤦 If I stuck all black backgrounds on them it would be a non issue, lol, so one more thing to help reproduce
TheHiddenOne
TheHiddenOne3d ago
No description
No description
Terrorwolf
TerrorwolfOP3d ago
thanks. Its already reproducible on multiple machines with mutliple setups. Its only searching through the code to find why its caused.
TheHiddenOne
TheHiddenOne3d ago
I'd pitch in but I fsking hate callback based languages 🤣 for exactly this reason

Did you find this page helpful?