Skip to content

Commit d220e84

Browse files
committed
feat: Replace icon loading method with MenuUtils for Mac compatibility
1 parent 3116cfd commit d220e84

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/handlers/ShowMenuBarMenuHandler.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,8 @@ private CommandContributionItemParameter createCommandContributionItemParameter(
355355
}
356356

357357
private void setDefaultBlankIcon(CommandContributionItemParameter parameter) {
358-
ImageDescriptor icon = UiUtils.buildImageDescriptorFromPngPath("/icons/blank.png");
359358
if (PlatformUtils.isMac()) {
360-
parameter.icon = icon;
359+
parameter.icon = MenuUtils.getBlankIcon();
361360
}
362361
}
363362
}

com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/handlers/ShowStatusBarMenuHandler.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,8 @@ public static Action createMenuAction(MenuManager menuManager, String text, Stri
461461
}
462462

463463
private static void setDefaultBlankIcon(Action action) {
464-
ImageDescriptor blankIcon = UiUtils.buildImageDescriptorFromPngPath("/icons/blank.png");
465464
if (PlatformUtils.isMac()) {
466-
action.setImageDescriptor(blankIcon);
465+
action.setImageDescriptor(MenuUtils.getBlankIcon());
467466
}
468467
}
469468
}

0 commit comments

Comments
 (0)