Azavea.NijPredictivePolicing.AcsAlchemistGui.MainForm.FixWeirdStyles C# (CSharp) Method

FixWeirdStyles() protected method

Windows configurations differ in the actual colors used for different elements 'InactiveText', 'BackgroundColor', etc. Our log text is a little 'grayed out' to be less distracting, but on some configurations this can make it invisible.
protected FixWeirdStyles ( ) : void
return void
        protected void FixWeirdStyles()
        {
            //fix for windows with weird styles
            if (this.txtLogConsole.ForeColor.ToArgb() == this.txtLogConsole.BackColor.ToArgb())
            {
                //this happens on some windows configurations:
                this.txtLogConsole.ForeColor = System.Drawing.SystemColors.WindowText;
            }
        }