Skip to content

Commit

Permalink
Enable fast mode in some useful places
Browse files Browse the repository at this point in the history
  • Loading branch information
ljahn committed Dec 31, 2024
1 parent 7deed04 commit 684d56e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/displayapp/screens/Alarm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ Alarm::Alarm(Controllers::AlarmController& alarmController,
lv_obj_align(minuteCounter.GetObject(), nullptr, LV_ALIGN_IN_TOP_RIGHT, 0, 0);
minuteCounter.SetValue(alarmController.Minutes());
minuteCounter.SetValueChangedEventCallback(this, ValueChangedHandler);
minuteCounter.EnableFastMode(5);

lv_obj_t* colonLabel = lv_label_create(lv_scr_act(), nullptr);
lv_obj_set_style_local_text_font(colonLabel, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, &jetbrains_mono_76);
Expand Down
2 changes: 2 additions & 0 deletions src/displayapp/screens/Timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ Timer::Timer(Controllers::Timer& timerController) : timer {timerController} {
lv_obj_align(colonLabel, lv_scr_act(), LV_ALIGN_CENTER, 0, -29);

minuteCounter.Create();
minuteCounter.EnableFastMode(5);
secondCounter.Create();
secondCounter.EnableFastMode(5);
lv_obj_align(minuteCounter.GetObject(), nullptr, LV_ALIGN_IN_TOP_LEFT, 0, 0);
lv_obj_align(secondCounter.GetObject(), nullptr, LV_ALIGN_IN_TOP_RIGHT, 0, 0);

Expand Down
1 change: 1 addition & 0 deletions src/displayapp/screens/settings/SettingSetDate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ SettingSetDate::SettingSetDate(Pinetime::Controllers::DateTime& dateTimeControll
dayCounter.SetValueChangedEventCallback(this, ValueChangedHandler);
dayCounter.Create();
dayCounter.SetValue(dateTimeController.Day());
dayCounter.EnableFastMode(5);
lv_obj_align(dayCounter.GetObject(), nullptr, LV_ALIGN_CENTER, POS_X_DAY, POS_Y_TEXT);

monthCounter.EnableMonthMode();
Expand Down
1 change: 1 addition & 0 deletions src/displayapp/screens/settings/SettingSetTime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ SettingSetTime::SettingSetTime(Pinetime::Controllers::DateTime& dateTimeControll

minuteCounter.Create();
minuteCounter.SetValue(dateTimeController.Minutes());
minuteCounter.EnableFastMode(5);
lv_obj_align(minuteCounter.GetObject(), nullptr, LV_ALIGN_CENTER, 0, POS_Y_TEXT);
minuteCounter.SetValueChangedEventCallback(this, ValueChangedHandler);

Expand Down

0 comments on commit 684d56e

Please sign in to comment.