private void OverlayWindow_Paint(object sender, PaintEventArgs e) { if (currTask != null) { float percent = 100 - ((currSec + (currMin * 60)) / (timerSeconds + (timerMinutes * 60))) * 100; TimeSpan timeLeft = new TimeSpan(0, (int)currMin, (int)currSec); string timerMainText = currTask.timerMainText; if (timerMainText == null) { timerMainText = timeLeft.ToString(@"mm\:ss"); } RenderTimer.DrawCircularTimer(e, new Vector2(Screen.GetWorkingArea(Point.Empty).Width - m_timerPadding, Screen.GetWorkingArea(Point.Empty).Height - m_timerPadding), timerSize, timerMainText, currTask.timerColor, Program.tasktraySettingsInstance.darkMode ? Color.White : Color.Black, percent, currTask.timerSubText, m_arcWidth, currTask.textFontSize, currTask.subTextFontSize ); } }