using jam font icon pack instead of feather, fixes #204

This commit is contained in:
azivner
2018-11-09 11:57:52 +01:00
parent 8be328cb3b
commit 232f135843
39 changed files with 1034 additions and 99 deletions

View File

@@ -393,11 +393,24 @@ function initFancyTree(tree) {
if (item.title === '----') {
$treeContextMenu.append($("<div>").addClass("dropdown-divider"));
} else {
const $icon = $("<span>");
if (item.uiIcon) {
$icon.addClass("jam jam-" + item.uiIcon);
}
else {
$icon.append("&nbsp;");
}
const $item = $("<a>")
.append($icon)
.append(" &nbsp; ") // some space between icon and text
.addClass("dropdown-item")
.prop("data-cmd", item.cmd)
.append(item.title);
if (item.enabled !== undefined && !item.enabled) {
$item.addClass("disabled");
}