Table of Contents

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

themeId ThemeId

Theme id.

Returns

Task<bool>

A value indicating whether the theme has been applied.

SetThemeAsync(Theme, string)

Sets the theme.

public static Task SetThemeAsync(Theme theme, string cssContent)

Parameters

theme Theme

Theme.

cssContent string

CSS content.

Returns

Task

A Task representing the asynchronous operation.

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

themeName string

Theme name.

Returns

Task<bool>

A value indicating whether the theme has been applied.