Table of Contents

TTMSFNCMemoCustomTheme Class

A reusable component that defines a complete Monaco editor color theme, including a set of UI color tokens and syntax-token coloring rules.

API unit family: TMSFNCMemoCustomTheme Inherits from: TTMSFNCCustomComponent

Syntax

TTMSFNCMemoCustomTheme = class(TTMSFNCCustomComponent)

Properties

Name Description
Base Name of the built-in theme this custom theme extends; typical values are vs (light) and vs-dark (dark).
Colors The set of UI color token overrides applied by this theme.
Inherit When True, token colors not defined in Rules are inherited from the base theme.
Rules The ordered list of syntax-token coloring rules that override the base theme's token styles.
ThemeName The unique name used to register and reference this theme in the editor; must be distinct from built-in theme names such as vs and vs-dark.

Methods

Name Description
GetThemeObject Serialises the complete theme definition as a Monaco-compatible JavaScript theme object string that can be passed to the editor's theme registration API.

Used by