
11.0 Widget Themes
The THEME command is a way of describing color and font characteristics of widgets. Themes are
introduced here but you may want to proceed to the 12.0 Widgets and play with widgets and refer back
to here when you want to customize the themes for the examples. Different widget types can use the
same color theme to make your GUI look consistent. The THEME command sets the theme but when
we discuss them we may use the term themes in the manual. The ezLCD-3xx supports 16 themes (0-
15). The first eight widget themes (0-7) and widget fonts are preset in the startup macro:
fontw 0 serif24
‘set theme 0 font for widget to serif24 (serif24.ezf font file in \SYS\FONTS\)
fontw 1 serif24
fontw 2 serif24
fontw 3 serif24
fontw 4 serif24
fontw 5 serif24
fontw 6 serif24
fontw 7 serif24
'THEME
A B C D E F G H I J K
theme
0 1 2 0 0 0 3 3 1 0 0
theme
1 155 152 3 3 3 3 4 4 50 1
theme
2 5 20 3 3 3 4 4 5 0 2
theme
3 9 3 0 0 0 8 8 9 0 3
theme
4 7 3 0 0 0 6 6 6 6 4
theme
5 126 118 3 3 3 35 35 36 0 5
theme
6 111 106 3 3 3 12 12 101 0 6
theme
7 58 48 3 3 3 14 14 54 0 7
(Note: The above themes were shipped starting with Firmware version 1.1 and File System
Release E. Please confirm the themes in your startup file to avoid confusion and remember
ezLCD-30x will be using themes from the \USER\MACROS\STARTUP.EZM directory if it
exists otherwise themes set in \SYS\MACROS\STARTUP.EZM.)
You must set the widget font with the FONTW command before setting the theme. By having themes
set by the startup.ezm macro it avoids having to send them from your host and saves memory on your
host. These themes will work with any widget that you create. Changing the default themes 0-7 may
cause examples in this manual and demo macros on your flash drive to not display correctly. If it’s ever
necessary to reset to the default themes simply type RESET and
startup.ezm
macro automatically runs
reloading the default themes. If you create new themes for your project it is recommended you use
theme id’s 8-15. The widget themes contain values for:
Theme [ID][EmbossDkColor][EmbossLtColor][TextColor0][TextColor1][TextColorDisabled]
[Color0][Color1][ColorDisabled][CommonBkColor][Fontw].
To see this in context, type the following into your terminal program:
22
Summary of Contents for ezLED-3 Series
Page 25: ...25 Dial Choice Digital Meter ...
Page 26: ...26 Progress Bar Radio Button Slider Slider scroll bar option ...
Page 27: ...27 Static Box Framed Static Box ...
Page 66: ...ezLCD 302 240 x 160 4 3 4096 Reflective Color TFT Sunlight Readable NO Touchscreen 66 ...
Page 67: ...Appendix C EarthSEMPL Colors 67 ...
Page 68: ...68 ...
Page 69: ...69 ...
Page 70: ...70 ...
Page 71: ...71 ...
Page 78: ...78 ...