Browse Source

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

master
Andrew Dolgov 1 year ago
parent
commit
f804caec90
  1. 6
      js/FeedTree.js
  2. 3
      themes/compact.css
  3. 3
      themes/compact_night.css
  4. 3
      themes/light.css
  5. 5
      themes/light/tt-rss.less
  6. 3
      themes/night.css
  7. 3
      themes/night_blue.css

6
js/FeedTree.js

@ -82,6 +82,9 @@ define(["dojo/_base/declare", "dojo/dom-construct", "dojo/_base/array", "dojo/co
}
if (id.match("FEED:")) {
tnode.rowNode.setAttribute('data-feed-id', bare_id);
tnode.rowNode.setAttribute('data-is-cat', "false");
const menu = new dijit.Menu();
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:")) {
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'});
domConstruct.place(tnode.loadingNode, tnode.labelNode, 'after');
}

3
themes/compact.css

@ -587,6 +587,9 @@ body.ttrss_main #feeds-holder #feedTree .counterNode {
min-width: 23px;
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 {
left: -3px;
height: 22px;

3
themes/compact_night.css

@ -587,6 +587,9 @@ body.ttrss_main #feeds-holder #feedTree .counterNode {
min-width: 23px;
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 {
left: -3px;
height: 22px;

3
themes/light.css

@ -587,6 +587,9 @@ body.ttrss_main #feeds-holder #feedTree .counterNode {
min-width: 23px;
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 {
left: -3px;
height: 22px;

5
themes/light/tt-rss.less

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

3
themes/night.css

@ -588,6 +588,9 @@ body.ttrss_main #feeds-holder #feedTree .counterNode {
min-width: 23px;
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 {
left: -3px;
height: 22px;

3
themes/night_blue.css

@ -588,6 +588,9 @@ body.ttrss_main #feeds-holder #feedTree .counterNode {
min-width: 23px;
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 {
left: -3px;
height: 22px;

Loading…
Cancel
Save