LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Lavezza

Limit Icon Editor to supported colors

Status: New

First, there are several ideas already to have LabVIEW support 24-bit icons on the BD. Implementing them would fix my problem.

 

However, if that fix isn't imminent,could we have an icon editor that doesn't allow you to pick colors that will not used.

 

Here is an example. I used this light green background for an icon. You can see that even the icon editor preview shows the light green color. But when the Icon Editor is closed, I get a gray icon. In the past I've had icons basically 'disappear' when the colors I used all got converted to similar shades of gray.

 

icon color.PNG

3 Comments
PaulG.
Active Participant

I don't like wasting time drawing clever icons. Copy>paste of an icon from the Internets sometimes doesn't translate well color-wise because of this limitation.

PaulG.

LabVIEW versions 5.0 - 2023

“All programmers are optimists”
― Frederick P. Brooks Jr.
JackDunaway
Trusted Enthusiast

Can we suggest the converse: support 32-bit color on diagrams? Smiley Happy


@PaulG. wrote:

Copy>paste of an icon from the Internets sometimes doesn't translate well color-wise because of this limitation.


Another mechanism in play here is how the 32-bit images in the Icon Editor are mapped into the 256-color palette of the Block Diagram. Anecdotally, color-matching seems to be least-squares on RGB rather than HSV, which has a tendency to skew colors that are either muted or dark. (One workaround is to save your icon in MSPaint or similar as temporary 256color bitmap, then copy this icon into the Icon Editor)

DFGray
NI Employee (retired)

A better solution is to copy the 32-bit image to something like GIMP, convert to a "web-compatible" 256-color indexed image, copy and paste back.  GIMP, in particular, gives you several dithering options that give good results.  Ideally, I would like to see this functionality in the icon editor itself.  If you are highly motivated and have time, this could be implemented by modifying the icon editor cut/paste routines and using something like ImageMagick to perform the conversion.