ButtonUI () { return new ColorButtonUI() { @Nullable @Override protected Color getUnfocusedBorderColor(@NotNull ColorButtonBase button) { if (StartupUiUtil.isUnderDarcula()) return JBColor.GRAY; return super.getUnfocusedBorderColor(button); } }; }