Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 684 Bytes

customize.md

File metadata and controls

20 lines (14 loc) · 684 Bytes

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
    }
}

Customize CSS

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