Debugger: do not underline tab if there is only one tab in a group

GitOrigin-RevId: 822ea30681b9e7b636ee4dde4ca4e5c928b6ed20
This commit is contained in:
graann
2019-08-02 20:04:09 +03:00
committed by intellij-monorepo-bot
parent d48e1bd013
commit a7bc072e78
@@ -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)
}
}
}