BuiltinTheme

Applies to

RibbonBar controls

Description

Specifies the theme of the RibbonBar.

Default is 0. Values are:

0 -- Default (Currently the default is mapping to Flat Design Blue)

1 -- Flat Design Blue

2 -- Flat Design Dark

3 -- Flat Design Grey

4 -- Flat Design Silver

5 -- Flat Design Lime

6 -- Flat Design Orange

The RibbonBar's appearance is determined either by the application's theme settings (if defined) or by the BuiltinTheme property (if no application theme is set):

  • If the application has a theme:

    The RibbonBar always follows the applicationʼs theme and supports user customization (as defined in theme.json and theme-[xxxx].json). The BuiltinTheme property is ignored.

  • If the application does not have a theme:

    The RibbonBar falls back to either its default theme (BuiltinTheme = 0) or one of its built-in themes (BuiltinTheme = 1-6).

    The built-in RibbonBar themes are hard-coded and cannot be modified (unlike application themes which can be customized through theme.json or theme-[xxxx].json).

Usage

In a painter

To set BuiltinTheme property for RibbonBar:

  1. Select the RibbonBar control.

  2. Select a theme from the BuiltinTheme list on the General page of the control's Properties view.

In scripts

This statement selects the Flat Design Dark theme for the RibbonBar control:

rbb_1.BuiltinTheme = 2