WindowsColorScheme Class
Provides a Windows color scheme.
public class WindowsColorScheme : DisposableObjectBase, IDisposable, IWindowsColorScheme
- Inheritance:
- object DisposableObjectBase object
- Implements:
- IDisposable IWindowsColorScheme
Constructors
WindowsColorScheme(WindowsColorSchemeType)
Initializes an instance of the class.
protected WindowsColorScheme(WindowsColorSchemeType baseColorSchemeType)
| Parameter | Type | Description |
|---|---|---|
| baseColorSchemeType | WindowsColorSchemeType | The base WindowsColorSchemeType from which colors should be initialized. |
WindowsColorScheme(string, WindowsColorSchemeType, Color)
Initializes an instance of the class.
public WindowsColorScheme(string key, WindowsColorSchemeType baseColorSchemeType, Color tintColor)
| Parameter | Type | Description |
|---|---|---|
| key | string | The key of the color scheme. |
| baseColorSchemeType | WindowsColorSchemeType | The base WindowsColorSchemeType from which colors should be initialized. |
| tintColor | Color | A Color that if is not |
Properties
BarButtonCheckedBack
The background color of a checked bar button.
BarButtonCheckedBackGradientBegin
The begin gradient color of a checked bar button background.
BarButtonCheckedBackGradientEnd
The end gradient color of a checked bar button background.
BarButtonCheckedBackGradientMiddle
The middle gradient color of a checked bar button background.
BarButtonCheckedBorder
The border color of a checked bar button.
BarButtonHotBack
The background color of a hot bar button.
BarButtonHotBackGradientBegin
The begin gradient color of a hot bar button background.
BarButtonHotBackGradientEnd
The end gradient color of a hot bar button background.
BarButtonHotBackGradientMiddle
The middle gradient color of a hot bar button background.
BarButtonHotBorder
The border color of a hot bar button.
BarButtonMenuHotBack
The background color of a hot bar button in a popup menu.
public virtual Color BarButtonMenuHotBack { get; set; }
Property Value
See Also
BarButtonMenuHotBorder
The border color of a hot bar button in a popup menu.
public virtual Color BarButtonMenuHotBorder { get; set; }
Property Value
See Also
BarButtonPressedBack
The background color of a pressed bar button.
BarButtonPressedBackGradientBegin
The begin gradient color of a pressed bar button background.
BarButtonPressedBackGradientEnd
The end gradient color of a pressed bar button background.
BarButtonPressedBackGradientMiddle
The middle gradient color of a pressed bar button background.
BarButtonPressedBorder
The border color of a pressed bar button.
BarButtonSelectedBorder
The border color of a selected bar button.
BarButtonText
The color of bar button text.
BarButtonTextAlternate
The color of alternate bar button text.
BarButtonTextDisabled
The color of disabled bar button text.
BarLabelBack
The background color of a bar label.
BaseColorSchemeType
A WindowsColorSchemeType that indicates the base color scheme type represented by this scheme.
[Browsable(false)]
public WindowsColorSchemeType BaseColorSchemeType { get; }
Property Value
ColorSchemeType
A WindowsColorSchemeType that indicates the resolved color scheme type represented by this scheme.
DefaultColorSchemeType
A WindowsColorSchemeType that indicates the default color scheme.
public static WindowsColorSchemeType DefaultColorSchemeType { get; }
Property Value
DockContainerTitleBarActiveBack
The color of a dock container title bar background in the active state.
DockContainerTitleBarActiveBorder
The color of a dock container title bar border in the active state.
DockContainerTitleBarActiveText
The color of a dock container title bar text in the active state.
DockContainerTitleBarBack
The color of a dock container title bar background in the default, inactive state.
DockContainerTitleBarBorder
The color of a dock container title bar border in the default, in active state.
DockContainerTitleBarButtonActiveGlyph
The color of a dock container title bar button glyph when the title bar is in the active state.
DockContainerTitleBarButtonActiveHotGlyph
The color of a dock container title bar button glyph when the mouse is over the button and the title bar is in the active state.
DockContainerTitleBarButtonBack
The color of a dock container title bar button background.
DockContainerTitleBarButtonBorder
The color of a dock container title bar button border.
DockContainerTitleBarButtonGlyph
The color of a dock container title bar button glyph when the title bar is in the default, inactive state.
DockContainerTitleBarButtonHotBack
The color of a dock container title bar button background when the mouse is over the button.
DockContainerTitleBarButtonHotBorder
The color of a dock container title bar button border when the mouse is over the button.
DockContainerTitleBarButtonHotGlyph
The color of a dock container title bar button glyph when the mouse is over the button and the title bar is in the default, inactive state.
DockContainerTitleBarButtonPressedBack
The color of a dock container title bar button background when the button is pressed.
DockContainerTitleBarButtonPressedBorder
The color of a dock container title bar button border when the button is pressed.
DockContainerTitleBarButtonPressedGlyph
The color of a dock container title bar button glyph when the button is pressed.
DockContainerTitleBarGripperActiveDark
The dark color of a dock container title bar gripper in the active state.
DockContainerTitleBarGripperActiveLight
The light color of a dock container title bar gripper in the active state.
DockContainerTitleBarGripperDark
The dark color of a dock container title bar gripper in the default, inactive state.
DockContainerTitleBarGripperLight
The light color of a dock container title bar gripper in the default, inactive state.
DockContainerTitleBarText
The color of a dock container title bar text in the default, inactive state.
DockGuideArrowBack
The background color of an arrow on a dock guide.
DockGuideBack
The background color of a dock guide.
DockGuideBorder
The border color of a dock guide.
DockGuideButtonBack
The background color of a button on a dock guide.
DockGuideButtonBorder
The border color of a button on a dock guide.
DockGuideGlyphBack
The background color of a glyph on a dock guide.
DockGuideGlyphBorder
The border color of a glyph on a dock guide.
DockingAutoHideTabBack
The background color of a docking auto-hide tab when not selected.
DockingAutoHideTabBorder
The border color of a docking auto-hide tab when not selected.
DockingAutoHideTabSelectedBack
The background color of an docking auto-hide tab when selected.
DockingAutoHideTabSelectedBorder
The border color of an docking auto-hide tab when selected.
DockingAutoHideTabSelectedText
The text color of an docking auto-hide tab when selected.
DockingAutoHideTabStripBack
The background color of a docking auto-hide tab strip.
DockingAutoHideTabText
The text color of a docking auto-hide tab when not selected.
DockingWindowPreviewBack
The background color of the dock preview shown for a docking window.
DockingWindowPreviewBorder
The border color of the dock preview shown for a docking window.
DocumentWindowTabStripButtonBack
The background color of a button on a document window tab strip when in the default state.
DocumentWindowTabStripButtonBorder
The border color of a button on a document window tab strip when in the default state.
DocumentWindowTabStripButtonGlyph
The glyph color of a button on a document window tab strip when in the default state.
DocumentWindowTabStripButtonHotBack
The background color of a button on a document window tab strip when the mouse is over the button.
DocumentWindowTabStripButtonHotBorder
The border color of a button on a document window tab strip when the mouse is over the button.
DocumentWindowTabStripButtonHotGlyph
The glyph color of a button on a document window tab strip when the mouse is over the button.
DocumentWindowTabStripButtonPressedBack
The background color of a button on a document window tab strip when the button is pressed.
DocumentWindowTabStripButtonPressedBorder
The border color of a button on a document window tab strip when the button is pressed.
DocumentWindowTabStripButtonPressedGlyph
The glyph color of a button on a document window tab strip when the button is pressed.
DocumentWindowTabStripTabBack
The background color of a tab on a document window tab strip when in the default, unselected state.
DocumentWindowTabStripTabBorder
The border color of a tab on a document window tab strip when in the default, unselected state.
DocumentWindowTabStripTabDisabledText
The text color of a tab on a document window tab strip when the tab is disabled.
DocumentWindowTabStripTabHotBack
The background color of a tab on a document window tab strip when the mouse is over the tab.
DocumentWindowTabStripTabHotBorder
The border color of a tab on a document window tab strip when the mouse is over the tab.
DocumentWindowTabStripTabHotText
The text color of a tab on a document window tab strip when the mouse is over the tab.
DocumentWindowTabStripTabSelectedBack
The background color of a tab on a document window tab strip when in the selected state.
DocumentWindowTabStripTabSelectedBorder
The border color of a tab on a document window tab strip when in the selected state.
DocumentWindowTabStripTabSelectedText
The text color of a tab on a document window tab strip when in the selected state.
DocumentWindowTabStripTabSelectedUnfocusedBack
The background color of a tab on a document window tab strip when in the selected, unfocused state.
public virtual Color DocumentWindowTabStripTabSelectedUnfocusedBack { get; set; }
Property Value
DocumentWindowTabStripTabSelectedUnfocusedText
The text color of a tab on a document window tab strip when in the selected, unfocused state.
public virtual Color DocumentWindowTabStripTabSelectedUnfocusedText { get; set; }
Property Value
DocumentWindowTabStripTabText
The text color of a tab on a document window tab strip when in the default, unselected state.
FormBackGradientBegin
The begin gradient color of a form background.
FormBackGradientEnd
The end gradient color of a form background.
Intent
A WindowsColorSchemeIntent value that specifies whether the color scheme is meant to be light, dark, etc.
Key
The key that identifies the color scheme.
LunaBlue
The IWindowsColorScheme that represents the Luna blue color scheme.
LunaOliveGreen
The IWindowsColorScheme that represents the Luna olive green color scheme.
LunaSilver
The IWindowsColorScheme that represents the Luna silver color scheme.
MenuBack
The background color of a menu.
MenuBorder
The border color of a menu.
MenuCheckIconBack
The background color of a check icon in a menu in the default state.
MenuCheckIconDisabledBack
The background color of a check icon in a menu when the menu item is disabled.
MenuCheckIconDisabledGlyph
The glyph color of a check icon in a menu when the menu item is disabled.
MenuCheckIconGlyph
The glyph color of a check icon in a menu in the default state.
MenuCheckIconHotBack
The background color of a check icon in a menu when the mouse is over the menu item.
MenuCheckIconHotGlyph
The glyph color of a check icon in a menu when the mouse is over the menu item.
MenuIconColumnBackGradientBegin
The begin gradient color of a menu icon column background.
MenuIconColumnBackGradientEnd
The end gradient color of a menu icon column background.
MenuIconColumnBackGradientMiddle
The middle gradient color of a menu icon column background.
MetroDark
The IWindowsColorScheme that represents the Metro Dark color scheme.
MetroLight
The IWindowsColorScheme that represents the Metro Light color scheme.
NavigationBarGripperDark
The dark color of a navigation bar gripper.
NavigationBarGripperLight
The light color of a navigation bar gripper.
NavigationBarHeaderBackGradientBegin
The begin gradient color of a navigationbar header background.
NavigationBarHeaderBackGradientEnd
The end gradient color of a navigationbar header background.
NavigationBarHeaderText
The color of navigationbar header text.
NavigationPaneButtonBackGradientBegin
The begin gradient color of a navigationbar pane button background.
NavigationPaneButtonBackGradientEnd
The end gradient color of a navigationbar pane button background.
NavigationPaneButtonBackGradientMid1
The middle gradient color of a navigationbar pane button background.
NavigationPaneButtonBackGradientMid2
The middle gradient color of a navigationbar pane button background.
NavigationPaneButtonHotBackGradientBegin
The begin gradient color of a hot navigationbar pane button background.
NavigationPaneButtonHotBackGradientEnd
The end gradient color of a hot navigationbar pane button background.
NavigationPaneButtonHotBackGradientMid1
The middle gradient color of a navigationbar pane button background.
NavigationPaneButtonHotBackGradientMid2
The middle gradient color of a navigationbar pane button background.
NavigationPaneButtonHotPressedBackGradientBegin
The begin gradient color of a hot/pressed navigationbar pane button background.
public virtual Color NavigationPaneButtonHotPressedBackGradientBegin { get; set; }
Property Value
NavigationPaneButtonHotPressedBackGradientEnd
The end gradient color of a hot/pressed navigationbar pane button background.
public virtual Color NavigationPaneButtonHotPressedBackGradientEnd { get; set; }
Property Value
NavigationPaneButtonHotPressedBackGradientMid1
The middle gradient color of a hot/pressed navigationbar pane button background.
public virtual Color NavigationPaneButtonHotPressedBackGradientMid1 { get; set; }
Property Value
NavigationPaneButtonHotPressedBackGradientMid2
The middle gradient color of a hot/pressed navigationbar pane button background.
public virtual Color NavigationPaneButtonHotPressedBackGradientMid2 { get; set; }
Property Value
NavigationPaneButtonPressedBackGradientBegin
The begin gradient color of a pressed navigationbar pane button background.
public virtual Color NavigationPaneButtonPressedBackGradientBegin { get; set; }
Property Value
NavigationPaneButtonPressedBackGradientEnd
The end gradient color of a pressed navigationbar pane button background.
NavigationPaneButtonPressedBackGradientMid1
The middle gradient color of a pressed navigationbar pane button background.
NavigationPaneButtonPressedBackGradientMid2
The middle gradient color of a pressed navigationbar pane button background.
OfficeClassicBlack
The IWindowsColorScheme that represents the Office classic black color scheme.
OfficeClassicBlue
The IWindowsColorScheme that represents the Office classic blue color scheme.
OfficeClassicSilver
The IWindowsColorScheme that represents the Office classic silver color scheme.
StatusBarBack
The background color for a status bar.
StatusBarGripperDark
The dark color for the status bar gripper.
StatusBarGripperLight
The light color for the status bar gripper.
StatusBarPanelBorder
The border color for a status bar.
StatusBarPanelDisabledText
The disabled foreground color for a status bar.
StatusBarPanelLinkActiveText
The foreground color a link displayed in a status bar when it is active (i.e., mouse over).
StatusBarPanelLinkText
The normal foreground color a link displayed in a status bar.
StatusBarPanelLinkVisitedText
The foreground color a link displayed in a status bar that has been previously visited.
StatusBarPanelText
The foreground color for a status bar.
StatusBarProgressFilledBack
The filled background color of a progress bar displayed in a status bar.
public virtual Color StatusBarProgressFilledBack { get; set; }
Property Value
Remarks
Value does not apply to renderers which support native visual styles.
StatusBarProgressFilledText
The filled foreground color of a progress bar displayed in a status bar.
public virtual Color StatusBarProgressFilledText { get; set; }
Property Value
Remarks
Value does not apply to renderers which support native visual styles.
StatusBarProgressUnfilledBack
The unfilled background color of a progress bar displayed in a status bar.
public virtual Color StatusBarProgressUnfilledBack { get; set; }
Property Value
Remarks
Value does not apply to renderers which support native visual styles.
StatusBarProgressUnfilledText
The unfilled foreground color of a progress bar displayed in a status bar.
public virtual Color StatusBarProgressUnfilledText { get; set; }
Property Value
Remarks
Value does not apply to renderers which support native visual styles.
ToolBarBackGradientBegin
The begin gradient color of a toolbar background.
ToolBarBackGradientEnd
The end gradient color of a toolbar background.
ToolBarBackGradientMiddle
The middle gradient color of a toolbar background.
ToolBarFloatingTitleBack
The background color of a floating toolbar title bar.
ToolBarFloatingTitleText
The text color of a floating toolbar title bar.
ToolBarGripperDark
The dark color of a toolbar gripper.
ToolBarGripperLight
The light color of a toolbar gripper.
ToolBarOptionsBackGradientBegin
The begin gradient color of a toolbar options button background.
ToolBarOptionsBackGradientEnd
The end gradient color of a toolbar options button background.
ToolBarOptionsBackGradientMiddle
The middle gradient color of a toolbar options button background.
ToolBarOptionsHotBackGradientBegin
The begin gradient color of a hot toolbar options button background.
ToolBarOptionsHotBackGradientEnd
The end gradient color of a hot toolbar options button background.
ToolBarOptionsHotBackGradientMiddle
The middle gradient color of a hot toolbar options button background.
ToolBarOptionsPressedBackGradientBegin
The begin gradient color of a pressed toolbar options button background.
ToolBarOptionsPressedBackGradientEnd
The end gradient color of a pressed toolbar options button background.
ToolBarOptionsPressedBackGradientMiddle
The middle gradient color of a pressed toolbar options button background.
ToolBarSeparatorDark
The dark color of a toolbar separator.
ToolBarSeparatorLight
The light color of a toolbar separator.
ToolBarShadow
The color of a toolbar shadow.
ToolWindowTabStripButtonBack
The background color of a button on a tool window tab strip when in the default state.
ToolWindowTabStripButtonBorder
The border color of a button on a tool window tab strip when in the default state.
ToolWindowTabStripButtonGlyph
The glyph color of a button on a tool window tab strip when in the default state.
ToolWindowTabStripButtonHotBack
The background color of a button on a tool window tab strip when the mouse is over the button.
ToolWindowTabStripButtonHotBorder
The border color of a button on a tool window tab strip when the mouse is over the button.
ToolWindowTabStripButtonHotGlyph
The glyph color of a button on a tool window tab strip when the mouse is over the button.
ToolWindowTabStripButtonPressedBack
The background color of a button on a tool window tab strip when the button is pressed.
ToolWindowTabStripButtonPressedBorder
The border color of a button on a tool window tab strip when the button is pressed.
ToolWindowTabStripButtonPressedGlyph
The glyph color of a button on a tool window tab strip when the button is pressed.
ToolWindowTabStripTabBack
The background color of a tab on a tool window tab strip when in the default, unselected state.
ToolWindowTabStripTabBorder
The border color of a tab on a tool window tab strip when in the default, unselected state.
ToolWindowTabStripTabDisabledText
The text color of a tab on a tool window tab strip when the tab is disabled.
ToolWindowTabStripTabHotBack
The background color of a tab on a tool window tab strip when the mouse is over the tab.
ToolWindowTabStripTabHotBorder
The border color of a tab on a tool window tab strip when the mouse is over the tab.
ToolWindowTabStripTabHotText
The text color of a tab on a tool window tab strip when the mouse is over the tab.
ToolWindowTabStripTabSelectedBack
The background color of a tab on a tool window tab strip when in the selected state.
ToolWindowTabStripTabSelectedBorder
The border color of a tab on a tool window tab strip when in the selected state.
ToolWindowTabStripTabSelectedText
The text color of a tab on a tool window tab strip when in the selected state.
ToolWindowTabStripTabText
The text color of a tab on a tool window tab strip when in the default, unselected state.
VisualStudioBlueScheme
The IWindowsColorScheme that represents the Visual Studio Blue color scheme.
public static IWindowsColorScheme VisualStudioBlueScheme { get; }
Property Value
VisualStudioClassic
The IWindowsColorScheme that represents the Visual Studio 2005 color scheme.
WindowsClassic
The IWindowsColorScheme that represents the Windows Classic color scheme.
WindowsDefault
The IWindowsColorScheme that represents the default Windows color scheme.
Methods
Dispose(bool)
Releases the unmanaged resources used by the object and optionally releases the managed resources.
protected override void Dispose(bool disposing)
| Parameter | Type | Description |
|---|---|---|
| disposing | bool |
|
Remarks
This method is called by the public Dispose() method and the Finalize method.
Dispose invokes this method with the disposing parameter set to true.
Finalize invokes this method with disposing set to false.
GetColorScheme(WindowsColorSchemeType)
Returns the IWindowsColorScheme that represents the specified WindowsColorSchemeType.
public static IWindowsColorScheme GetColorScheme(WindowsColorSchemeType colorSchemeType)
| Parameter | Type | Description |
|---|---|---|
| colorSchemeType | WindowsColorSchemeType | The WindowsColorSchemeType to return. |
Returns
GetKnownColor(KnownColor)
A known color, optionally adjusted for the color scheme (e.g., dark schemes may adjust the color to be suited for a dark scheme).
public virtual Color GetKnownColor(KnownColor color)
| Parameter | Type | Description |
|---|---|---|
| color | KnownColor | The color. |
Returns
Initialize()
Initializes (or re-initializes) all the colors in the color scheme.
public void Initialize()
UpdateColors()
Updates the colors.
protected virtual void UpdateColors()
Remarks
This method is called when the color scheme is first created and when system color preferences change.
Inherited Members
- DisposableObjectBase.Dispose()
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()