diff --git a/platform/platform-api/src/com/intellij/ui/table/JBTable.java b/platform/platform-api/src/com/intellij/ui/table/JBTable.java index 060da3c354f8..c5b28d40e818 100644 --- a/platform/platform-api/src/com/intellij/ui/table/JBTable.java +++ b/platform/platform-api/src/com/intellij/ui/table/JBTable.java @@ -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) { diff --git a/platform/platform-impl/src/com/intellij/ide/actions/Switcher.java b/platform/platform-impl/src/com/intellij/ide/actions/Switcher.java index b5a6b7544ac1..ee454258db15 100644 --- a/platform/platform-impl/src/com/intellij/ide/actions/Switcher.java +++ b/platform/platform-impl/src/com/intellij/ide/actions/Switcher.java @@ -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) { diff --git a/platform/util/ui/src/com/intellij/util/ui/UIUtil.java b/platform/util/ui/src/com/intellij/util/ui/UIUtil.java index 6e7ef0e04c4d..f643fc922f87 100644 --- a/platform/util/ui/src/com/intellij/util/ui/UIUtil.java +++ b/platform/util/ui/src/com/intellij/util/ui/UIUtil.java @@ -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 /**