From 7ef30431f1aace4f8b1cd7f0a9e259bdd2d04b4f Mon Sep 17 00:00:00 2001 From: Danny <31635744+DDDanny@users.noreply.github.com> Date: Wed, 2 Feb 2022 01:05:49 +0100 Subject: [PATCH] su colored lines... --- apps/timecal/timecal.app.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/timecal/timecal.app.js b/apps/timecal/timecal.app.js index b5f212666..9d78f7d08 100644 --- a/apps/timecal/timecal.app.js +++ b/apps/timecal/timecal.app.js @@ -198,22 +198,18 @@ 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]; 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 - g.setColor(this.nrgb[this.settings().suClr]); - } + if (dIdx==0) g.setColor(this.nrgb[this.settings().suClr]); //sunday maybe colorize txt 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; - g.setColor(g.theme.fg); for(i=0; i<3; i++){ const y=nextY+i*CELL_H; g.drawLine(Bangle.appRect.x, y, Bangle.appRect.x2, y);