Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The first thing you may want to change is the BaseTheme associated with your theme. As for a Web Page (#PRIM_WEB) the BaseTheme default value is set as *null, indicating that the system theme 2015Gray will be applied. You can select a different System Theme as the BaseTheme. In the following example the BaseTheme is 2015DeepOrange.

     Begin_Com Role(*EXTENDS #PRIM_THM) Style(#ThemeStyle) Basetheme(2015DeepOrange)
 
Define_Com Class(#PRIM_VS.SolidBrush) Name(#AlmostBlack) Color(34:34:34)
 
Define_Com Class(#PRIM_VS.Style) Name(#ThemeStyle) Facename('Tahoma, Geneva, San-serif') Fontsize(12) Fontunits(Pixel) Foregroundbrush(#AlmostBlack)

Also note in this example that a style, ThemeStyle, has been applied to the entire theme object. This style is used to define the base font properties.

...

Text color can be nominated using the Textcolor or Solidbrush properties. A Textcolor is restricted to being an RGB color value or a LANSA specified color name. Alternately you can define a SolidBrush (which can be re-used elsewhere in the theme) to set the Foregroundbrush color.

Code Blocknote
Note: Pixels and points are fixed, whereas percentage is a relative unit size.

Themes are compiled objects, so any changes applied to the theme will be automatically applied after the theme is recompiled.

...