vhost-audit/contrib/contextmenu/documentation/docs/customize.md

876 B

currentMenu
custom-icons

Customize icons

You can add icons to src/icons and run gulp build-icons. This will make the icons available for use in the contextmenu using the icon property.

So for example the file checkmark.svg wil result in the CSS context-menu-icon-checkmark which you can use by using the icon option when defining a menu item.

Example

var items = {
    firstCommand: {        
        name: "Paste",
        icon: "checkmark" // Class context-menu-icon-checkmark is used on the menu item. This is generated from checkmark.svg
    }
}

Font-Awesome icons used from encharm/Font-Awesome-SVG-PNG. You can download more there if you like.

Customize CSS

You can use the _variables.scss to adjust variables on pretty much everything you want to change.