Class ThemeManager
- Namespace
- GroupeIsa.Neos.Designer.UIAbstractions
- Assembly
- GroupeIsa.Neos.Designer.UIAbstractions.dll
Represents the theme manager.
[ExcludeFromCodeCoverage]
public static class ThemeManager
- Inheritance
-
ThemeManager
- Inherited Members
Properties
Themes
Gets the themes.
public static Theme[] Themes { get; }
Property Value
- Theme[]
Methods
GetCurrentTheme()
Gets the current theme.
public static Theme GetCurrentTheme()
Returns
- Theme
The current theme applied to the cluster.
SetThemeAsync(ThemeId)
Sets the theme by id.
public static Task<bool> SetThemeAsync(ThemeId themeId)
Parameters
themeIdThemeIdTheme id.
Returns
SetThemeAsync(Theme, string)
Sets the theme.
public static Task SetThemeAsync(Theme theme, string cssContent)
Parameters
Returns
SetThemeAsync(string)
Sets the theme by name.
[Obsolete("Using string literals for theme name is error-prone. Use SetThemeAsync(Themes.MyTheme) to benefit from compile-time safety.", false)]
public static Task<bool> SetThemeAsync(string themeName)
Parameters
themeNamestringTheme name.