mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-104734 Dracula: Cannot see well active tab in Modules Settings
(cherry picked from commit 47f94f082fee0d9f19fce8688d42f6235f4d1389)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -1653,6 +1653,9 @@ public class JBTabsImpl extends JComponent
|
||||
|
||||
@Nullable
|
||||
protected Color getActiveTabColor(@Nullable final Color c) {
|
||||
if (UIUtil.isUnderDarcula() || UIUtil.isUnderIntelliJLaF()) {
|
||||
return new JBColor(new Color(162, 186, 224), new Color(65, 81, 109));
|
||||
}
|
||||
final TabInfo info = getSelectedInfo();
|
||||
if (info == null) {
|
||||
return c;
|
||||
@@ -1730,7 +1733,7 @@ public class JBTabsImpl extends JComponent
|
||||
}
|
||||
|
||||
final Color tabColor = getActiveTabColor(null);
|
||||
Color borderColor = tabColor == null ? UIUtil.getBoundsColor(paintFocused) : tabColor.darker();
|
||||
Color borderColor = tabColor == null || UIUtil.isUnderDarcula() || UIUtil.isUnderIntelliJLaF() ? UIUtil.getBoundsColor(paintFocused) : tabColor.darker();
|
||||
g2d.setColor(borderColor);
|
||||
|
||||
if (!isHideTabs()) {
|
||||
|
||||
@@ -49,7 +49,7 @@ TabbedPaneUI=com.intellij.ide.ui.laf.darcula.ui.DarculaTabbedPaneUI
|
||||
TabbedPane.tabInsets=0,4,0,4
|
||||
TabbedPane.highlight=292b2d
|
||||
TabbedPane.light=444444
|
||||
TabbedPane.selected=626262
|
||||
TabbedPane.selected=41516D
|
||||
TabbedPane.selectHighlight=3c3f41
|
||||
TabbedPane.contentBorderInsets=3,1,1,1
|
||||
TabbedPane.darkShadow=292b2d
|
||||
|
||||
@@ -53,7 +53,7 @@ TabbedPaneUI=com.intellij.ide.ui.laf.darcula.ui.DarculaTabbedPaneUI
|
||||
TabbedPane.tabInsets=0,4,0,4
|
||||
TabbedPane.highlight=cccccc
|
||||
TabbedPane.light=444444
|
||||
TabbedPane.selected=93b3ec
|
||||
TabbedPane.selected=A2BAE0
|
||||
TabbedPane.selectHighlight=d2d2d2
|
||||
TabbedPane.contentBorderInsets=3,1,1,1
|
||||
TabbedPane.darkShadow=cccccc
|
||||
|
||||
Reference in New Issue
Block a user