Example #1
0
        private void SetTheme()
        {
            if (XrmToolBox.Options.Instance.Theme != null)
            {
                switch (XrmToolBox.Options.Instance.Theme)
                {
                case "Blue theme":
                {
                    var theme = new VS2015BlueTheme();
                    dpMain.Theme = theme;
                }
                break;

                case "Light theme":
                {
                    var theme = new VS2015LightTheme();
                    dpMain.Theme = theme;
                }
                break;

                case "Dark theme":
                {
                    var theme = new VS2015DarkTheme();
                    dpMain.Theme = theme;
                }
                break;
                }
            }
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VisualStudioBlueTheme"/>.
 /// </summary>
 public VisualStudioBlueTheme()
 {
     mApplicationTheme = new VS2015BlueTheme();
     mColorPalette     = new VisualStudioBluePalette();
     mMetrics          = new VisualStudioBlueMetrics();
     mResources        = new VisualStudioBlueResources();
 }
Example #3
0
        public PnPMain(string[] args)
        {
            InitializeComponent();

            this.dockPanel = new WeifenLuo.WinFormsUI.Docking.DockPanel();

            var theme = new VS2015BlueTheme();

            this.dockPanel.Theme = theme;

            this.dockPanel.Dock = System.Windows.Forms.DockStyle.Fill;
            this.Controls.Add(this.dockPanel);
            this.dockPanel.SetBounds(0, 0, Width, Height);

            TheBOMList = new BOMList(this);
            TheBOMList.Show(dockPanel, DockState.DockLeft);

            dockPanel.UpdateDockWindowZOrder(DockStyle.Left, true);

            A1 = new Actions(this);
            A1.Show(dockPanel);

            BoardDisp = new BoardDisplay(this, false);
            BoardDisp.Show(A1.Pane, DockAlignment.Bottom, 0.7);
        }
Example #4
0
        private void MainWindows_Load(object sender, EventArgs e)
        {
            var theme = new VS2015BlueTheme();

            dockPanel1.Theme = theme;
            propForm.Show(dockPanel1, DockState.DockRight);
            lineForm.Show(dockPanel1, DockState.DockLeft);
            wellForm.Show(dockPanel1, DockState.DockLeft);
            chartView.Show(dockPanel1, DockState.Document);
        }
Example #5
0
        public SolderToolMain(string[] args)
        {
            InitializeComponent();
            KeyPreview = true;

            var theme = new VS2015BlueTheme();

            this.dockPanel1.Theme           = theme;
            this.dockPanel1.PreviewKeyDown += SolderToolMain_PreviewKeyDown;

            Parts = new PartList(this);
            Parts.Show(this.dockPanel1, DockState.DockLeft);
            // Parts.DockTo(this.dockPanel, DockStyle.Left);
            foreach (var a in args)
            {
                LoadDocument(a);
            }
        }
        public GerberViewerMainForm(string[] args)
        {
            Gerber.ArcQualityScaleFactor = 20;


            InitializeComponent();

            _log           = new StandardConsoleLog();
            this.dockPanel = new WeifenLuo.WinFormsUI.Docking.DockPanel();

            var theme = new VS2015BlueTheme();

            this.dockPanel.Theme = theme;

            this.dockPanel.Dock = System.Windows.Forms.DockStyle.Fill;
            this.Controls.Add(this.dockPanel);

            dockPanel.UpdateDockWindowZOrder(DockStyle.Left, true);
            ShowDockContent();

            List <String> files = new List <string>();

            foreach (string S in args)
            {
                if (Directory.Exists(S))
                {
                    LoadGerberFolder(Directory.GetFiles(S).ToList());
                }
                else
                {
                    if (File.Exists(S))
                    {
                        files.Add(S);
                    }
                }
            }
            if (files.Count > 0)
            {
                LoadGerberFolder(files);
            }
        }
Example #7
0
        private void InitializePanels()
        {
            _dockPanel        = new DockPanel();
            _vS2015LightTheme = new VS2015LightTheme();
            _vS2015BlueTheme  = new VS2015BlueTheme();
            _vS2015DarkTheme  = new VS2015DarkTheme();

            _currentTheme = _optionSettings.Theme;

            ThemeBase currentTheme = _vS2015LightTheme;

            switch (_currentTheme)
            {
            case DockingTheme.LightTheme:
                currentTheme = _vS2015LightTheme;
                break;

            case DockingTheme.BlueTheme:
                currentTheme = _vS2015BlueTheme;
                break;

            case DockingTheme.DarkTheme:
                currentTheme = _vS2015DarkTheme;
                break;
            }

            _dockPanel.Dock                       = DockStyle.Fill;
            _dockPanel.DockBackColor              = Color.White;
            _dockPanel.DockBottomPortion          = 300D;
            _dockPanel.DockLeftPortion            = 300D;
            _dockPanel.DockRightPortion           = 300D;
            _dockPanel.DockTopPortion             = 150D;
            _dockPanel.Font                       = new Font("Tahoma", 12F, FontStyle.Regular, GraphicsUnit.World, 0);
            _dockPanel.Location                   = new Point(0, 49);
            _dockPanel.Name                       = "dockPanel";
            _dockPanel.Padding                    = new Padding(6);
            _dockPanel.RightToLeftLayout          = true;
            _dockPanel.ShowAutoHideContentOnHover = true;
            _dockPanel.Size                       = new Size(this.Width - 10, this.Height - 10);
            _dockPanel.TabIndex                   = 0;
            _dockPanel.Theme                      = currentTheme;
            _dockPanel.DocumentStyle              = DocumentStyle.DockingWindow;
            _dockPanel.ShowDocumentIcon           = true;
            _dockPanel.AllowEndUserDocking        = false;
            _dockPanel.AllowEndUserNestedDocking  = false;

            this.Controls.Add(_dockPanel);

            _vS2015LightTheme.Skin.DockPaneStripSkin.TextFont = new Font("Segoe UI", 16F, FontStyle.Regular, GraphicsUnit.World, 0);
            _vS2015BlueTheme.Skin.DockPaneStripSkin.TextFont  = new Font("Segoe UI", 16F, FontStyle.Regular, GraphicsUnit.World, 0);
            _vS2015DarkTheme.Skin.DockPaneStripSkin.TextFont  = new Font("Segoe UI", 16F, FontStyle.Regular, GraphicsUnit.World, 0);

            _debugPanel      = new DebugDockPanel();
            _debugPanel.Text = "Debugging";
            _debugPanel.Show(_dockPanel, DockState.DockBottomAutoHide);

            //_testPanel = new TestDockPanel();
            //_testPanel.Text = "Test";
            //_testPanel.Show(_dockPanel, DockState.Document);

            _inputPanel      = new SvgInputDockPanel();
            _inputPanel.Text = "Svg Input";
            _inputPanel.Show(_dockPanel, DockState.Document);

            _settingsPanel      = new SettingsDockPanel();
            _settingsPanel.Text = "Settings";
            _settingsPanel.Show(_inputPanel.Pane, null);

            var dockPanels = new DockPanelContent[]
            {
                _debugPanel,
                _inputPanel,
                _settingsPanel
            };

            foreach (var dockPanel in dockPanels)
            {
                dockPanel.InitializePanel(this, _optionSettings, currentTheme);
            }

            _dockPanel.ActiveContentChanged  += OnDockPanelActiveContentChanged;
            _dockPanel.ActiveDocumentChanged += OnDockPanelActiveDocumentChanged;
            _dockPanel.ActivePaneChanged     += OnDockPanelActivePaneChanged;

            _inputPanel.Activate();
        }
Example #8
0
 public BlueTheme()
 {
     PanelTheme = new VS2015BlueTheme();
     MenuTheme  = new MenuTheme.BlueTheme();
 }