Move recently added hover methods from UIUtil to JBUI.CurrentTheme

GitOrigin-RevId: 0c8c2324815578f00031bc51105d79023108becc
This commit is contained in:
Sergey Malenkov
2020-12-13 15:40:27 +00:00
committed by intellij-monorepo-bot
parent 7013957d08
commit 61545499df
3 changed files with 2 additions and 17 deletions
@@ -718,7 +718,7 @@ public class JBTable extends JTable implements ComponentWithEmptyText, Component
* @return a background color for hovered row, or {@code null} to ignore
*/
protected @Nullable Color getHoveredRowBackground() {
return UIUtil.getTableHoverBackground(true);
return JBUI.CurrentTheme.Table.Hover.background(true);
}
private static void setRendererBackground(@NotNull JComponent container, Color background) {
@@ -100,7 +100,7 @@ public final class Switcher extends AnAction implements DumbAware {
private static final int MINIMUM_WIDTH = JBUIScale.scale(500);
@NonNls private static final String SWITCHER_FEATURE_ID = "switcher";
private static final Color ON_MOUSE_OVER_BG_COLOR = UIUtil.getListHoverBackground(true);
private static final Color ON_MOUSE_OVER_BG_COLOR = JBUI.CurrentTheme.List.Hover.background(true);
private static int CTRL_KEY;
@Nullable public static final Runnable CHECKER = () -> {
synchronized (Switcher.class) {
@@ -3187,11 +3187,6 @@ public final class UIUtil {
return getListSelectionBackground(false);
}
@ApiStatus.Experimental
public static @NotNull Color getListHoverBackground(boolean focused) {
return JBUI.CurrentTheme.List.Hover.background(focused);
}
// foreground
/**
@@ -3277,11 +3272,6 @@ public final class UIUtil {
return getTreeSelectionBackground(false);
}
@ApiStatus.Experimental
public static @NotNull Color getTreeHoverBackground(boolean focused) {
return JBUI.CurrentTheme.Tree.Hover.background(focused);
}
// foreground
/**
@@ -3358,11 +3348,6 @@ public final class UIUtil {
return getTableSelectionBackground(false);
}
@ApiStatus.Experimental
public static @NotNull Color getTableHoverBackground(boolean focused) {
return JBUI.CurrentTheme.Table.Hover.background(focused);
}
// foreground
/**