public VS2012LightPaneIndicator(VS2012LightTheme theme) { SizeMode = PictureBoxSizeMode.AutoSize; Image = _bitmapPaneDiamond; Region = new Region(DisplayingGraphicsPath); _bitmapPaneDiamond = theme.ImageService.Dockindicator_PaneDiamond; _bitmapPaneDiamondLeft = theme.ImageService.Dockindicator_PaneDiamond_Fill; _bitmapPaneDiamondRight = theme.ImageService.Dockindicator_PaneDiamond_Fill; _bitmapPaneDiamondTop = theme.ImageService.Dockindicator_PaneDiamond_Fill; _bitmapPaneDiamondBottom = theme.ImageService.Dockindicator_PaneDiamond_Fill; _bitmapPaneDiamondFill = theme.ImageService.Dockindicator_PaneDiamond_Fill; _bitmapPaneDiamondHotSpot = theme.ImageService.Dockindicator_PaneDiamond_Hotspot; _bitmapPaneDiamondHotSpotIndex = theme.ImageService.DockIndicator_PaneDiamond_HotspotIndex; _displayingGraphicsPath = DrawHelper.CalculateGraphicsPathFromBitmap(_bitmapPaneDiamond); }
public FormMain() { CultureInfo c = CultureInfo.CurrentCulture; CultureInfo ui = CultureInfo.CurrentUICulture; if (c.Name != "en-US" && c.Name != "ja-JP") { c = new CultureInfo("en-US"); } if (ui.Name != "en-US" && ui.Name != "ja-JP") { ui = new CultureInfo("en-US"); } Thread.CurrentThread.CurrentCulture = c; Thread.CurrentThread.CurrentUICulture = ui; Translator = new DynamicTranslator(); Instance = this; this.SetStyle(ControlStyles.SupportsTransparentBackColor, true); InitializeComponent(); ThemeBase thm; switch (Configuration.Config.UI.Theme) { case Theme.Light: thm = new VS2012LightTheme(); break; case Theme.Dark: thm = new VS2012DarkTheme(); break; default: thm = new VS2012LightTheme(); break; } thm.Apply(MainDockPanel); }
public void CreateVisualStudio2012Light() { var ColorPalette = new VS2012LightTheme().ColorPalette; AssertColor(ColorPalette.AutoHideStripDefault.Background, ColorTranslator.FromHtml("#FFEFEFF2")); AssertColor(ColorPalette.AutoHideStripDefault.Border, ColorTranslator.FromHtml("#FFCCCEDB")); AssertColor(ColorPalette.AutoHideStripDefault.Text, ColorTranslator.FromHtml("#FF444444")); AssertColor(ColorPalette.AutoHideStripHovered.Background, ColorTranslator.FromHtml("#FFEFEFF2")); AssertColor(ColorPalette.AutoHideStripHovered.Border, ColorTranslator.FromHtml("#FF007ACC")); AssertColor(ColorPalette.AutoHideStripHovered.Text, ColorTranslator.FromHtml("#FF0E70C0")); AssertColor(ColorPalette.OverflowButtonDefault.Glyph, ColorTranslator.FromHtml("#FF717171")); AssertColor(ColorPalette.OverflowButtonHovered.Background, ColorTranslator.FromHtml("#FFFEFEFE")); AssertColor(ColorPalette.OverflowButtonHovered.Border, ColorTranslator.FromHtml("#FFFEFEFE")); AssertColor(ColorPalette.OverflowButtonHovered.Glyph, ColorTranslator.FromHtml("#FF007ACC")); AssertColor(ColorPalette.TabSelectedActive.Background, ColorTranslator.FromHtml("#FF007ACC")); AssertColor(ColorPalette.TabSelectedActive.Button, ColorTranslator.FromHtml("#FFD0E6F5")); AssertColor(ColorPalette.TabSelectedActive.Text, ColorTranslator.FromHtml("#FFFFFFFF")); AssertColor(ColorPalette.TabSelectedInactive.Background, ColorTranslator.FromHtml("#FFCCCEDB")); AssertColor(ColorPalette.TabSelectedInactive.Button, ColorTranslator.FromHtml("#FF6D6D70")); AssertColor(ColorPalette.TabSelectedInactive.Text, ColorTranslator.FromHtml("#FF717171")); AssertColor(ColorPalette.TabUnselected.Text, ColorTranslator.FromHtml("#FF1E1E1E")); AssertColor(ColorPalette.TabUnselectedHovered.Background, ColorTranslator.FromHtml("#FF1C97EA")); AssertColor(ColorPalette.TabUnselectedHovered.Button, ColorTranslator.FromHtml("#FFD0E6F5")); AssertColor(ColorPalette.TabUnselectedHovered.Text, ColorTranslator.FromHtml("#FFFFFFFF")); AssertColor(ColorPalette.TabButtonSelectedActiveHovered.Background, ColorTranslator.FromHtml("#FF1C97EA")); AssertColor(ColorPalette.TabButtonSelectedActiveHovered.Border, ColorTranslator.FromHtml("#FF1C97EA")); AssertColor(ColorPalette.TabButtonSelectedActiveHovered.Glyph, ColorTranslator.FromHtml("#FFFFFFFF")); AssertColor(ColorPalette.TabButtonSelectedInactiveHovered.Background, ColorTranslator.FromHtml("#FFE6E7ED")); AssertColor(ColorPalette.TabButtonSelectedInactiveHovered.Border, ColorTranslator.FromHtml("#FFE6E7ED")); AssertColor(ColorPalette.TabButtonSelectedInactiveHovered.Glyph, ColorTranslator.FromHtml("#FF717171")); AssertColor(ColorPalette.TabButtonUnselectedTabHoveredButtonHovered.Background, ColorTranslator.FromHtml("#FF52B0EF")); AssertColor(ColorPalette.TabButtonUnselectedTabHoveredButtonHovered.Border, ColorTranslator.FromHtml("#FF52B0EF")); AssertColor(ColorPalette.TabButtonUnselectedTabHoveredButtonHovered.Glyph, ColorTranslator.FromHtml("#FFFFFFFF")); AssertColor(ColorPalette.MainWindowActive.Background, ColorTranslator.FromHtml("#FFEFEFF2")); AssertColor(ColorPalette.MainWindowStatusBarDefault.Background, ColorTranslator.FromHtml("#FF007ACC")); AssertColor(ColorPalette.ToolWindowCaptionActive.Background, ColorTranslator.FromHtml("#FF007ACC")); AssertColor(ColorPalette.ToolWindowCaptionActive.Button, ColorTranslator.FromHtml("#FFFFFFFF")); AssertColor(ColorPalette.ToolWindowCaptionActive.Grip, ColorTranslator.FromHtml("#FF59A8DE")); AssertColor(ColorPalette.ToolWindowCaptionActive.Text, ColorTranslator.FromHtml("#FFFFFFFF")); AssertColor(ColorPalette.ToolWindowCaptionInactive.Background, ColorTranslator.FromHtml("#FFEFEFF2")); AssertColor(ColorPalette.ToolWindowCaptionInactive.Button, ColorTranslator.FromHtml("#FF1E1E1E")); AssertColor(ColorPalette.ToolWindowCaptionInactive.Grip, ColorTranslator.FromHtml("#FF999999")); AssertColor(ColorPalette.ToolWindowCaptionInactive.Text, ColorTranslator.FromHtml("#FF444444")); AssertColor(ColorPalette.ToolWindowCaptionButtonActiveHovered.Background, ColorTranslator.FromHtml("#FF52B0EF")); AssertColor(ColorPalette.ToolWindowCaptionButtonActiveHovered.Border, ColorTranslator.FromHtml("#FF52B0EF")); AssertColor(ColorPalette.ToolWindowCaptionButtonActiveHovered.Glyph, ColorTranslator.FromHtml("#FFFFFFFF")); AssertColor(ColorPalette.ToolWindowCaptionButtonInactiveHovered.Background, ColorTranslator.FromHtml("#FFF7F7F9")); AssertColor(ColorPalette.ToolWindowCaptionButtonInactiveHovered.Border, ColorTranslator.FromHtml("#FFF7F7F9")); AssertColor(ColorPalette.ToolWindowCaptionButtonInactiveHovered.Glyph, ColorTranslator.FromHtml("#FF717171")); AssertColor(ColorPalette.ToolWindowTabSelectedActive.Background, ColorTranslator.FromHtml("#FFF6F6F6")); AssertColor(ColorPalette.ToolWindowSeparator, ColorTranslator.FromHtml("#FFCCCEDB")); AssertColor(ColorPalette.ToolWindowTabSelectedActive.Text, ColorTranslator.FromHtml("#FF0E70C0")); AssertColor(ColorPalette.ToolWindowTabSelectedInactive.Background, ColorTranslator.FromHtml("#FFF6F6F6")); AssertColor(ColorPalette.ToolWindowTabSelectedInactive.Text, ColorTranslator.FromHtml("#FF0E70C0")); AssertColor(ColorPalette.ToolWindowTabUnselected.Text, ColorTranslator.FromHtml("#FF444444")); AssertColor(ColorPalette.ToolWindowTabUnselectedHovered.Background, ColorTranslator.FromHtml("#FFFEFEFE")); AssertColor(ColorPalette.ToolWindowTabUnselectedHovered.Text, ColorTranslator.FromHtml("#FF007ACC")); }