Visual Studio 2012 Dark theme.
Inheritance: ThemeBase
コード例 #1
0
            public VS2012LightPaneIndicator(VS2012DarkTheme 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);
            }
コード例 #2
0
            public VS2012LightPanelIndicator(DockStyle dockStyle, VS2012DarkTheme theme)
            {
                m_dockStyle = dockStyle;
                SizeMode = PictureBoxSizeMode.AutoSize;
                Image = ImageInactive;

                _imagePanelLeft = theme.ImageService.DockIndicator_PanelLeft;
                _imagePanelRight = theme.ImageService.DockIndicator_PanelRight;
                _imagePanelTop = theme.ImageService.DockIndicator_PanelTop;
                _imagePanelBottom = theme.ImageService.DockIndicator_PanelBottom;
                _imagePanelFill = theme.ImageService.DockIndicator_PanelFill;
                _imagePanelLeftActive = theme.ImageService.DockIndicator_PanelLeft;
                _imagePanelRightActive = theme.ImageService.DockIndicator_PanelRight;
                _imagePanelTopActive = theme.ImageService.DockIndicator_PanelTop;
                _imagePanelBottomActive = theme.ImageService.DockIndicator_PanelBottom;
                _imagePanelFillActive = theme.ImageService.DockIndicator_PanelFill;
            }
コード例 #3
0
		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);
        }
コード例 #4
0
        public void CreateVisualStudio2012Dark()
        {
            var ColorPalette = new VS2012DarkTheme().ColorPalette;

            AssertColor(ColorPalette.AutoHideStripDefault.Background, ColorTranslator.FromHtml("#FF2D2D30"));
            AssertColor(ColorPalette.AutoHideStripDefault.Border, ColorTranslator.FromHtml("#FF3F3F46"));
            AssertColor(ColorPalette.AutoHideStripDefault.Text, ColorTranslator.FromHtml("#FFD0D0D0"));
            AssertColor(ColorPalette.AutoHideStripHovered.Background, ColorTranslator.FromHtml("#FF2D2D30"));
            AssertColor(ColorPalette.AutoHideStripHovered.Border, ColorTranslator.FromHtml("#FF007ACC"));
            AssertColor(ColorPalette.AutoHideStripHovered.Text, ColorTranslator.FromHtml("#FF0097FB"));
            AssertColor(ColorPalette.OverflowButtonDefault.Glyph, ColorTranslator.FromHtml("#FFF1F1F1"));
            AssertColor(ColorPalette.OverflowButtonHovered.Background, ColorTranslator.FromHtml("#FF3E3E40"));
            AssertColor(ColorPalette.OverflowButtonHovered.Border, ColorTranslator.FromHtml("#FF3E3E40"));
            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("#FF3F3F46"));
            AssertColor(ColorPalette.TabSelectedInactive.Button, ColorTranslator.FromHtml("#FF6D6D70"));
            AssertColor(ColorPalette.TabSelectedInactive.Text, ColorTranslator.FromHtml("#FFF1F1F1"));
            AssertColor(ColorPalette.TabUnselected.Text, ColorTranslator.FromHtml("#FFF1F1F1"));
            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("#FF555555"));
            AssertColor(ColorPalette.TabButtonSelectedInactiveHovered.Border, ColorTranslator.FromHtml("#FF555555"));
            AssertColor(ColorPalette.TabButtonSelectedInactiveHovered.Glyph, ColorTranslator.FromHtml("#FFF1F1F1"));
            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("#FF2D2D30"));
            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("#FF2D2D30"));
            AssertColor(ColorPalette.ToolWindowCaptionInactive.Button, ColorTranslator.FromHtml("#FFF1F1F1"));
            AssertColor(ColorPalette.ToolWindowCaptionInactive.Grip, ColorTranslator.FromHtml("#FF46464A"));
            AssertColor(ColorPalette.ToolWindowCaptionInactive.Text, ColorTranslator.FromHtml("#FFD0D0D0"));
            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("#FF393939"));
            AssertColor(ColorPalette.ToolWindowCaptionButtonInactiveHovered.Border, ColorTranslator.FromHtml("#FF393939"));
            AssertColor(ColorPalette.ToolWindowCaptionButtonInactiveHovered.Glyph, ColorTranslator.FromHtml("#FFF1F1F1"));
            AssertColor(ColorPalette.ToolWindowTabSelectedActive.Background, ColorTranslator.FromHtml("#FF252526"));
            AssertColor(ColorPalette.ToolWindowSeparator, ColorTranslator.FromHtml("#FF3F3F46"));
            AssertColor(ColorPalette.ToolWindowTabSelectedActive.Text, ColorTranslator.FromHtml("#FF0097FB"));
            AssertColor(ColorPalette.ToolWindowTabSelectedInactive.Background, ColorTranslator.FromHtml("#FF252526"));
            AssertColor(ColorPalette.ToolWindowTabSelectedInactive.Text, ColorTranslator.FromHtml("#FF0097FB"));
            AssertColor(ColorPalette.ToolWindowTabUnselected.Text, ColorTranslator.FromHtml("#FFD0D0D0"));
            AssertColor(ColorPalette.ToolWindowTabUnselectedHovered.Background, ColorTranslator.FromHtml("#FF3E3E40"));
            AssertColor(ColorPalette.ToolWindowTabUnselectedHovered.Text, ColorTranslator.FromHtml("#FF55AAFF"));
        }