Skip to content

Commit

Permalink
Updated UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Potriasaeva authored and onewhl committed May 23, 2023
1 parent 8583057 commit d6716a2
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import com.intellij.openapi.actionSystem.ex.ComboBoxAction;
import com.intellij.openapi.project.DumbAware;
import com.intellij.openapi.project.Project;
import com.intellij.ui.JBColor;
import com.intellij.util.ui.JBInsets;
import com.intellij.util.ui.JBUI;
import com.intellij.util.ui.UIUtil;
import com.intellij.vcs.log.ui.MainVcsLogUi;
import com.intellij.vcs.log.ui.VcsLogInternalDataKeys;
import org.jetbrains.annotations.Nls;
Expand All @@ -18,8 +18,6 @@
import java.awt.*;
import java.util.Arrays;

import static java.awt.Font.*;

public class ComboBoxRefactoringAction extends ComboBoxAction implements DumbAware {

private enum ListItem {
Expand Down Expand Up @@ -54,10 +52,10 @@ public void update(@NotNull AnActionEvent e) {
button.setOpaque(false);
button.setContentAreaFilled(false);
button.setBorderPainted(false);
button.setForeground(JBColor.BLUE);
button.setForeground(UIUtil.getLabelForeground());
button.setMargin(JBUI.emptyInsets());
JLabel label = new JLabel(RefactorInsightBundle.message("ui.ChangesBrowserBase.ComboBoxAction.label.text"));
label.setFont(new Font("Default", PLAIN, button.getFont().getSize()));
label.setForeground(UIUtil.getLabelInfoForeground());
GridBagConstraints constraints = new GridBagConstraints(
0, 0, 1, 1, 1, 1, GridBagConstraints.CENTER,
GridBagConstraints.BOTH, JBInsets.create(0, 0), 0, 0);
Expand Down

0 comments on commit d6716a2

Please sign in to comment.