mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Frame and editor background images: turn off for supplementary editors
This commit is contained in:
+3
-2
@@ -37,6 +37,7 @@ import com.intellij.openapi.ui.TypingTarget;
|
||||
import com.intellij.openapi.util.ActionCallback;
|
||||
import com.intellij.openapi.util.TextRange;
|
||||
import com.intellij.openapi.wm.impl.IdeBackgroundUtil;
|
||||
import com.intellij.ui.EditorTextField;
|
||||
import com.intellij.ui.Grayer;
|
||||
import com.intellij.ui.components.Magnificator;
|
||||
import com.intellij.util.ui.UIUtil;
|
||||
@@ -170,8 +171,8 @@ public class EditorComponentImpl extends JComponent implements Scrollable, DataP
|
||||
myApplication.editorPaintStart();
|
||||
|
||||
try {
|
||||
Graphics2D gg = !EditorUtil.isRealFileEditor(myEditor) ? (Graphics2D)g :
|
||||
IdeBackgroundUtil.withEditorBackground(g, this);
|
||||
Graphics2D gg = !Boolean.TRUE.equals(EditorTextField.SUPPLEMENTARY_KEY.get(myEditor)) ?
|
||||
IdeBackgroundUtil.withEditorBackground(g, this) : (Graphics2D)g;
|
||||
UIUtil.setupComposite(gg);
|
||||
UISettings.setupAntialiasing(gg);
|
||||
myEditor.paint(gg);
|
||||
|
||||
Reference in New Issue
Block a user