Skip to content

Commit

Permalink
renamed ClockFace to WatchFace
Browse files Browse the repository at this point in the history
  • Loading branch information
minacode committed Nov 4, 2022
1 parent c6bc21f commit 8161387
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/components/settings/Settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ namespace Pinetime {
void Init();
void SaveSettings();

void SetClockFace(Pinetime::Applications::WatchFace face) {
if (face != settings.clockFace) {
void SetWatchFace(Pinetime::Applications::WatchFace face) {
if (face != settings.watchFace) {
settingsChanged = true;
}
settings.clockFace = face;
settings.watchFace = face;
};
Pinetime::Applications::WatchFace GetClockFace() const {
return settings.clockFace;
Pinetime::Applications::WatchFace GetWatchFace() const {
return settings.watchFace;
};

void SetChimeOption(ChimesOption chimeOption) {
Expand Down Expand Up @@ -264,7 +264,7 @@ namespace Pinetime {
ClockType clockType = ClockType::H24;
Notification notificationStatus = Notification::On;

Pinetime::Applications::WatchFace clockFace = Pinetime::Applications::WatchFace::Digital;
Pinetime::Applications::WatchFace watchFace = Pinetime::Applications::WatchFace::Digital;
ChimesOption chimesOption = ChimesOption::None;

PineTimeStyle PTS;
Expand Down
2 changes: 1 addition & 1 deletion src/displayapp/screens/Clock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Clock::Clock(DisplayApp* app,
motionController {motionController},
filesystem {filesystem},
screen {[this, &settingsController]() {
switch (settingsController.GetClockFace()) {
switch (settingsController.GetWatchFace()) {
case WatchFace::Digital:
return WatchFaceDigitalScreen();
break;
Expand Down
1 change: 1 addition & 0 deletions src/displayapp/screens/settings/SettingWatchFace.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "displayapp/screens/settings/SettingWatchFace.h"
#include <lvgl/lvgl.h>
#include "displayapp/DisplayApp.h"
#include "displayapp/WatchFaces.h"
#include "displayapp/screens/CheckboxList.h"
#include "displayapp/screens/Screen.h"
#include "components/settings/Settings.h"
Expand Down

0 comments on commit 8161387

Please sign in to comment.