From a7bc072e784ac55ad804fe002dd159afa21bd76e Mon Sep 17 00:00:00 2001 From: graann Date: Fri, 2 Aug 2019 18:49:12 +0300 Subject: [PATCH] Debugger: do not underline tab if there is only one tab in a group GitOrigin-RevId: 822ea30681b9e7b636ee4dde4ca4e5c928b6ed20 --- .../src/com/intellij/ui/tabs/impl/DefaultTabPainterAdapter.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/platform-api/src/com/intellij/ui/tabs/impl/DefaultTabPainterAdapter.kt b/platform/platform-api/src/com/intellij/ui/tabs/impl/DefaultTabPainterAdapter.kt index c538dfe087e3..e48b42685244 100644 --- a/platform/platform-api/src/com/intellij/ui/tabs/impl/DefaultTabPainterAdapter.kt +++ b/platform/platform-api/src/com/intellij/ui/tabs/impl/DefaultTabPainterAdapter.kt @@ -17,13 +17,13 @@ class DefaultTabPainterAdapter(val painter: JBTabPainter): TabPainterAdapter { val rect = Rectangle(0, 0, label.width, label.height) val g2d = g as Graphics2D - if (isSelected) { + if (isSelected && tabs.visibleInfos.size > 1) { painter .paintSelectedTab(tabs.position, g2d, rect, tabs.borderThickness, info.tabColor, tabs.isActiveTabs(info), tabs.isHoveredTab(label)) } else { - painter.paintTab(tabs.position, g2d, rect, tabs.borderThickness, info.tabColor, tabs.isHoveredTab(label)) + painter.paintTab(tabs.position, g2d, rect, tabs.borderThickness, info.tabColor, tabs.isHoveredTab(label) && tabs.visibleInfos.size > 1) } } } \ No newline at end of file