Versions Compared

Key

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

Overview

Themes are a configuration feature designed to set colors in display objects in runtime and the Designer Workspace, and optional on Runtime displays.

Themes are sets of visual styles determining the appearance of pages and objects within an application, including colors and design elements. Their purpose is to standardize and customize the application's visual appearance, ensuring consistency across components. Themes function as collections of design parameters controlling color schemes and layout aesthetics. 

On this page:

Table of Contents
maxLevel3
stylenone


Applying Themes

On the Designer (engineering workspace) go to Home, and select the Theme at that Welcome page

On the Designer Drawing tool, at the Properties SIdeBar, there is a RuntimeTheme ComboBox, which allows the drawing editor to emulate the runtime theme, only in drawing area.

When drawing displays, selecting styles via the Brush Editor.

When running the solution, change dynamically the Theme using the property @Client.Theme


Working with Themes

Selecting a Startup Theme

You can select a pre-created Theme to startup your solution.

To do so, go to Displays / List, and click Windows button at Client Settings. It will open a popup window where the Initial Theme field is on the bottom. See the image below.

Note

If the field is left blank, the solution starts up without any theme using the objects properties used at the moment the displays were created.

Changing a Theme in Runtime

Theme selection in runtime can be done by using the syntax below in Script codes, Expression fields, or objects configuration.

To set the solution to the default configuration, without a custom theme, you need to set the Client.Theme to an empty string (Client.Theme= ””) or create an empty theme table and assign it to the theme property.

Code Block
@Client.Theme = "Blue";
@Client.Theme = "Dark";
@Client.Theme = "Yellow";
@Client.Theme = "";



Pre-defined Theme Colors

Go To Displays → Themes, in order to view the various Themes dents and its color pallet. 

A Theme Pallet incudes standard color for visual elements like:

  • DefaultColor

  • DisplayBackground

  • HeaderBackground

  • TextForeGround

  • All HighPerformance State (all of them start with HP, ex: HPOnStroke, HPOffStroke, HPDisableStroke)

  • Dashboard pages (all of them start with Dashboard, ex: DashboardTitleBackground, DashboardItem…)

When you create displays consistent with those standards, when a new Theme is loaded, the visuals of your displays will remain consistent.

See below the full list of standards:

Item NameDescription
DefaultBrushSets the base color for UI elements without specific color settings.
DefaultBorderDefines the standard color for the borders of UI components.
WatermarkBrushAssigns a specific color for watermark elements.
ThemeBlackBrushSets a standard black brush color.
ThemeWhiteBrushSets a standard white brush color.
AccentBrushAssigns a color to highlight interactive or key elements.
PageBackgroundApplies the color for the primary background of pages.
PanelBackgroundSets the background color for panels.
PopupBackgroundApplies the color for pop-up windows.
ControlBackgroundDefines the background color for standard UI controls.
ComboBoxBackgroundSets the background color specifically for combo boxes.
ButtonBackgroundApplies the background color for buttons.
LightBrushAssigns a color to specific elements within a GroupBox.
ShadeBrushApplies a color to create contrast within a GroupBox.
BayBrushApplies a color to specific diagram elements.
LegendBrushSets the color for legend text or icons in diagrams.
TextForegroundApplies the color for standard text.
TextAccentForegroundAssigns a color to accented text.
TextSubtleForegroundSets the color for secondary or less prominent text.
TextHyperlinkForegroundApplies a color to hyperlinks.
HeaderForegroundApplies the color for header text in dashboards.
HeaderBackgroundSets the background color for dashboard headers.
ItemBackgroundApplies the color for individual dashboard items.
ItemBorderDefines the border color for dashboard items.
SelectFocusBrushApplies the color to indicate the focused item.
SelectBrushSets the color for selected items within lists or dropdowns.
FocusBrushApplies the color to elements in focus.
HoverBackgroundSets the background color for elements when hovered over.
HoverBorderApplies a color to the borders of elements during hover.
PressedBackgroundSets the background color for elements when pressed.
PressedBorderDefines the border color for elements when pressed.
DisabledForegroundApplies a color to text and icons in disabled controls.
DisabledBackgroundSets the background color for disabled controls.
DisabledBorderApplies the border color for disabled controls.
HpgDefaultFillSets the fill color for default graphical elements.
HpgDefaultStrokeApplies the stroke color for default graphical elements.
HpgOnFillSets the fill color for elements in an "on" state.
HpgOnStrokeApplies the stroke color for "on" state elements.
HpgOffFillSets the fill color for elements in an "off" state.
HpgOffStrokeDefines the stroke color for "off" state elements.
HpgElementBlueColorApplies a specific blue color to highlight specific data or states.
HpgElementLightBlueColorSets a lighter blue for differentiation within similar elements.
HpgElementDarkBlueColorApplies a darker blue for contrast within graphical elements.
HpgElementGreenColorSets a green color for positive or successful states.
AlertHighPriorityColorApplies color to high-priority alerts for urgent notifications.
AlertMediumPriorityColorSets the color for medium-priority alerts. Ensures visibility for non-urgent alerts.
AlertLowPriorityColorApplies color to low-priority alerts.
AlertDiagnosticColorSets the color for diagnostic alerts.
AlertNormalColorApplies color to normal, non-critical alerts.
CustomBrush1Custom color.
CustomBrush2Second custom color.
CustomBrush3Third custom color.
CustomBrush4Fourth custom color.



Available Dark and Light Themes

The builtin themes in the platform are designed to optimize your workspace for both functionality and aesthetics. Each theme is available in both a light and dark version, catering to various lighting conditions and personal preferences.

Theme Pairs:

  • Light & Dark:

    • Light: A clean and bright theme, perfect for use in well-lit environments.

    • Dark: A sleek and subtle theme, ideal for low-light conditions, reducing eye strain.

  • Sky & Navy:

    • Sky: A theme that embodies the lightness and tranquility of a clear sky.

    • Navy: A deep, calming theme inspired by the serene depths of the ocean.

  • Gold & Coffee:

    • Gold: A warm, elegant theme that adds a touch of luxury to your workspace.

    • Coffee: A rich, earthy theme that brings a cozy, grounded atmosphere.

  • Pearl & Indigo:

    • Pearl: A soft and inviting theme, creating a gentle, soothing workspace.

    • Indigo: A bold and refined theme, offering a deeper, more vibrant look.

  • Steel & Graphite:

    • Steel: A modern, cool theme that reflects a contemporary style.

    • Graphite: A darker, industrial-inspired theme that provides a strong, minimalistic feel.

  • HighContrastLight & HighContrastDark:

    • HighContrastLight: Designed for maximum visibility in bright conditions, with sharp contrasts.

    • HighContrastDark: Offers high contrast for enhanced readability in darker environments.

  • CustomLight & CustomDark:

    • CustomLight: A flexible theme that allows you to create a personalized light workspace.

    • CustomDark: Customize your dark theme to suit your specific needs and style.



In this section:

Page Tree
root@parent
spacesV10