C# Class MissionPlanner.Utilities.ThemeManager

Helper class for the stylng 'theming' of forms and controls, and provides MessageBox replacements which are also styled
Exibir arquivo Open project: ArduPilot/MissionPlanner

Public Properties

Property Type Description
BGColor Color
BGColorTextBox Color
BSVButtonAreaBGColor Color
BannerColor1 Color
BannerColor2 Color
ButBG Color
ButBGBot Color
ButBorder Color
ButtonTextColor Color
ColorMouseDown Color
ColorMouseOver Color
ColorNotEnabled Color
ControlBGColor Color
CurrentPPMBackground Color
HorizontalPBValueColor Color
ProgressBarColorBot Color
ProgressBarColorTop Color
ProgressBarOutlineColor Color
RTBForeColor Color
TextColor Color
UnselectedTextColour Color
ZedGraphChartFill Color
ZedGraphLegendFill Color
ZedGraphPaneFill Color

Public Methods

Method Description
ApplyThemeTo ( Control control ) : void

Will recursively apply the current theme to 'control'

ApplyThemeTo ( object control ) : void
CustomColor ( ) : void
SetTheme ( Themes theme ) : void

Change the current theme. Existing controls are not affected

doxamlgen ( ) : void
xaml ( Control control ) : void

Private Methods

Method Description
ApplyCustomTheme ( Control temp, int level ) : void
ApplyTestTheme ( Control temp, int level ) : void
ApplyTheme ( Control temp, int level ) : void
SetBurntKermitColors ( ) : void
SetHighContrastColours ( ) : void
doxamlctls ( Control control, StreamWriter st ) : void

Method Details

ApplyThemeTo() public static method

Will recursively apply the current theme to 'control'
public static ApplyThemeTo ( Control control ) : void
control System.Windows.Forms.Control
return void

ApplyThemeTo() public static method

public static ApplyThemeTo ( object control ) : void
control object
return void

CustomColor() public static method

public static CustomColor ( ) : void
return void

SetTheme() public static method

Change the current theme. Existing controls are not affected
public static SetTheme ( Themes theme ) : void
theme Themes
return void

doxamlgen() public static method

public static doxamlgen ( ) : void
return void

xaml() public static method

public static xaml ( Control control ) : void
control System.Windows.Forms.Control
return void

Property Details

BGColor public_oe static_oe property

public static Color BGColor
return Color

BGColorTextBox public_oe static_oe property

public static Color BGColorTextBox
return Color

BSVButtonAreaBGColor public_oe static_oe property

public static Color BSVButtonAreaBGColor
return Color

BannerColor1 public_oe static_oe property

public static Color BannerColor1
return Color

BannerColor2 public_oe static_oe property

public static Color BannerColor2
return Color

ButBG public_oe static_oe property

public static Color ButBG
return Color

ButBGBot public_oe static_oe property

public static Color ButBGBot
return Color

ButBorder public_oe static_oe property

public static Color ButBorder
return Color

ButtonTextColor public_oe static_oe property

public static Color ButtonTextColor
return Color

ColorMouseDown public_oe static_oe property

public static Color ColorMouseDown
return Color

ColorMouseOver public_oe static_oe property

public static Color ColorMouseOver
return Color

ColorNotEnabled public_oe static_oe property

public static Color ColorNotEnabled
return Color

ControlBGColor public_oe static_oe property

public static Color ControlBGColor
return Color

CurrentPPMBackground public_oe static_oe property

public static Color CurrentPPMBackground
return Color

HorizontalPBValueColor public_oe static_oe property

public static Color HorizontalPBValueColor
return Color

ProgressBarColorBot public_oe static_oe property

public static Color ProgressBarColorBot
return Color

ProgressBarColorTop public_oe static_oe property

public static Color ProgressBarColorTop
return Color

ProgressBarOutlineColor public_oe static_oe property

public static Color ProgressBarOutlineColor
return Color

RTBForeColor public_oe static_oe property

public static Color RTBForeColor
return Color

TextColor public_oe static_oe property

public static Color TextColor
return Color

UnselectedTextColour public_oe static_oe property

public static Color UnselectedTextColour
return Color

ZedGraphChartFill public_oe static_oe property

public static Color ZedGraphChartFill
return Color

ZedGraphLegendFill public_oe static_oe property

public static Color ZedGraphLegendFill
return Color

ZedGraphPaneFill public_oe static_oe property

public static Color ZedGraphPaneFill
return Color