mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
parent
4378b7f020
commit
4febf1e6c3
|
@ -192,7 +192,9 @@ export class MenuEntryActionViewItem extends ActionViewItem {
|
|||
if (icon.dark) {
|
||||
label.style.setProperty('--menu-entry-icon-dark', asCSSUrl(icon.dark));
|
||||
}
|
||||
label.classList.add('icon');
|
||||
this._itemClassDispose.value = toDisposable(() => {
|
||||
label.classList.remove('icon');
|
||||
label.style.removeProperty('--menu-entry-icon-light');
|
||||
label.style.removeProperty('--menu-entry-icon-dark');
|
||||
});
|
||||
|
@ -218,6 +220,7 @@ export class SubmenuEntryActionViewItem extends DropdownMenuActionViewItem {
|
|||
container.classList.add('menu-entry');
|
||||
const { icon } = (<SubmenuItemAction>this._action).item;
|
||||
if (icon && !ThemeIcon.isThemeIcon(icon)) {
|
||||
this.element.classList.add('icon');
|
||||
if (icon.light) {
|
||||
this.element.style.setProperty('--menu-entry-icon-light', asCSSUrl(icon.light));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue