From 8ee18f1eedc0c8a13072385e165a7dc92e88cca9 Mon Sep 17 00:00:00 2001 From: Danny <31635744+DDDanny@users.noreply.github.com> Date: Wed, 2 Feb 2022 00:53:53 +0100 Subject: [PATCH] colorize only sunday --- apps/timecal/timecal.app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/timecal/timecal.app.js b/apps/timecal/timecal.app.js index 4dc111312..50a171e26 100644 --- a/apps/timecal/timecal.app.js +++ b/apps/timecal/timecal.app.js @@ -198,17 +198,17 @@ class TimeCalClock{ //draw grid & Headline const dNames = this.ABR_DAY.map((a) => a.length<=2 ? a : a.substr(0, 2)); //force shrt 2 for(var dNo=0; dNo=0 ? (dNo+this.settings().wdStrt)%7 : (dNo+d.getDay()+4)%7; const dName=dNames[dIdx]; - g.drawString(dName, dNo*CELL_W+(CELL_W-g.stringWidth(dName))/2+2, CAL_Y+1); //center Names if(dNo>0) g.drawLine(dNo*CELL_W, CAL_Y, dNo*CELL_W, CAL_Y+CAL_AREA_H-1); - if (dIdx==0) //sunday colorize txt + if (dIdx==0) { + //sunday colorize txt g.setColor(this.nrgb[this.settings().suClr]); - else + g.drawString(dName, dNo*CELL_W+(CELL_W-g.stringWidth(dName))/2+2, CAL_Y+1); //center Names g.setColor(g.theme.fg); + } } var nextY=CAL_Y+DAY_NAME_FONT_SIZE;