-
Notifications
You must be signed in to change notification settings - Fork 3
ColorScheme
Back to home | Back to Reference | View raw text
A collection of colors and other settings that can be used to set the color and appearance of various Solid Shine UI controls.
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph SolidShineUi
SolidShineUi.ColorScheme[[ColorScheme]]
end
Type | Name | Methods |
---|---|---|
Color |
AccentBackgroundColor The primary background accent color of a window or pane. Accent colors can be used wherever you wish to add more contrasting color to your UI. |
get, set |
Color |
AccentBorderColor The accent color used for the borders of elements and windows. Accent colors can be used wherever you wish to add more contrasting color to your UI. |
get, set |
Color |
AccentHighlightColor The accent color used for when certain elements have focus or have the mouse over them; this is a darker color than the main color, and is generally used for the caption buttons of a window. Accent colors can be used wherever you wish to add more contrasting color to your UI. |
get, set |
Color |
AccentLightBackgroundColor The accent color used for the background of certain elements. This background color is lighter than the main background color. Accent colors can be used wherever you wish to add more contrasting color to your UI. |
get, set |
Color |
AccentMainColor This is the main interface accent color, and generally the most vibrant. With High Contrast color schemes, this will be the same as AccentBackgroundColor. Accent colors can be used wherever you wish to add more contrasting color to your UI. |
get, set |
Color |
AccentSecondHighlightColor The accent color used for when certain elements have focus or have the mouse over them; this is a lighter color than the main color, and is generally used by many UI elements. Accent colors can be used wherever you wish to add more contrasting color to your UI. |
get, set |
Color |
AccentSecondaryColor This is the secondary interface accent color, which can be used to differentiate regions of a user interface by color. Do not use this with High Contrast color schemes (use ColorScheme.IsHighContrast to check if this color scheme is a high contrast theme. Accent colors can be used wherever you wish to add more contrasting color to your UI. |
get, set |
Color |
AccentSelectionColor The accent color used for when certain elements are being clicked on; this a darker color than the main color, and is generally used for the caption buttons of a window. Accent colors can be used wherever you wish to add more contrasting color to your UI. |
get, set |
Color |
AccentThirdHighlightColor The accent color used for when certain elements are being clicked on; this is a lighter color than the main color, and is generally used by many UI elements. Accent colors can be used wherever you wish to add more contrasting color to your UI. |
get, set |
Color |
BackgroundColor The primary background color of a window or pane. |
get, set |
Color |
BorderColor The color used for the borders of elements and windows. |
get, set |
Color |
DarkDisabledColor The color to display for items that are disabled or not usable. This color is primarily used for the borders and foregrounds of disabled elements. |
get, set |
Color |
ForegroundColor The main color used for foreground elements, such as text. Ideally, this color should contrast greatly against the background colors and also the main color. |
get, set |
Color |
HighlightColor The color used for when certain elements have focus or have the mouse over them; this is a darker color than the main color, and is generally used for the caption buttons of a window. |
get, set |
bool |
IsHighContrast Get or set whether this is a high-contrast color scheme. Some controls will differ their appearnce if this color scheme is a high contrast one. |
get, set |
Color |
ItemColor This color is not used in Solid Shine UI, and is included for backwards compatibility reasons. You can utilize this color for your own custom needs, if desired. |
get, set |
Color |
LightBackgroundColor The color used for the background of certain elements. This background color is lighter than the main background color. |
get, set |
Color |
LightDisabledColor The color to display for items that are disabled or not usable. This color is primarily used for the backgrounds of disabled elements. |
get, set |
Color |
MainColor This is the main interface color, and generally the most vibrant. Despite the name, this color should not be used too commonly. With High Contrast color schemes, this will be the same as BackgroundColor. |
get, set |
bool |
MenusUseAccent Determine if menus should use some accent colors while highlighting items. |
get, set |
Color |
SecondHighlightColor The color used for when certain elements have focus or have the mouse over them; this is a lighter color than the main color, and is generally used by many UI elements. |
get, set |
Color |
SecondaryColor This is the secondary interface color, which can be used to differentiate regions of a user interface by color. Do not use this with High Contrast color schemes (use ColorScheme.IsHighContrast to check if this color scheme is a high contrast theme. |
get, set |
Color |
SelectionColor The color used for when certain elements are being clicked on; this a darker color than the main color, and is generally used for the caption buttons of a window. |
get, set |
Color |
ThirdHighlightColor The color used for when certain elements are being clicked on; this is a lighter color than the main color, and is generally used by many UI elements. |
get, set |
Color |
WindowInactiveColor This color is used for the titlebar of windows, while they are inactive (as in, does not have focus). |
get, set |
Color |
WindowTitleBarColor This color is used for the title bar of windows, while they are active (as in, in the foreground and with focus). |
get, set |
Color |
WindowTitleBarTextColor This color is used for the text in the title bar of windows, as well as for the caption buttons' icons. |
get, set |
Returns | Name |
---|---|
ColorScheme |
CreateDarkTheme (... )Create a premade dark theme color scheme. Darker gray colors are used. |
ColorScheme |
CreateLightTheme (... )Create a premade light theme color scheme. Lighter gray colors are used. |
ColorScheme |
GetHighContrastScheme (HighContrastOption hco)Create a color scheme with high-contrast colors, based upon one of the available options. |
A collection of colors and other settings that can be used to set the color and appearance of various Solid Shine UI controls.
public ColorScheme()
Create a color scheme with no colors preset; default values are all grey. Can be used to custom build a scheme color by color.
public ColorScheme(Color mainColor)
Type | Name | Description |
---|---|---|
Color |
mainColor | The main base color for this color scheme. |
Create a color scheme with a single preset color as the basis. All other colors in the scheme are based off this color.
public ColorScheme(Color mainColor, Color accentColor)
Type | Name | Description |
---|---|---|
Color |
mainColor | The main base color for this color scheme. |
Color |
accentColor | The base color to use as the accent color for this color scheme. |
Create a color scheme with a preset color for the basis, and an additional preset color to use as a secondary accent. All other colors are based off one of these two colors.
public static ColorScheme CreateLightTheme()
Create a premade light theme color scheme. Lighter gray colors are used.
public static ColorScheme CreateLightTheme(Color accentColor)
Type | Name | Description |
---|---|---|
Color |
accentColor | The accent color to use with the light theme, to add more color to certain elements. |
Create a premade light theme color scheme. Lighter gray colors are used, and a custom accent color can be provided to add some more color.
public static ColorScheme CreateDarkTheme()
Create a premade dark theme color scheme. Darker gray colors are used.
public static ColorScheme CreateDarkTheme(Color accentColor)
Type | Name | Description |
---|---|---|
Color |
accentColor | The accent color to use with the dark theme, to add more color to certain elements. |
Create a premade dark theme color scheme. Darker gray colors are used, and a custom accent color can be provided to add some more color.
public static ColorScheme GetHighContrastScheme(HighContrastOption hco)
Type | Name | Description |
---|---|---|
HighContrastOption |
hco | The high-contrast scheme option to create. |
Create a color scheme with high-contrast colors, based upon one of the available options.
public bool IsHighContrast { get; set; }
Get or set whether this is a high-contrast color scheme. Some controls will differ their appearnce if this color scheme is a high contrast one.
public Color MainColor { get; set; }
This is the main interface color, and generally the most vibrant. Despite the name, this color should not be used too commonly. With High Contrast color schemes, this will be the same as BackgroundColor.
public Color SecondaryColor { get; set; }
This is the secondary interface color, which can be used to differentiate regions of a user interface by color. Do not use this with High Contrast color schemes (use ColorScheme.IsHighContrast to check if this color scheme is a high contrast theme.
public Color BackgroundColor { get; set; }
The primary background color of a window or pane.
public Color SelectionColor { get; set; }
The color used for when certain elements are being clicked on; this a darker color than the main color, and is generally used for the caption buttons of a window.
public Color HighlightColor { get; set; }
The color used for when certain elements have focus or have the mouse over them; this is a darker color than the main color, and is generally used for the caption buttons of a window.
public Color BorderColor { get; set; }
The color used for the borders of elements and windows.
public Color SecondHighlightColor { get; set; }
The color used for when certain elements have focus or have the mouse over them; this is a lighter color than the main color, and is generally used by many UI elements.
public Color ThirdHighlightColor { get; set; }
The color used for when certain elements are being clicked on; this is a lighter color than the main color, and is generally used by many UI elements.
public Color LightBackgroundColor { get; set; }
The color used for the background of certain elements. This background color is lighter than the main background color.
public Color ForegroundColor { get; set; }
The main color used for foreground elements, such as text. Ideally, this color should contrast greatly against the background colors and also the main color.
public Color ItemColor { get; set; }
This color is not used in Solid Shine UI, and is included for backwards compatibility reasons. You can utilize this color for your own custom needs, if desired.
public Color LightDisabledColor { get; set; }
The color to display for items that are disabled or not usable. This color is primarily used for the backgrounds of disabled elements.
public Color DarkDisabledColor { get; set; }
The color to display for items that are disabled or not usable. This color is primarily used for the borders and foregrounds of disabled elements.
public Color AccentMainColor { get; set; }
This is the main interface accent color, and generally the most vibrant. With High Contrast color schemes, this will be the same as AccentBackgroundColor. Accent colors can be used wherever you wish to add more contrasting color to your UI.
public Color AccentSecondaryColor { get; set; }
This is the secondary interface accent color, which can be used to differentiate regions of a user interface by color. Do not use this with High Contrast color schemes (use ColorScheme.IsHighContrast to check if this color scheme is a high contrast theme. Accent colors can be used wherever you wish to add more contrasting color to your UI.
public Color AccentBackgroundColor { get; set; }
The primary background accent color of a window or pane. Accent colors can be used wherever you wish to add more contrasting color to your UI.
public Color AccentHighlightColor { get; set; }
The accent color used for when certain elements have focus or have the mouse over them; this is a darker color than the main color, and is generally used for the caption buttons of a window. Accent colors can be used wherever you wish to add more contrasting color to your UI.
public Color AccentSelectionColor { get; set; }
The accent color used for when certain elements are being clicked on; this a darker color than the main color, and is generally used for the caption buttons of a window. Accent colors can be used wherever you wish to add more contrasting color to your UI.
public Color AccentBorderColor { get; set; }
The accent color used for the borders of elements and windows. Accent colors can be used wherever you wish to add more contrasting color to your UI.
public Color AccentSecondHighlightColor { get; set; }
The accent color used for when certain elements have focus or have the mouse over them; this is a lighter color than the main color, and is generally used by many UI elements. Accent colors can be used wherever you wish to add more contrasting color to your UI.
public Color AccentThirdHighlightColor { get; set; }
The accent color used for when certain elements are being clicked on; this is a lighter color than the main color, and is generally used by many UI elements. Accent colors can be used wherever you wish to add more contrasting color to your UI.
public Color AccentLightBackgroundColor { get; set; }
The accent color used for the background of certain elements. This background color is lighter than the main background color. Accent colors can be used wherever you wish to add more contrasting color to your UI.
public Color WindowTitleBarColor { get; set; }
This color is used for the title bar of windows, while they are active (as in, in the foreground and with focus).
public Color WindowTitleBarTextColor { get; set; }
This color is used for the text in the title bar of windows, as well as for the caption buttons' icons.
public Color WindowInactiveColor { get; set; }
This color is used for the titlebar of windows, while they are inactive (as in, does not have focus).
public bool MenusUseAccent { get; set; }
Determine if menus should use some accent colors while highlighting items.
Generated with ModularDoc