diff --git a/src/main/java/krasa/editorGroups/settings/EditorGroupsSettings.kt b/src/main/java/krasa/editorGroups/settings/EditorGroupsSettings.kt index 31a22ef..f845983 100644 --- a/src/main/java/krasa/editorGroups/settings/EditorGroupsSettings.kt +++ b/src/main/java/krasa/editorGroups/settings/EditorGroupsSettings.kt @@ -34,7 +34,7 @@ class EditorGroupsSettings : SimplePersistentStateComponent = when { selected -> when { @@ -127,8 +127,11 @@ internal open class RoundedTabPainter : EditorGroupsTabPainter { hovered = hovered ) - if (fill != null) { + if (fill != null && hovered) { // Paint rounded tab + g.color = fill + g.fill(shape) + } else if (fill != null) { g.color = ColorUtil.withAlpha(fill, theme.roundTabOpacity.toDouble()) g.fill(shape) }