private void ResetOptions()
        {
            FontsAndColorsItems faci = ColUtils.GetTextEditorFontAndColorsItems(IDEUtils.DTE);
            Color back = ColUtils.GetBackgroundColourOf(faci, "Plain Text");

            if (ColUtils.IsLightTheme(back))
            {
                Settings.Default.OptionColorLight    = ColUtils.ConvertToDrawingColor(prevOptionColour);
                Settings.Default.SubOptionColorLight = ColUtils.ConvertToDrawingColor(prevSubOptionColour);
                Settings.Default.ArgumentColorLight  = ColUtils.ConvertToDrawingColor(prevArgumentColour);
                Settings.Default.DigitColorLight     = ColUtils.ConvertToDrawingColor(prevDigitColour);
                Settings.Default.StringColorLight    = ColUtils.ConvertToDrawingColor(prevStringColour);
            }
            else
            {
                Settings.Default.OptionColorDark    = ColUtils.ConvertToDrawingColor(prevOptionColour);
                Settings.Default.SubOptionColorDark = ColUtils.ConvertToDrawingColor(prevSubOptionColour);
                Settings.Default.ArgumentColorDark  = ColUtils.ConvertToDrawingColor(prevArgumentColour);
                Settings.Default.DigitColorDark     = ColUtils.ConvertToDrawingColor(prevDigitColour);
                Settings.Default.StringColorDark    = ColUtils.ConvertToDrawingColor(prevStringColour);
            }

            Settings.Default.Font = new System.Drawing.Font(prevFontName, prevFontSize);
        }
        private void colPicker_SelectedColorChanged(object sender, ColorPicker.EventArgs <Color> e)
        {
            List <RadioButton> radios = new List <RadioButton>()
            {
                Colours_Options, Colours_SubOptions, Colours_Arguments, Colours_Digits, Colours_Strings
            };

            RadioButton rad = radios.First(c => c.IsChecked == true);

            ((DockPanel)rad.Content).Children.OfType <ColorChip>().First().Color = e.Value;

            System.Drawing.Color col = ColUtils.ConvertToDrawingColor(e.Value);

            FontsAndColorsItems faci = ColUtils.GetTextEditorFontAndColorsItems(IDEUtils.DTE);
            Color back = ColUtils.GetBackgroundColourOf(faci, "Plain Text");

            if (ColUtils.IsLightTheme(back))
            {
                if (rad == Colours_Options)
                {
                    Settings.Default.OptionColorLight = col;
                }
                else if (rad == Colours_SubOptions)
                {
                    Settings.Default.SubOptionColorLight = col;
                }
                else if (rad == Colours_Arguments)
                {
                    Settings.Default.ArgumentColorLight = col;
                }
                else if (rad == Colours_Digits)
                {
                    Settings.Default.DigitColorLight = col;
                }
                else if (rad == Colours_Strings)
                {
                    Settings.Default.StringColorLight = col;
                }
            }
            else
            {
                if (rad == Colours_Options)
                {
                    Settings.Default.OptionColorDark = col;
                }
                else if (rad == Colours_SubOptions)
                {
                    Settings.Default.SubOptionColorDark = col;
                }
                else if (rad == Colours_Arguments)
                {
                    Settings.Default.ArgumentColorDark = col;
                }
                else if (rad == Colours_Digits)
                {
                    Settings.Default.DigitColorDark = col;
                }
                else if (rad == Colours_Strings)
                {
                    Settings.Default.StringColorDark = col;
                }
            }
        }