Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class EditorGroupsSettings : SimplePersistentStateComponent<EditorGroupsSettings
var isShowSize: Boolean by property(true)

// Show group metadata
var isShowMeta: Boolean by property(false)
var isShowMeta: Boolean by property(true)

// Color tabs of the current group
var isColorTabs: Boolean by property(false)
Expand All @@ -61,7 +61,7 @@ class EditorGroupsSettings : SimplePersistentStateComponent<EditorGroupsSettings
var isCompactTabs: Boolean by property(false)

// Split the list in groups
var isGroupSwitchGroupAction: Boolean by property(false)
var isGroupSwitchGroupAction: Boolean by property(true)

// Show the panel at all
var isShowPanel: Boolean by property(true)
Expand All @@ -73,7 +73,7 @@ class EditorGroupsSettings : SimplePersistentStateComponent<EditorGroupsSettings
var isShowToolWindow: Boolean by property(true)

// Reuse the current tab
var reuseCurrentTab: Boolean by property(false)
var reuseCurrentTab: Boolean by property(true)

// Limit the number of elements in a group
var groupSizeLimitInt: Int by property(DEFAULT_GROUP_SIZE_LIMIT)
Expand Down Expand Up @@ -376,7 +376,7 @@ class EditorGroupsSettings : SimplePersistentStateComponent<EditorGroupsSettings
this.isCustomFont = false
this.isExcludeEditorGroupsFiles = false
this.isForceSwitch = true
this.isGroupSwitchGroupAction = false
this.isGroupSwitchGroupAction = true
this.isHideEmpty = true
this.isIndexOnlyEditorGroupsFiles = false
this.isInitializeSynchronously = false
Expand All @@ -385,9 +385,11 @@ class EditorGroupsSettings : SimplePersistentStateComponent<EditorGroupsSettings
this.isSelectRegexGroup = false
this.isShowFloatingButton = true
this.isShowPanel = true
this.isShowMeta = true
this.isShowSize = true
this.isShowToolWindow = true
this.isSmallLabels = true
this.reuseCurrentTab = true
this.tabSizeLimit = DEFAULT_TAB_SIZE_LIMIT
this.tabsPlacement = SwingConstants.TOP
this.fireChanged()
Expand Down Expand Up @@ -495,7 +497,7 @@ class EditorGroupsSettings : SimplePersistentStateComponent<EditorGroupsSettings
""".trimMargin()

interface SettingsNotifier {
/** When Config is changed (settings) */
/** When Config is changed (settings). */
fun configChanged(config: EditorGroupsSettings): Unit = Unit
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ internal open class RoundedTabPainter : EditorGroupsTabPainter {

private val selectedInactiveColors = theme.underlinedTabInactiveBackground to theme.underlinedTabBorderColor

private val selectedHoveredInactiveColors = theme.hoverBackground to theme.inactiveUnderlineColor
private val selectedHoveredInactiveColors = theme.hoverSelectedInactiveBackground to theme.inactiveUnderlineColor

private fun getColors(active: Boolean, selected: Boolean, hovered: Boolean): Pair<Color?, Color?> = when {
selected -> when {
Expand Down Expand Up @@ -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)
}
Expand Down
Loading