Mac System Color VIs

Overview

These VIs (GetThemeBrushAsColor.vi and GetThemeTextColor.vi) get the colors from Mac OS X directly.

Description

These VIs utilize the Call Library Function Node to directly grab all of the information needed from the OS for the different colors. The Call Library Function Node needs  necessary input parameters to return the Theme Brush color, the Theme Text color, or a series of system colors from the OS directly which can be seen in the SubVIs included in the Zip folder. Another example which is included in the Zip folder is an example which shows you what system colors change when you change the system appearance.

Steps to Implement or Execute Code

  1. Change the system colors:  Apple Menu » System Preferences » Appearance
  2. Launch LabVIEW, open SystemColors.vi
  3. Run the VI, and observe the resulting system colors
  4. Right-Click on System Colors on the front panel and select Data Operations » Make Current Value Default
  5. Quit LabVIEW
  6. Repeat steps 1-3
  7. Observe the comparison of New vs Old

Requirements to Run

Software

LabVIEW 8.5 or Later

Hardware

Mac with OS X