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
Gets or sets the IWindowsColorScheme that determines if the dark themes are active.
public static IWindowsColorScheme ColorScheme { get; set; }
Property Value
- IWindowsColorScheme:
A IWindowsColorScheme value.
Remarks
When set to null
(the default), ColorScheme will be used.
IsCommonImageSetSynchronizationEnabled
Gets or sets if the DefaultImageSet property is automatically synchronized with the current theme.
public static bool IsCommonImageSetSynchronizationEnabled { get; set; }
Property Value
- bool:
true
to set the DefaultImageSet property to a value that matches ColorScheme; otherwise,false
to allow the property to be manually changed. The default value istrue
.
IsDarkThemeActive
Gets if a dark theme is currently active.
public static bool IsDarkThemeActive { get; }
Property Value
- bool:
true
if 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. |