Styles / StyleSheets
Styles can be used to create consistent design. There are - DrawStyles - TextStyles - ButtonStyles Before placing any graphic object or text object, a DrawStyle or a TextStyle need to be defined. A DrawStyle defines the pen type and a fill color and the TextStyle the font and it's size. DrawStyle: Color, gradients, pattern and pen for (out)lines are defined in a DrawStyle. TextStyle: The appearance of a string is defined in a TextStyle. A TextStyle is based on a DrawStyle for color and some font specification for size, alignment and spacing. ButtonStyle: Touch buttons and switches are defined by a ButtonStyle, which consists of a TextStyle for labeling and DrawStyles for background painting. ColorRamp: Filling an object can be done with solid color or with some gradient. Those gradient and its colors are defined in ColorRamps and can be used linear or radial. The Windows tools uniTFTDesigner supports StyleSheets that contain a collection of several Draw, Text, and ButtonStyles ans also ColorRamps. The commands related to styles and colorramps can be found here. |