sched: add clkinfo icon for events

master
Rob Pilling 2024-10-06 11:16:01 +01:00
parent 6f4a3b8c78
commit a5a915e38a
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@
const iconAlarmOff = atob("GBiBAAAAAAAAAAYAYA4AcBx+ODn/nAP/wAf/4A/n8A/n8B/n+B/n+B/nAB/mAB/geB/5/g/5tg/zAwfzhwPzhwHzAwB5tgAB/gAAeA==");
const iconTimerOn = atob("GBiBAAAAAAAAAAAAAAf/4Af/4AGBgAGBgAGBgAD/AAD/AAB+AAA8AAA8AAB+AADnAADDAAGBgAGBgAGBgAf/4Af/4AAAAAAAAAAAAA==");
const iconTimerOff = atob("GBiBAAAAAAAAAAAAAAf/4Af/4AGBgAGBgAGBgAD/AAD/AAB+AAA8AAA8AAB+AADkeADB/gGBtgGDAwGDhwfzhwfzAwABtgAB/gAAeA==");
const iconEvent = atob("Hh6BAf////////////////////gAAH/AAAD/P//z/P//z/P//z/P//z/AAAD/AAAD/AAAD/AAAD/AAMD/AAcD/AA4D/AxwD/A7gD/AfAD/AOAD/AAAD/AAAD/AAAD/AAAD/gAAH////////////////////w");
//from 0 to max, the higher the closer to fire (as in a progress bar)
function getAlarmValue(a){
@ -20,6 +21,7 @@
}
function getAlarmIcon(a) {
if(a.date) return iconEvent;
if(a.on) {
if(a.timer) return iconTimerOn;
return iconAlarmOn;