SyntaxEditorThemeManager Class
Manages themes for use with SyntaxEditor including the ability to synchronize DefaultImageSet and CurrentColorPalette to a global setting that enables and disables dark themes.
public static class SyntaxEditorThemeManager
- Inheritance:
- object object
Properties
ColorScheme
The IWindowsColorScheme that determines if the dark themes are active.
public static IWindowsColorScheme ColorScheme { get; set; }
Property Value
- IWindowsColorScheme:
A IWindowsColorScheme value.
Remarks
This property always returns a non-null value. When set to null (the default), ColorScheme will be used.
IsCommonImageSetSynchronizationEnabled
Indicates whether the DefaultImageSet property is automatically synchronized with the current theme.
public static bool IsCommonImageSetSynchronizationEnabled { get; set; }
Property Value
- bool:
trueto set the DefaultImageSet property to a value that matches ColorScheme; otherwise,falseto allow the property to be manually changed. The default value istrue.
IsDarkThemeActive
Indicates if a dark theme is currently active.
public static bool IsDarkThemeActive { get; }
Property Value
- bool:
trueif a dark theme is currently active; otherwisefalse.
Methods
Manage(IHighlightingStyleRegistry)
Begins managing the given IHighlightingStyleRegistry.
public static void Manage(IHighlightingStyleRegistry registry)
| Parameter | Type | Description |
|---|---|---|
| registry | IHighlightingStyleRegistry | The IHighlightingStyleRegistry to manage. |
Remarks
The AmbientHighlightingStyleRegistry is managed by default.
See Also
Unmanage(IHighlightingStyleRegistry)
Stops managing the given IHighlightingStyleRegistry.
public static void Unmanage(IHighlightingStyleRegistry registry)
| Parameter | Type | Description |
|---|---|---|
| registry | IHighlightingStyleRegistry | The IHighlightingStyleRegistry to manage. |