Inheritance: System.Windows.Forms.ProfessionalColorTable
コード例 #1
0
 public VisualStudioToolStripRenderer(DockPanelColorPalette palette)
     : base(new VisualStudioColorTable(palette))
 {
     _table                 = (VisualStudioColorTable)ColorTable;
     _palette               = palette;
     RoundedEdges           = false;
     _statusBarBrush        = new SolidBrush(palette.MainWindowStatusBarDefault.Background);
     _statusGripBrush       = new SolidBrush(palette.MainWindowStatusBarDefault.ResizeGrip);
     _statusGripAccentBrush = new SolidBrush(palette.MainWindowStatusBarDefault.ResizeGripAccent);
     _toolBarBrush          = new SolidBrush(palette.CommandBarToolbarDefault.Background);
     _gripBrush             = new SolidBrush(palette.CommandBarToolbarDefault.Grip);
     _toolBarBorderPen      = new Pen(palette.CommandBarToolbarDefault.Border);
 }
コード例 #2
0
        public VisualStudioToolStripRenderer(DockPanelColorPalette palette)
            : base(new VisualStudioColorTable(palette))
        {
            _table = (VisualStudioColorTable)ColorTable;
            _palette = palette;
            RoundedEdges = false;
            _statusBarBrush = new SolidBrush(palette.MainWindowStatusBarDefault.Background);
            _statusGripBrush = new SolidBrush(palette.MainWindowStatusBarDefault.ResizeGrip);
            _statusGripAccentBrush = new SolidBrush(palette.MainWindowStatusBarDefault.ResizeGripAccent);
            _toolBarBrush = new SolidBrush(palette.CommandBarToolbarDefault.Background);
            _gripBrush = new SolidBrush(palette.CommandBarToolbarDefault.Grip);
            _toolBarBorderPen = new Pen(palette.CommandBarToolbarDefault.Border);

            UseGlassOnMenuStrip = true;
        }