Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

watchface: SlowTime #1906

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions src/components/settings/Settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ namespace Pinetime {
};
enum class PTSGaugeStyle : uint8_t { Full, Half, Numeric };
enum class PTSWeather : uint8_t { On, Off };
enum class A24HourMode : uint8_t { On, Off };
enum class ASecondHand : uint8_t { On, Off };

struct PineTimeStyle {
Colors ColorTime = Colors::Teal;
Expand All @@ -44,6 +46,11 @@ namespace Pinetime {
PTSWeather weatherEnable = PTSWeather::Off;
};

struct Analog {
A24HourMode tfHourEnable = A24HourMode::Off;
ASecondHand secondHandEnable = ASecondHand::On;
};

struct WatchFaceInfineat {
bool showSideCover = true;
int colorIndex = 0;
Expand Down Expand Up @@ -153,6 +160,26 @@ namespace Pinetime {
return settings.PTS.weatherEnable;
};

void SetA24HourMode(A24HourMode tfHourEnable) {
if (tfHourEnable != settings.A.tfHourEnable)
settingsChanged = true;
settings.A.tfHourEnable = tfHourEnable;
};

A24HourMode GetA24HourMode() const {
return settings.A.tfHourEnable;
};

void SetASecondHand(ASecondHand secondHandEnable) {
if (secondHandEnable != settings.A.secondHandEnable)
settingsChanged = true;
settings.A.secondHandEnable = secondHandEnable;
};

ASecondHand GetASecondHand() const {
return settings.A.secondHandEnable;
};

void SetAppMenu(uint8_t menu) {
appMenu = menu;
};
Expand Down Expand Up @@ -288,6 +315,7 @@ namespace Pinetime {
ChimesOption chimesOption = ChimesOption::None;

PineTimeStyle PTS;
Analog A;

WatchFaceInfineat watchFaceInfineat;

Expand Down
1 change: 1 addition & 0 deletions src/displayapp/screens/Clock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,4 @@ std::unique_ptr<Screen> Clock::WatchFaceCasioStyleG7710() {
motionController,
filesystem);
}

Loading