1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 12:55:56 +00:00

update label rendering (and editor)

This commit is contained in:
Andrew Dolgov
2018-12-06 08:26:52 +03:00
parent 6142e15347
commit 0a41c1a6e1
10 changed files with 45 additions and 70 deletions

View File

@@ -34,17 +34,17 @@ define(["dojo/_base/declare", "dojo/dom-construct", "dijit/Tree", "dijit/Menu"],
const bare_id = parseInt(id.substr(id.indexOf(':')+1));
if (bare_id < _label_base_index) {
const span = dojo.doc.createElement('span');
const fg_color = args.item.fg_color[0];
const label = dojo.doc.createElement('i');
//const fg_color = args.item.fg_color[0];
const bg_color = args.item.bg_color[0];
span.innerHTML = "&alpha;";
span.className = 'labelColorIndicator';
span.setStyle({
color: fg_color,
backgroundColor: bg_color});
label.className = "material-icons icon icon-label";
label.innerHTML = "label";
label.setStyle({
color: bg_color,
});
domConstruct.place(span, tnode.iconNode, 'only');
domConstruct.place(label, tnode.iconNode, 'only');
}
if (id.match("FEED:")) {