Skip to content

Commit

Permalink
IDEA-305229 Edit hidden tabs popup insets
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 715d7767d3e527c2ee52bf5cd4c7761634862f66
  • Loading branch information
KonstantinHudyakov authored and intellij-monorepo-bot committed Feb 13, 2023
1 parent 67a7187 commit 6b3ec38
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ protected JComponent createItemComponent() {
component = new JPanel();
BoxLayout layout = new BoxLayout(component, BoxLayout.X_AXIS);
component.setLayout(layout);
component.setBorder(JBUI.Borders.empty(0, 17, 0, 4));
component.setBorder(JBUI.Borders.empty(0, 9, 0, 3));

UISettings settings = UISettings.getInstance();
if (!settings.getCloseTabButtonOnTheRight()) {
Expand All @@ -1063,8 +1063,9 @@ protected JComponent createItemComponent() {

JComponent result = layoutComponent(component);
if (result instanceof SelectablePanel selectablePanel) {
selectablePanel.setBorder(JBUI.Borders.empty(0, 4));
selectablePanel.setSelectionInsets(JBInsets.create(0, 4));
selectablePanel.setBorder(JBUI.Borders.empty(0, 5));
selectablePanel.setSelectionInsets(JBInsets.create(0, 5));
selectablePanel.setPreferredHeight(JBUI.scale(26));
}
return result;
}
Expand Down

0 comments on commit 6b3ec38

Please sign in to comment.