@@ -34,30 +34,32 @@ bool SettingWatchFace::OnTouchEvent(Pinetime::Applications::TouchEvents event) {
3434
3535std::unique_ptr<Screen> SettingWatchFace::CreateScreen1 () {
3636 std::array<const char *, 4 > watchfaces {" Digital face" , " Analog face" , " PineTimeStyle" , " Terminal" };
37- return std::make_unique<Screens::CheckboxList>(0 ,
38- 2 ,
39- app,
40- title,
41- symbol,
42- settingsController.GetClockFace (),
43- [&settings = settingsController](uint32_t clockFace) {
44- settings.SetClockFace (clockFace);
45- settings.SaveSettings ();
46- },
47- watchfaces);
37+ return std::make_unique<Screens::CheckboxList>(
38+ 0 ,
39+ 2 ,
40+ app,
41+ title,
42+ symbol,
43+ settingsController.GetClockFace (),
44+ [&settings = settingsController](uint32_t clockFace) {
45+ settings.SetClockFace (clockFace);
46+ settings.SaveSettings ();
47+ },
48+ watchfaces);
4849}
4950
5051std::unique_ptr<Screen> SettingWatchFace::CreateScreen2 () {
5152 std::array<const char *, 4 > watchfaces {" Infineat face" , " Casio G7710" , " " , " " };
52- return std::make_unique<Screens::CheckboxList>(1 ,
53- 2 ,
54- app,
55- title,
56- symbol,
57- settingsController.GetClockFace (),
58- [&settings = settingsController](uint32_t clockFace) {
59- settings.SetClockFace (clockFace);
60- settings.SaveSettings ();
61- },
62- watchfaces);
53+ return std::make_unique<Screens::CheckboxList>(
54+ 1 ,
55+ 2 ,
56+ app,
57+ title,
58+ symbol,
59+ settingsController.GetClockFace (),
60+ [&settings = settingsController](uint32_t clockFace) {
61+ settings.SetClockFace (clockFace);
62+ settings.SaveSettings ();
63+ },
64+ watchfaces);
6365}
0 commit comments