Versions Compared

Key

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

...

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.

  • Startup a theme Theme in a projectProject
  • Change a theme Theme in runtimeRuntime
  • Configuring

    Configure a

    palette

    Palette for an

    element

    Element in a

    page

    Page (

    rectangle

    Rectangle,

    button

    Button,

    textblock

    Textblock, etc)

  • Pre-defined Theme and Colors

  • Specific element properties (advanced settingsElement Properties (Advanced Settings)

Startup a Theme In a Project

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. 

Change a Theme in Runtime

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 = "";

...


Configure a Palette for an Element in a Page (Rectangle, Button, Textblock, etc)

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. 

...