Page Tree
Other Releases
...
When you change the theme in runtime, the pages and objects will keep the their default configured colors.
...
There are a couple different ways in which a theme can be applied to an object or project.
Configure a
palettePalette for an
elementElement in a
pagePage (
rectangleRectangle,
buttonButton,
textblockTextblock, etc)
Pre-defined Theme and Colors
In Edit-Displays-Displays and under the .Net Client Settings, you will find an Initial Theme textbox. In this field, you can enter the name to whatever theme you want to be active for the project startup.
Theme selection in runtime can be done using the syntax below in Script codes, Expression fields, or objects configuration.
...
Code Block |
---|
@Client.Theme = "Blue"; @Client.Theme = "Dark"; @Client.Theme = "Yellow"; @Client.Theme = ""; |
...
To set a theme for an element in the display, you need to open the Appearance configuration window located in the left panel toolbar, in Run-Dictionaries-Themes.
...