Example #1
0
        public void UpdateUIPreferences()
        {
            autoTableCheckbox.Checked = S.Get("AutocompleteInsertTables", false);
            autoAliasCheckbox.Checked = S.Get("AutocompleteInsertAliases", false);

            BackColor = UI.headerBackColor;
            ForeColor = UI.headerForeColor;
            foreach (Control c in buttons)
            {
                ToolButton b = c as ToolButton;
                if (b != null)
                {
                    b.SetUIPreferences(BackColor, UI.buttonHoverColor, UI.smallButtonImages);
                }
                ToolCheckBox cb = c as ToolCheckBox;
                if (cb != null)
                {
                    cb.SetUIPreferences(BackColor, UI.buttonHoverColor, UI.buttonCheckedColor, UI.smallButtonImages);
                }
            }


            // foreach (EditorHeaderDropdown combo in dropdowns)


            Invalidate(true);
        }
Example #2
0
 void SetButtonUiPreferences(List <Control> list)
 {
     foreach (Control c in list)
     {
         ToolCheckBox cb = c as ToolCheckBox;
         if (cb != null)
         {
             cb.SetUIPreferences(header.BackColor, UI.buttonHoverColor, UI.buttonCheckedColor, buttonImages);
         }
         else
         {
             ToolButton b = c as ToolButton;
             if (b != null)
             {
                 b.SetUIPreferences(header.BackColor, UI.buttonHoverColor, buttonImages);
             }
         }
     }
 }
Example #3
0
        public void UpdateUIPreferences()
        {
            searchTextBox.BackColor = UI.headerSearchBackground;
            searchTextBox.ForeColor = UI.passiveForeColor;
            buttonImages            = UI.smallButtonImages;
            tree.Font        = Font = UI.environmentFont;
            tree.ImageList   = UI.treeImages;
            label.ForeColor  = UI.headerForeColor;
            header.BackColor = UI.headerBackColor;
            BackColor        = tree.BackColor = UI.passiveBackColor;
            tree.ForeColor   = ForeColor = UI.passiveForeColor;
            if (parseTree != null)
            {
                // parseTree.ImageList = UI.treeImages;
                parseTree.Font      = Font;
                parseTree.BackColor = BackColor;
                parseTree.ForeColor = ForeColor;
                SetButtonUiPreferences(parseTreeButtons);
            }

            xButton.SetUIPreferences(header.BackColor, UI.toolCheckboxCheckedColor, buttonImages);
            SetButtonUiPreferences(buttons);
        }