mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not call highlighter.setAttributes() on LAF change, because it hard-caches forced text attributes, to fix IJPL-175049 Editor updates slowly on the UI theme switch, it creates blinking effect
GitOrigin-RevId: 78fd183555a205623154b7d7363260eeb395838d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4068f1bfeb
commit
0488036009
+2
-1
@@ -311,7 +311,8 @@ public final class BackgroundUpdateHighlightersUtil {
|
||||
TextAttributesKey textAttributesKey = info.forcedTextAttributesKey == null ? info.type.getAttributesKey() : info.forcedTextAttributesKey;
|
||||
highlighter.setTextAttributesKey(textAttributesKey);
|
||||
|
||||
if (infoAttributes != null) {
|
||||
if (infoAttributes == TextAttributes.ERASE_MARKER ||
|
||||
infoAttributes != null && !infoAttributes.equals(highlighter.getTextAttributes(colorsScheme))) {
|
||||
highlighter.setTextAttributes(infoAttributes);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user