From c43915a21e1ab89d7392d14dc9aef9cfb1d106b2 Mon Sep 17 00:00:00 2001 From: Simon Hardt Date: Sun, 6 Mar 2022 23:13:36 +0100 Subject: [PATCH] fix: digital text align. --- frame/src/widgets/clock/Digital.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frame/src/widgets/clock/Digital.cpp b/frame/src/widgets/clock/Digital.cpp index 0ff5014..65af8a8 100644 --- a/frame/src/widgets/clock/Digital.cpp +++ b/frame/src/widgets/clock/Digital.cpp @@ -37,7 +37,7 @@ namespace frame::widgets Rect draw{0, 0, size.x, size.y}; auto text = - fmt::format("{:0^2}:{:0^2}", c_time->tm_hour, c_time->tm_min); + fmt::format("{:0>2}:{:0>2}", c_time->tm_hour, c_time->tm_min); auto font = font::GetFont("Fira Code");