internal void SetForeColorInternal(Color value) { Scintilla.ColorBag[ToString() + ".ForeColor"] = value; NativeScintilla.StyleSetFore(_index, Utilities.ColorToRgb(value)); if (_index == (int)StylesCommon.CallTip) { NativeScintilla.CallTipSetFore(Utilities.ColorToRgb(value)); } }
internal void SetForeColorInternal(Color value) { if (value == SystemColors.InfoText) { Scintilla.ColorBag.Remove("CallTip.ForeColor"); } else { Scintilla.ColorBag["CallTip.ForeColor"] = value; } NativeScintilla.CallTipSetFore(Utilities.ColorToRgb(value)); }