support coloring counters by feed-id/is-cat; set fresh counter to green

master
Andrew Dolgov 4 years ago
parent ae7b87bca9
commit f804caec90

@ -82,6 +82,9 @@ define(["dojo/_base/declare", "dojo/dom-construct", "dojo/_base/array", "dojo/co
} }
if (id.match("FEED:")) { if (id.match("FEED:")) {
tnode.rowNode.setAttribute('data-feed-id', bare_id);
tnode.rowNode.setAttribute('data-is-cat', "false");
const menu = new dijit.Menu(); const menu = new dijit.Menu();
menu.row_id = bare_id; menu.row_id = bare_id;
@ -132,6 +135,9 @@ define(["dojo/_base/declare", "dojo/dom-construct", "dojo/_base/array", "dojo/co
} }
if (id.match("CAT:")) { if (id.match("CAT:")) {
tnode.rowNode.setAttribute('data-feed-id', bare_id);
tnode.rowNode.setAttribute('data-is-cat', "true");
tnode.loadingNode = dojo.create('img', { className: 'loadingNode', src: 'images/blank_icon.gif'}); tnode.loadingNode = dojo.create('img', { className: 'loadingNode', src: 'images/blank_icon.gif'});
domConstruct.place(tnode.loadingNode, tnode.labelNode, 'after'); domConstruct.place(tnode.loadingNode, tnode.labelNode, 'after');
} }

@ -587,6 +587,9 @@ body.ttrss_main #feeds-holder #feedTree .counterNode {
min-width: 23px; min-width: 23px;
height: 14px; height: 14px;
} }
body.ttrss_main #feeds-holder #feedTree .dijitTreeRow[data-feed-id="-3"][data-is-cat="false"] .counterNode.unread {
background-color: #3ea447;
}
body.ttrss_main #feeds-holder #feedTree .dijitTreeNode .loadingExpando { body.ttrss_main #feeds-holder #feedTree .dijitTreeNode .loadingExpando {
left: -3px; left: -3px;
height: 22px; height: 22px;

@ -587,6 +587,9 @@ body.ttrss_main #feeds-holder #feedTree .counterNode {
min-width: 23px; min-width: 23px;
height: 14px; height: 14px;
} }
body.ttrss_main #feeds-holder #feedTree .dijitTreeRow[data-feed-id="-3"][data-is-cat="false"] .counterNode.unread {
background-color: #3ea447;
}
body.ttrss_main #feeds-holder #feedTree .dijitTreeNode .loadingExpando { body.ttrss_main #feeds-holder #feedTree .dijitTreeNode .loadingExpando {
left: -3px; left: -3px;
height: 22px; height: 22px;

@ -587,6 +587,9 @@ body.ttrss_main #feeds-holder #feedTree .counterNode {
min-width: 23px; min-width: 23px;
height: 14px; height: 14px;
} }
body.ttrss_main #feeds-holder #feedTree .dijitTreeRow[data-feed-id="-3"][data-is-cat="false"] .counterNode.unread {
background-color: #3ea447;
}
body.ttrss_main #feeds-holder #feedTree .dijitTreeNode .loadingExpando { body.ttrss_main #feeds-holder #feedTree .dijitTreeNode .loadingExpando {
left: -3px; left: -3px;
height: 22px; height: 22px;

@ -676,6 +676,11 @@ body.ttrss_main {
height : 14px; height : 14px;
} }
// fresh
.dijitTreeRow[data-feed-id="-3"][data-is-cat="false"] .counterNode.unread {
background-color: darken(@color-checked, 15%);
}
.dijitTreeNode .loadingExpando { .dijitTreeNode .loadingExpando {
left : -3px; left : -3px;
height : 22px; height : 22px;

@ -588,6 +588,9 @@ body.ttrss_main #feeds-holder #feedTree .counterNode {
min-width: 23px; min-width: 23px;
height: 14px; height: 14px;
} }
body.ttrss_main #feeds-holder #feedTree .dijitTreeRow[data-feed-id="-3"][data-is-cat="false"] .counterNode.unread {
background-color: #3ea447;
}
body.ttrss_main #feeds-holder #feedTree .dijitTreeNode .loadingExpando { body.ttrss_main #feeds-holder #feedTree .dijitTreeNode .loadingExpando {
left: -3px; left: -3px;
height: 22px; height: 22px;

@ -588,6 +588,9 @@ body.ttrss_main #feeds-holder #feedTree .counterNode {
min-width: 23px; min-width: 23px;
height: 14px; height: 14px;
} }
body.ttrss_main #feeds-holder #feedTree .dijitTreeRow[data-feed-id="-3"][data-is-cat="false"] .counterNode.unread {
background-color: #3ea447;
}
body.ttrss_main #feeds-holder #feedTree .dijitTreeNode .loadingExpando { body.ttrss_main #feeds-holder #feedTree .dijitTreeNode .loadingExpando {
left: -3px; left: -3px;
height: 22px; height: 22px;

Loading…
Cancel
Save