当前位置: 首页>>代码示例>>C#>>正文


C# MetroThemeStyle类代码示例

本文整理汇总了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);
                }
开发者ID:samuraitruong,项目名称:comitdownloader,代码行数:7,代码来源:MetroPaint.cs

示例2: Press

                public static Color Press(MetroThemeStyle theme)
                {
                    if (theme == MetroThemeStyle.Dark)
                        return Color.FromArgb(238, 238, 238);

                    return Color.FromArgb(51, 51, 51);
                }
开发者ID:samuraitruong,项目名称:comitdownloader,代码行数:7,代码来源:MetroPaint.cs

示例3: Hover

                public static Color Hover(MetroThemeStyle theme)
                {
                    if (theme == MetroThemeStyle.Dark)
                        return Color.FromArgb(170, 170, 170);

                    return Color.FromArgb(102, 102, 102);
                }
开发者ID:samuraitruong,项目名称:comitdownloader,代码行数:7,代码来源:MetroPaint.cs

示例4: Disabled

                public static Color Disabled(MetroThemeStyle theme)
                {
                    if (theme == MetroThemeStyle.Dark)
                        return Color.FromArgb(109, 109, 109);

                    return Color.FromArgb(155, 155, 155);
                }
开发者ID:samuraitruong,项目名称:comitdownloader,代码行数:7,代码来源:MetroPaint.cs

示例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();
 }
开发者ID:Vipeax,项目名称:GW2WinMan,代码行数:9,代码来源:LauncherCustomControl.cs

示例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);
            }
开发者ID:paulogeneses,项目名称:MetroFramework,代码行数:9,代码来源:MetroPaint.cs

示例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;
        }
开发者ID:bsmr-csharp,项目名称:SimplexUniverseConcept2014,代码行数:16,代码来源:MetroMenu.cs

示例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();
 }
开发者ID:bsmr-csharp,项目名称:SimplexUniverseConcept2014,代码行数:18,代码来源:MetroMenu.cs

示例9: Form

            public static Color Form(MetroThemeStyle theme)
            {
                if (theme == MetroThemeStyle.Dark)
                    return Color.FromArgb(45, 45, 48);

                return Color.FromArgb(231, 232, 232);
            }
开发者ID:WildGenie,项目名称:winforms-modernui,代码行数:7,代码来源:MetroPaint.cs

示例10: Title

            public static Color Title(MetroThemeStyle theme)
            {
                if (theme == MetroThemeStyle.Dark)
                    return Color.FromArgb(255, 255, 255);

                return Color.FromArgb(0, 0, 0);
            }
开发者ID:samuraitruong,项目名称:comitdownloader,代码行数:7,代码来源:MetroPaint.cs

示例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;
 }
开发者ID:Vipeax,项目名称:GW2WinMan,代码行数:8,代码来源:MainForm.cs

示例12: SwapTheme

 private void SwapTheme()
 {
     CurrentThemeStyle = CurrentThemeStyle == MetroThemeStyle.Light
                             ? MetroThemeStyle.Dark
                             : MetroThemeStyle.Light;
     metroStyleManager.Theme = CurrentThemeStyle;
     Config.Singleton.GeneralSettings.SetThemeSetting((int) CurrentThemeStyle);
 }
开发者ID:Vipeax,项目名称:GW2WinMan,代码行数:8,代码来源:MainForm.cs

示例13: contextcolors

 public contextcolors(MetroFramework.MetroThemeStyle Theme, MetroColorStyle Style)
 {
     _theme = Theme;
     _style = Style;
 }
开发者ID:SivilTaram,项目名称:BUAA_DataBase,代码行数:5,代码来源:MetroContextMenu.cs

示例14: Hover

                public static Color Hover(MetroThemeStyle theme)
                {
                    if (theme == MetroThemeStyle.Dark)
                        return Color.FromArgb(62, 62, 64);

                    return Color.FromArgb(248, 249, 250);
                }
开发者ID:WildGenie,项目名称:winforms-modernui,代码行数:7,代码来源:MetroPaint.cs

示例15: Press

                public static Color Press(MetroThemeStyle theme)
                {
                    if (theme == MetroThemeStyle.Dark)
                        return Color.FromArgb(27, 27, 28);

                    return Color.FromArgb(231, 232, 236);
                }
开发者ID:WildGenie,项目名称:winforms-modernui,代码行数:7,代码来源:MetroPaint.cs


注:本文中的MetroThemeStyle类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。