New Data Types: Color and Font
closed
J
Josh Dunstan
Add new data types of color and font.
For example, we would be able to create a memory tag of type 'Color' or and type 'Font' and then link all fonts and colors back to this memory tag, hence making it easy to change the style of our projects quickly and with ease.
Log In
Ray Sensenbach
closed
This idea was implemented with Perspective's style classes. We don't plan to add it to the Vision module.
Kathy A.
under review
j
john.sullivan@mercurypaper.com
Yes - would like to see the idea of "Themes" come to Ignition (maybe 3rd party?) so we can quickly build nicely designed and consistent projects and even easily change the theme then as necessary. Your idea of Color and Font could be a part of that.
Maybe for now make them additional properties on components, but I don't know of a way to add them wholesale including binding them to all components or even a bunch of them.
Z
Zack Scriven
As Martin has mentioned strings work fine for this. The obvious downside is the lack of a color selector. You can work around this by creating a user interface element to modify this client tag using the system.gui.chooseColor.
I would avoid using a runScript.
D
David Schmidt
Or an expression binding the runs a custom script like shared.getColor("yellow"). This allows central management of the shade of yellow for example. Same concept applies for fonts.
j
javachon@hotmail.com
At least for now, it's easy to encode that as a strings like color(0,0,0,255) or font('Dialog', 'Plain', 12)