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:
@@ -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 = "α";
|
||||
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:")) {
|
||||
|
||||
Reference in New Issue
Block a user