[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Blazor.Viewer.ThemeSettings

ThemeSettings Class

Represents the UI theme settings for customizing the appearance.

Inheritance
ThemeSettings
Namespace: GrapeCity.ActiveReports.Blazor.Viewer
Assembly: MESCIUS.ActiveReports.Blazor.Viewer.dll
Syntax
public class ThemeSettings
Examples
private static readonly ColorTheme _theme = new ColorTheme()
{
    Name = "testTheme",
    BackgroundPanels = "#fdf7f1",
    BackgroundMain = "#fdf7f1",
    Primary = "blue",
    Secondary = "green",
    Neutral = "grey",
    Error = "red",
    Warning = "yellow",
    FontFamily = "'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif",
    Type = ColorThemeType.light
};

private readonly ThemeSettings _themes = new ThemeSettings()
{
    InitialTheme = "testTheme",
    ThemeSelector = new ThemeSelector()
    {
        Enabled = true,
        AvailableThemes = new []{ColorThemes.ActiveReportsDark, _theme, "default"}
    }
};

Constructors

Name Description
ThemeSettings()

Properties

Name Description
InitialTheme

Gets or sets the initial theme to be applied.

ThemeSelector

Gets or sets the theme selector used to manage available themes.