From d79def5782fcc72022ee0b9db7d7339e371bb968 Mon Sep 17 00:00:00 2001 From: Elior Date: Fri, 23 Jan 2026 20:41:17 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20enable=20meta/group=20switc?= =?UTF-8?q?h/reuse=20defaults,=20fix=20hover=20colors=20and=20paint=20logi?= =?UTF-8?q?c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../editorGroups/settings/EditorGroupsSettings.kt | 12 +++++++----- .../tabs2/impl/rounded/RoundedTabPainter.kt | 7 +++++-- 2 files changed, 12 insertions(+), 7 deletions(-) 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) }