Wednesday, October 25, 2006

Demystifying the LabVIEW Color Picker

Ah, color. So integral to a good user interface, and yet also the easiest way to make a VI as hideous as an evil clown.

The LabVIEW color picker tries to help you, but unfortunately it doesn't explain itself very well. So I'm going to explain how the folks who designed it meant for it to be used.



The bar along the top lets you pick pure black, pure white, or any shade of gray in between. These are good choices for large areas, like the panel.

The box at the top right is a T if transparent is available as a selection, and an X otherwise.

The second bar from the top contains muted colors. These are good for medium sized areas, like controls.

The third bar contains saturated colors. These are for small areas: LEDs, graph plots, etc. Please don't overuse these bright colors, or everything on your panel will scream for visual attention so much that users won't know where to look first.

The User row of boxes contains colors that you can define in Tools>>Options. These are handy if you want to use the same RGB colors frequently.

The History row of boxes helps you re-use colors that you selected recently.

The box at the bottom left shows you the selected color (and is split into two sections for foreground/background color when applicable).

To the right of that is an icon that tells if you the selected color is an RGB value (color circle icon) or a symbolic color (stacked rectangles icon).

To the right of that is either the RGB value or the name (for User colors and System colors).

At the bottom right is a button that brings up your system's color selection dialog.

Now, you may noticed I saved one section for last: the System section. I talked a little about these in my previous post. When you use these colors, the color that you see is only the current value of the color. The user can change appearance properties in the system (outside of LabVIEW) and remap these colors to whatever he or she wants.

The boxes are really three pairs. In each pair, you have a color and then the color for text that goes on top of that color. The three groups are: panel and object, window, and highlight.

Confusingly enough, window is not the color of the window. That's panel and object. "Window" color is used in places like listboxes. Why is it named the way it is? I have no idea. [11/15/2006 Correction: I found out that the "window" color refers to the "client area of a window," such as the document area in a text editor. Listboxes actually have separate symbolic colors but they are often set to be the same as the window colors].

So, there it is. The LabVIEW color picker's mysteries revealed. I hope some people find this useful.

Labels:

5 Comments:

Anonymous Matt Holt said...

I have inherited some of that "evil clown" code in the past. Imagine LV Classic numeric indicators, with pink backgrounds in lieu of white. Now place those on a light green background with Red text for instructions.... mmmm... yummy... it was like walking into a homicide.
I only had to update the panel to default LV modern to WOW the operator.

4:17 PM, October 26, 2006  
Anonymous Anonymous said...

>>The box at the bottom left shows you the selected color (and is split into two sections for foreground/background color when applicable).

Assigning foreground/background colors seems really awkward. You have to use the spacebar to toggle, and it's not clear what you're actually doing unless you spam the spacebar and try different colors.

Not very user-friendly imo

3:58 PM, October 28, 2006  
Blogger Christina said...

I agree the foreground/background is a bit awkward. Try hitting F for foreground and B for background instead of toggling with the spacebar. I think that's a little easier to use.

7:56 AM, October 29, 2006  
Anonymous Alvin Moore said...

Christina, great explanation of the color picker dialog. Maybe this is all in the LV help and I've never noticed it, but this really clears things up. Especially that ID of the system color boxes at the lower right, three pairs, each with a specific purpose; Who knew? I also was not aware of the user selectable colors. I do try to keep all our in-house vi's in the same color palette, but had not realized I could set it into the LV prefs.
Thanks.

8:10 AM, November 15, 2006  
Blogger Christina said...

I'm glad you found it helpful. Thanks for reading!

4:38 PM, November 15, 2006  

Post a Comment

<< Home