Fix formatting
This commit is contained in:
@@ -17,14 +17,12 @@ SettingWatchFace::SettingWatchFace(Pinetime::Applications::DisplayApp* app, Pine
|
||||
settingsController {settingsController},
|
||||
screens {app,
|
||||
settingsController.GetWatchfacesMenu(),
|
||||
{
|
||||
[this]() -> std::unique_ptr<Screen> {
|
||||
return CreateScreen1();
|
||||
},
|
||||
[this]() -> std::unique_ptr<Screen> {
|
||||
return CreateScreen2();
|
||||
}
|
||||
},
|
||||
{[this]() -> std::unique_ptr<Screen> {
|
||||
return CreateScreen1();
|
||||
},
|
||||
[this]() -> std::unique_ptr<Screen> {
|
||||
return CreateScreen2();
|
||||
}},
|
||||
Screens::ScreenListModes::UpDown} {
|
||||
}
|
||||
|
||||
@@ -39,16 +37,26 @@ bool SettingWatchFace::OnTouchEvent(Pinetime::Applications::TouchEvents event) {
|
||||
|
||||
std::unique_ptr<Screen> SettingWatchFace::CreateScreen1() {
|
||||
std::array<const char*, 4> watchfaces {"Digital face", "Analog face", "PineTimeStyle", "Terminal"};
|
||||
return std::make_unique<Screens::CheckboxList>(0, 2, app, settingsController, title,
|
||||
symbol, &Controllers::Settings::SetClockFace,
|
||||
return std::make_unique<Screens::CheckboxList>(0,
|
||||
2,
|
||||
app,
|
||||
settingsController,
|
||||
title,
|
||||
symbol,
|
||||
&Controllers::Settings::SetClockFace,
|
||||
&Controllers::Settings::GetClockFace,
|
||||
watchfaces);
|
||||
}
|
||||
|
||||
std::unique_ptr<Screen> SettingWatchFace::CreateScreen2() {
|
||||
std::array<const char*, 4> watchfaces {"Infineat face", "", "", ""};
|
||||
return std::make_unique<Screens::CheckboxList>(1, 2, app, settingsController, title,
|
||||
symbol, &Controllers::Settings::SetClockFace,
|
||||
return std::make_unique<Screens::CheckboxList>(1,
|
||||
2,
|
||||
app,
|
||||
settingsController,
|
||||
title,
|
||||
symbol,
|
||||
&Controllers::Settings::SetClockFace,
|
||||
&Controllers::Settings::GetClockFace,
|
||||
watchfaces);
|
||||
}
|
||||
|
Reference in New Issue
Block a user