Skip to content

Commit 5ecb3d9

Browse files
committed
made hour & minute items use 2 digits
1 parent b8787d6 commit 5ecb3d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cosmic-applet-time/src/window.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -500,12 +500,12 @@ impl cosmic::Application for Window {
500500

501501
let mut time_bag: Bag = Bag::empty();
502502

503-
time_bag.hour = Some(components::Numeric::Numeric);
504-
time_bag.minute = Some(components::Numeric::Numeric);
503+
time_bag.hour = Some(components::Numeric::TwoDigit);
504+
time_bag.minute = Some(components::Numeric::TwoDigit);
505505
time_bag.second = self
506506
.config
507507
.show_seconds
508-
.then_some(components::Numeric::Numeric);
508+
.then_some(components::Numeric::TwoDigit);
509509

510510
let hour_cycle = if self.config.military_time {
511511
preferences::HourCycle::H23

0 commit comments

Comments
 (0)