From 574abbe599ff37e2f59ed0305fadbdcc1c3f4437 Mon Sep 17 00:00:00 2001 From: "Gregory.Shrago" Date: Tue, 21 Apr 2015 03:49:09 +0300 Subject: [PATCH] Frame and editor background images: turn off for supplementary editors --- .../intellij/openapi/editor/impl/EditorComponentImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/editor/impl/EditorComponentImpl.java b/platform/platform-impl/src/com/intellij/openapi/editor/impl/EditorComponentImpl.java index 6835cda13dbf..72ce1b0bceba 100644 --- a/platform/platform-impl/src/com/intellij/openapi/editor/impl/EditorComponentImpl.java +++ b/platform/platform-impl/src/com/intellij/openapi/editor/impl/EditorComponentImpl.java @@ -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);