IJPL-165423 SECONDARY_ICON attribute does not work for action UI in a popup menu

- adjust indents for secondary icon


(cherry picked from commit 94000e91e802e62864326f964aa44d290c320486)

IJ-CR-147964

GitOrigin-RevId: 75b7c3f5712ff702c3f3d2b1c921390f052fe6a1
This commit is contained in:
Alexey Utkin
2024-10-29 20:00:37 +04:00
committed by intellij-monorepo-bot
parent 0fe21b6057
commit 6b85c6fa99

View File

@@ -137,7 +137,7 @@ public class PopupListElementRenderer<E> extends GroupedItemsListRenderer<E> {
secondary.add(mySecondaryTextLabel, BorderLayout.EAST);
mySecondaryIconLabel = new JLabel();
JBEmptyBorder secondaryIconBorder = JBUI.Borders.emptyLeft(JBUI.CurrentTheme.ActionsList.elementIconGap() - 2);
JBEmptyBorder secondaryIconBorder = JBUI.Borders.emptyLeft(JBUI.CurrentTheme.ActionsList.elementIconGap() + 1);
mySecondaryIconLabel.setBorder(secondaryIconBorder);
mySecondaryIconLabel.setVisible(false);
secondary.add(mySecondaryIconLabel, BorderLayout.WEST);