本文整理汇总了C#中MetroThemeStyle类的典型用法代码示例。如果您正苦于以下问题:C# MetroThemeStyle类的具体用法?C# MetroThemeStyle怎么用?C# MetroThemeStyle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MetroThemeStyle类属于命名空间,在下文中一共展示了MetroThemeStyle类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Normal
public static Color Normal(MetroThemeStyle theme)
{
if (theme == MetroThemeStyle.Dark)
return Color.FromArgb(68, 68, 68);
return Color.FromArgb(204, 204, 204);
}
示例2: Press
public static Color Press(MetroThemeStyle theme)
{
if (theme == MetroThemeStyle.Dark)
return Color.FromArgb(238, 238, 238);
return Color.FromArgb(51, 51, 51);
}
示例3: Hover
public static Color Hover(MetroThemeStyle theme)
{
if (theme == MetroThemeStyle.Dark)
return Color.FromArgb(170, 170, 170);
return Color.FromArgb(102, 102, 102);
}
示例4: Disabled
public static Color Disabled(MetroThemeStyle theme)
{
if (theme == MetroThemeStyle.Dark)
return Color.FromArgb(109, 109, 109);
return Color.FromArgb(155, 155, 155);
}
示例5: LauncherCustomControl
internal LauncherCustomControl(MetroTabControl tabControl, int totalCount, int activeCount, int newSet,
MetroThemeStyle theme, AccountClass account)
{
_account = account;
FixControls(newSet, theme, account);
AddControlsToForm(tabControl, activeCount, newSet);
ID = totalCount;
BindEvents();
}
示例6: Form
public static Color Form(MetroThemeStyle theme)
{
// these are co-ordinated with the flat shadow
if (theme == MetroThemeStyle.Dark)
return Color.FromArgb(153, 153, 153);
return Color.FromArgb(153, 153, 153);
}
示例7: MetroMenu
/// <summary>
/// Creates a new metro menu with a particular theme and color
/// </summary>
/// <param name="Theme">The metro theme</param>
/// <param name="Color">The metro color pallet</param>
public MetroMenu(MetroThemeStyle Theme, MetroColorStyle Color)
: base()
{
this.RenderMode = ToolStripRenderMode.Professional;
this.TabStop = false;
this.Name = "MainMenu";
this.ChangeStyle(Theme, Color);
this.ItemAdded += MetroMenu_ItemAdded;
this.ItemRemoved += MetroMenu_ItemRemoved;
}
示例8: ChangeStyle
/// <summary>
/// Changes the theme and/or color of this menu to a particular value
/// </summary>
/// <param name="Theme">The theme to change to</param>
/// <param name="Color">The color to change to</param>
public void ChangeStyle(MetroThemeStyle Theme, MetroColorStyle Color)
{
this.MetroTheme = Theme;
this.MetroColor = Color;
this.Renderer = new ToolStripProfessionalRenderer(new Drawing.MenuColorPallet(this.MetroTheme, this.MetroColor));
System.Drawing.Color BC = MetroFramework.Drawing.MetroPaint.BackColor.Form(this.MetroTheme);
System.Drawing.Color FC = MetroFramework.Drawing.MetroPaint.ForeColor.Title(this.MetroTheme);
System.Drawing.Color Border = MetroFramework.Drawing.MetroPaint.BorderColor.Form(this.MetroTheme);
this.BackColor = BC;
this.ForeColor = FC;
foreach (var Item in this.Items) ApplyColorsToMenuItem(BC, FC, Item);
this.Refresh();
}
示例9: Form
public static Color Form(MetroThemeStyle theme)
{
if (theme == MetroThemeStyle.Dark)
return Color.FromArgb(45, 45, 48);
return Color.FromArgb(231, 232, 232);
}
示例10: Title
public static Color Title(MetroThemeStyle theme)
{
if (theme == MetroThemeStyle.Dark)
return Color.FromArgb(255, 255, 255);
return Color.FromArgb(0, 0, 0);
}
示例11: SetValuesAccordingToLoadedSettings
private void SetValuesAccordingToLoadedSettings()
{
CurrentThemeStyle = (MetroThemeStyle) Config.Singleton.GeneralSettings.ThemeSetting;
metroStyleManager.Theme = CurrentThemeStyle;
metroStyleManager.Style = (MetroColorStyle) Config.Singleton.GeneralSettings.StyleSetting;
chkBoxMinimize.Checked = Config.Singleton.GeneralSettings.MinimizeWindows;
chkBoxNewIp.Checked = Config.Singleton.GeneralSettings.CheckForIP;
}
示例12: SwapTheme
private void SwapTheme()
{
CurrentThemeStyle = CurrentThemeStyle == MetroThemeStyle.Light
? MetroThemeStyle.Dark
: MetroThemeStyle.Light;
metroStyleManager.Theme = CurrentThemeStyle;
Config.Singleton.GeneralSettings.SetThemeSetting((int) CurrentThemeStyle);
}
示例13: contextcolors
public contextcolors(MetroFramework.MetroThemeStyle Theme, MetroColorStyle Style)
{
_theme = Theme;
_style = Style;
}
示例14: Hover
public static Color Hover(MetroThemeStyle theme)
{
if (theme == MetroThemeStyle.Dark)
return Color.FromArgb(62, 62, 64);
return Color.FromArgb(248, 249, 250);
}
示例15: Press
public static Color Press(MetroThemeStyle theme)
{
if (theme == MetroThemeStyle.Dark)
return Color.FromArgb(27, 27, 28);
return Color.FromArgb(231, 232, 236);
}