Hey y'all! It's been a while since I've shared an update to ui-led, now 0.4.6, with the forum but there have been some changes that have gone in that folks have asked for in the past and I thought I'd let folks know.
New features:
Enable or disable glow around LED
Square shaped LED
LED will size to fit locked control size or group's size on auto
color picker in Color for Value configuration
handy Preview in Edit panel to see what your choices will look like
Coming soon:
more shapes
more styles
more dynamic color options
Less for the end users, more for the devs out there recently the library also underwent a conversion slash rewrite into Typescript. I have to thank @alexk111 for his great Node-RED Typescript Starter as a bouncing off point after a few false starts in the past. We may have lost a few Javascript folks but believe me, it is much more of a pleasure to work on the library now. And I will separately publish the node-red-dashboard type declarations to @types as soon as I have a sec
As always please feel free to share feedback and suggestions here or in the Github, it has helped steer development of the library a lot
Something that caught my eye. Is this new "flatter" look intended? Though this might be subjective, but the old LED looked a bit better and had a bit more "glow".
Hard to describe, but there's a noticeable difference:
Before changing anything, the size properties where stored as numbers (left).
After changing back to "auto" the second time, they where saved as strings, which seems to mess up the calculation of the LED size.
I don't know if the size properties of UI nodes are managed by common Dashboard code or have to be managed by the node's developer. Maybe Dave (@dceejay) has some insights, if this is a general Dashboard issue?
Regarding the visuals, I should have in this release but plan to add some options for folks who want the rounder design versus a flatter one. The change went in for some performance and versatility reasons as well as simplifying readability of the LEDs but I meant to take the time to make both available, I'm glad you have an opinion about which you like best!!
I like the option for the new flatter.. would rather have the performance and versatility for the work that I am doing.
One issue i noted... If I decide to set a size of 1x5.. so that I can have the label text to the left and the led to the right... and fit neatly on one line..... I barely see the LED at all... However, if I set it to 2x5 the led looks better (but small)... Unfortunately, I am taking up extra vertical space...
If I set the size to Auto... the led is quite large.. and quite flat.. .and does not allow for any glow effect at all. However, it does only occupy 1 vertical space... which is preferred.
0.4.7 seemed to give satisfactory results if I set it to Auto and Turned off Glow Effect... However, with 0.4.8 we are left with very tiny LEDs again.... and they don't show up at all unless you use the GLow Effect... Of course if you take up several lines you can get something, but that is not practical to do.
I am running my flow on a Raspberry Pi 4B w/ the official 800x480 LCD TouchScreen. That is why the settings are scaled that way. Otherwise, it is difficult to show much content.
hotNIPI is correct... I run smaller grid sizes. Just wanted to show you the effects of minor changes. For now I'm just running the LED in a 5x2 format and it's big enough... (though my 6px change at 5x1 was even brighter and better)..
I've always had issues with UI-LED with shadows at 5x1... but for version .4.6 I was good with no shadows as it showed a solid circle.
Anyway, I was doing some experimenting and just thought I'd share it with you.
Thanks for the ui-led node I use it a lot for displaying, at a glance, my devices state but I have noticed that what works on the dashboard display on a PC or Android displays differently on an iOS device. The LED regardless of size displays as a vertical line rather than a circle. If the device (iPad or iPhone) is rotated they appear correct but upon a screen change revert to the vertical line. This has only occurred since the latest update. Hopefully the screenshots attach correctly...first time at this.
Thanks all for your patience, I just pushed 0.4.9!
In the effort of getting a fix for the squishing out sooner there is an unresolved issue it introduces where the glow at some sizes is cut off. I'll address that in a later version, this fix was more important
Please let me know if this doesn't resolve the issue or introducing any other bugs!