Class VisualStyle
Describes the visual style of the application
Namespace: ABB.Robotics.RobotStudio.Environment
Assembly: ABB.Robotics.RobotStudio.Environment.dll
Syntax
public class VisualStyle
Properties
BackColorDark
This property is obsolete and may be removed in a future version.
Declaration
olete("Use GetThemeColor() instead")]
public Color BackColorDark { get; }
Property Value
Type | Description |
---|---|
Color |
BackColorLight
This property is obsolete and may be removed in a future version.
Declaration
olete("Use GetThemeColor() instead")]
public Color BackColorLight { get; }
Property Value
Type | Description |
---|---|
Color |
IsDarkTheme
Returns true if the current theme is presenting light text on dark background
Declaration
public bool IsDarkTheme { get; }
Property Value
Type | Description |
---|---|
Boolean |
Theme
Gets or sets the current color theme for the application
Declaration
public Theme Theme { get; set; }
Property Value
Type | Description |
---|---|
Theme |
Methods
GetThemeColor(ThemeColor)
Returns a theme color
Declaration
public Color GetThemeColor(ThemeColor color)
Parameters
Type | Name | Description |
---|---|---|
ThemeColor | color |
Returns
Type | Description |
---|---|
Color |
GetThemeColorWpf(ThemeColor)
Returns a theme color as a WPF Color
Declaration
public Color GetThemeColorWpf(ThemeColor color)
Parameters
Type | Name | Description |
---|---|---|
ThemeColor | color |
Returns
Type | Description |
---|---|
Color |
Events
ThemeChanged
This event triggers when the application color theme has been changed.
Declaration
public event EventHandler ThemeChanged
Event Type
Type | Description |
---|---|
EventHandler |
VisualStyleChanged
This event is obsolete and may be removed in a future version.
Declaration
olete("Use ThemeChanged event instead")]
public event EventHandler VisualStyleChanged
Event Type
Type | Description |
---|---|
EventHandler |
Remarks
Use ThemeChanged event instead.