Class RevealTheme
The class contains current theme settings. After applying changes RevealView.UpdateRevealTheme function must be called and changes will be taken for those dashboards rendered after this call.
Inheritance
Inherited Members
Namespace: Reveal.Sdk
Assembly: Reveal.UI.Sdk.dll
Syntax
public class RevealTheme
Constructors
RevealTheme(RevealTheme)
Declaration
public RevealTheme(RevealTheme other)
Parameters
Type | Name | Description |
---|---|---|
RevealTheme | other |
RevealTheme(Boolean)
Creates new instance of RevealTheme.
Declaration
public RevealTheme(bool isDark = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isDark | Pass true if you want to get the dark theme |
Properties
AccentColor
Accent color
Declaration
public Color AccentColor { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Color |
BackgroundColors
The list of background colors displayed as the palette when selecting the background color for a visualization. This color palette could have any number of elements.
Declaration
public List<Color> BackgroundColors { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.Windows.Media.Color> |
BoldFont
Font family used for bold font style
Declaration
public FontFamily BoldFont { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.FontFamily |
ChartColors
The list of chart colors. This color palette could have any number of elements. Once the list is finished, Reveal will start auto generating shade of these colors.
Declaration
public List<Color> ChartColors { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.Windows.Media.Color> |
ConditionalFormatting
Conditional Formatting set of colors HI, MID, LOW and NONE values.
Declaration
public RVConditionalFormatting ConditionalFormatting { get; }
Property Value
Type | Description |
---|---|
RVConditionalFormatting |
ContextId
Declaration
public string ContextId { get; }
Property Value
Type | Description |
---|---|
System.String |
DashboardBackgroundColor
Main background color
Declaration
public Color DashboardBackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Color |
FontColor
Font color
Declaration
public Color FontColor { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Color |
HighlightColor
Highlighting color that is used on specific scenarios for dashboards (forecast and outliers).
Declaration
public Color HighlightColor { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Color |
MediumFont
Font family used for medium font style
Declaration
public FontFamily MediumFont { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.FontFamily |
RegularFont
Font family used for regular font style
Declaration
public FontFamily RegularFont { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.FontFamily |
UseRoundedCorners
Rounded corners in buttons, tooltips, containers, visualizations, etc. If false, squared corners will be shown
Declaration
public bool UseRoundedCorners { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
VisualizationBackgroundColor
Visualizations, modals, list-items... secondary background color
Declaration
public Color VisualizationBackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Color |
VisualizationMargin
Gets or sets the margin around the visualization.
Declaration
public int VisualizationMargin { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The space around the visualization. Default is 2. |
Methods
Clone()
Declaration
public RevealTheme Clone()
Returns
Type | Description |
---|---|
RevealTheme |