clockfont_mono_070
This commit is contained in:
@@ -94,7 +94,7 @@ void DspCore::_clockSeconds(){
|
||||
print(_bufforseconds); /* print seconds */
|
||||
setTextSize(1);
|
||||
setFont(&DS_DIGI56pt7b);
|
||||
setTextColor((network.timeinfo.tm_sec % 2 == 0) ? config.theme.clock : config.theme.background, config.theme.background);
|
||||
setTextColor((network.timeinfo.tm_sec % 2 == 0) ? config.theme.clock : (CLOCKFONT_MONO?config.theme.clockbg:config.theme.background), config.theme.background);
|
||||
setCursor(_timeleft+_dotsLeft, clockTop);
|
||||
print(":"); /* print dots */
|
||||
setFont();
|
||||
@@ -117,10 +117,16 @@ void DspCore::_clockDate(){
|
||||
}
|
||||
|
||||
void DspCore::_clockTime(){
|
||||
if(_oldtimeleft>0) dsp.fillRect(_oldtimeleft, clockTop-clockTimeHeight+1, _oldtimewidth, clockTimeHeight, config.theme.background);
|
||||
if(_oldtimeleft>0 && !CLOCKFONT_MONO) dsp.fillRect(_oldtimeleft, clockTop-clockTimeHeight+1, _oldtimewidth, clockTimeHeight, config.theme.background);
|
||||
_timeleft = width()-clockRightSpace-CHARWIDTH*4*2-24-_timewidth;
|
||||
setTextSize(1);
|
||||
setFont(&DS_DIGI56pt7b);
|
||||
|
||||
if(CLOCKFONT_MONO) {
|
||||
setCursor(_timeleft, clockTop);
|
||||
setTextColor(config.theme.clockbg, config.theme.background);
|
||||
print("88:88");
|
||||
}
|
||||
setTextColor(config.theme.clock, config.theme.background);
|
||||
setCursor(_timeleft, clockTop);
|
||||
print(_timeBuf);
|
||||
|
||||
Reference in New Issue
Block a user