Skip to content

Palette

Use Palette to create custom widgets that match the colors of the selected style e.g. fluent, cupertino, material, or qt.

See Widget Styles for details on the available styles.

brush (out)

Defines the default background brush. Use this if none of the more specialized background brushes apply.

brush (out)

Defines the foreground brush that is used for content that is displayed on background brush.

brush (out)

Defines an alternate background brush that is used for example for text input controls or panels like a side bar.

brush (out)

Defines the foreground brush that is used for content that is displayed on alternate-background brush.

brush (out)

Defines the default background brush for controls, such as push buttons, combo boxes, etc.

brush (out)

Defines the foreground brush that is used for content that is displayed on control-background brush.

brush (out)

Defines the background brush for highlighted controls such as primary buttons.

brush (out)

Defines the foreground brush that is used for content that is displayed on accent-background brush.

brush (out)

Defines the background brush that is used to highlight a selection such as a text selection.

brush (out)

Defines the foreground brush that is used for content that is displayed on selection-background brush.

brush (out)

Defines the brush that is used for borders such as separators and widget borders.

enum ColorScheme (in-out) default: the first enum value

Read this property to determine the color scheme used by the palette. Set this property to force a dark or light color scheme. All styles except for the Qt style support setting a dark or light color scheme.

ColorScheme

This enum indicates the color scheme used by the widget style. Use this to explicitly switch between dark and light schemes, or choose Unknown to fall back to the system default.

  • unknown: The scheme is not known and a system wide setting configures this. This could mean that the widgets are shown in a dark or light scheme, but it could also be a custom color scheme.
  • dark: The style chooses light colors for the background and dark for the foreground.
  • light: The style chooses dark colors for the background and light for the foreground.

© 2026 SixtyFPS GmbH