IDEA-258493 Toolwindow changes for "no header mode"

Disable "header-like" background painting when debugger.new.tool.window.layout=false

GitOrigin-RevId: 6098fb4ee830d19e48a5e83c75333079b3b2ca91
This commit is contained in:
Vassiliy.Kudryashov
2021-01-22 18:41:50 +00:00
committed by intellij-monorepo-bot
parent 1b0ffbd5ab
commit ba8ccb005f
@@ -1563,6 +1563,7 @@ public final class RunnerContentUi implements ContentUI, Disposable, CellTransfo
@Override
protected void paintComponent(Graphics g) {
super.paintComponent(g);
if (!Registry.is("debugger.new.tool.window.layout")) return;
InternalDecorator decorator = ComponentUtil.getParentOfType(InternalDecorator.class, myComponent);
if (decorator != null && myTabs.getTabCount() > 0) {
UIUtil.drawHeader(g, 0, getWidth(), decorator.getHeaderHeight(), decorator.isActive(), true, false, false);