Exemple #1
0
        Color GetColorBySymbol(char c, Color prevColor)
        {
            Color color = Settings.DefaultForeColor;

            switch (c)
            {
            case '!': break;

            case '"': break;

            case '№': break;

            case ';': break;

            case '%': break;

            case ':': break;

            case '?': break;

            case ',': break;

            case '.': break;

            case '*': break;

            case '(': break;

            case ')': break;

            case '-': break;

            case '—': break;

            case '_': break;

            case '=': break;

            case '+': break;

            case '/': break;

            case '\\': break;

            case '0': break;

            case '1': break;

            case '2': break;

            case '3': break;

            case '4': break;

            case '5': break;

            case '6': break;

            case '7': break;

            case '8': break;

            case '9': break;

            case '»': break;

            case '«': break;

            case '\u0301': color = prevColor; break;

            default:
                if (Settings.IsColorizerBukvEnabled)
                {
                    color = (SymbolInfo.IsGlasSymbol(c) ? Settings.GlasColor : Settings.SoglasColor);
                }
                break;
            }

            return(color);
        }