示例#1
0
    protected void OnColorDefault(object sender, EventArgs e)
    {
        // Remember the new color scheme selected
        _colorIndex = 0;

        // Define main Form back color
        _filler.TextColor = SystemColors.MenuText;
        _filler.BackColor = SystemColors.Control;
        this.BackColor    = SystemColors.Control;

        // Define the menu/status bars
        _topMenu.ResetColors();
        _topMenu.Font = SystemInformation.MenuFont;
        _filler.Font  = SystemInformation.MenuFont;

        _manager.ResetColors();
        _manager.CaptionFont    = SystemInformation.MenuFont;
        _manager.TabControlFont = SystemInformation.MenuFont;

        // Need to manually update the colors of created Panels/Forms
        foreach (Content c in _manager.Contents)
        {
            DefineControlColors(c);
        }
    }