menu.append(new MenuItem({
label: 'Remove',
click () {
// action
}
}))
menu.popup({window: remote.getCurrentWindow()})
menu.once('menu-will-close', () => {
menu.destroy()
})
I want to set the color of menu item to be red and also want to add a icon, so anyone could help? Thank you.