diff --git a/src/apps/watchfaces/watchface.cpp b/src/apps/watchfaces/watchface.cpp index 4a72fa972..e297b3f8b 100644 --- a/src/apps/watchfaces/watchface.cpp +++ b/src/apps/watchfaces/watchface.cpp @@ -90,7 +90,18 @@ void OswAppWatchface::drawWatch() { uint32_t minute = 0; uint32_t hour = 0; hal->getLocalTime(&hour, &minute, &second); - + //Dual-time part + uint32_t dualSecond = 0; + uint32_t dualMinute = 0; + uint32_t dualHour = 0; + bool afterNoon = false; + + hal->getLocalTime(&dualHour, &dualMinute, &dualSecond, &afterNoon); + if (OswConfigAllKeys::settingDisplayDualHourTick.get()) { // Overlays dualtime hour tick + // Dual-hours + hal->gfx()->drawThickTick(120, 120, 0, 16, 360.0 / 12.0 * (1.0 * dualHour + minute / 60.0), 2, afterNoon ? ui->getBackgroundDimmedColor():ui->getForegroundDimmedColor()); + hal->gfx()->drawThickTick(120, 120, 16, 60, 360.0 / 12.0 * (1.0 * dualHour + minute / 60.0), 5, afterNoon ? ui->getBackgroundDimmedColor():ui->getForegroundDimmedColor()); + } // hours hal->gfx()->drawThickTick(120, 120, 0, 16, 360.0 / 12.0 * (1.0 * hour + minute / 60.0), 1, ui->getForegroundColor()); hal->gfx()->drawThickTick(120, 120, 16, 60, 360.0 / 12.0 * (1.0 * hour + minute / 60.0), 4, ui->getForegroundColor());