Skip to content
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
0a48fbc
Added trans watch face
Aperture32GLaDOS Dec 16, 2024
7e2f2a1
Patched source files with fixed formatting
Aperture32GLaDOS Dec 19, 2024
ee2e868
Implemented suggested changes
Aperture32GLaDOS Dec 30, 2024
9b8df1f
Made notification display not overlap battery level; changed name fro…
Aperture32GLaDOS Jan 4, 2025
bb388ef
Changed Mail to mail in notification
Aperture32GLaDOS Jan 4, 2025
3c0ccf2
Merge remote-tracking branch 'upstream/main'
Aperture32GLaDOS Jan 15, 2025
e01e616
Moved AM/PM display to the day
Aperture32GLaDOS Jan 18, 2025
879fb48
Fixed 12H mode displaying 24H times
Aperture32GLaDOS Jan 20, 2025
56e7072
Merge remote-tracking branch 'upstream/main'
Aperture32GLaDOS Feb 2, 2025
285ba00
Renamed WatchFaceTrans to WatchFaceTransFlag
Aperture32GLaDOS Feb 15, 2025
fe6bac2
Merge branch 'main' into main
Aperture32GLaDOS Feb 15, 2025
1d59a7a
Applied formatting patches
Aperture32GLaDOS Feb 16, 2025
1a470cf
Merge branch 'main' into main
Aperture32GLaDOS Mar 21, 2025
5187d1e
Merge branch 'main' into main
Aperture32GLaDOS Mar 22, 2025
5891adf
Added multiple pride flags
Aperture32GLaDOS Mar 23, 2025
274798d
Applied formatting patches
Aperture32GLaDOS Mar 23, 2025
857309e
Fixed labels having wrong position
Aperture32GLaDOS Mar 23, 2025
156a629
Merge remote-tracking branch 'upstream/main'
Aperture32GLaDOS May 15, 2025
c8f45f8
Added text colour changing; fixed time label incorrectly aligned
Aperture32GLaDOS May 16, 2025
1e570c6
Merge remote-tracking branch 'upstream/main'
Aperture32GLaDOS May 16, 2025
12109a8
Fixed formatting
Aperture32GLaDOS May 16, 2025
0adf807
Swapped out rainbow flag for MLM flag
Aperture32GLaDOS Jun 16, 2025
3b856cd
Merge remote-tracking branch 'upstream/main'
Aperture32GLaDOS Jun 16, 2025
2ab7f6b
Made top and bottom half of text have different colours in the MLM flag
Aperture32GLaDOS Jun 16, 2025
7d53345
Fixed formatting
Aperture32GLaDOS Jun 16, 2025
1f0265f
Incremented settingsVersion
Aperture32GLaDOS Jun 16, 2025
32c3651
Implemented suggested changes
Aperture32GLaDOS Jun 16, 2025
5cd30ac
- Moved all flag-specific data into a new FlagData class
Aperture32GLaDOS Jun 17, 2025
3fb52d9
Merge branch 'main' into main
Aperture32GLaDOS Jun 17, 2025
f314569
Fixed signedness error in background section for-loop
Aperture32GLaDOS Jun 17, 2025
d0217ba
Renamed notificationIcon to notificationText, and changed security of…
Aperture32GLaDOS Jun 17, 2025
b582d3d
Swapped out C-style casts for C++ style
Aperture32GLaDOS Jun 17, 2025
5643c2e
Changed UpdateScreen to private
Aperture32GLaDOS Jun 17, 2025
1c6d4f0
Implemented suggested changes (moving PrideFlagData into cpp, making …
Aperture32GLaDOS Jun 18, 2025
8ae772f
Cleaned up constructor usage
Aperture32GLaDOS Jun 18, 2025
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
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ list(APPEND SOURCE_FILES
displayapp/screens/WatchFaceTerminal.cpp
displayapp/screens/WatchFacePineTimeStyle.cpp
displayapp/screens/WatchFaceCasioStyleG7710.cpp
displayapp/screens/WatchFacePrideFlag.cpp

##

Expand Down
10 changes: 10 additions & 0 deletions src/components/datetime/DateTimeController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ using namespace Pinetime::Controllers;
namespace {
constexpr const char* const DaysStringShort[] = {"--", "MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"};
constexpr const char* const DaysStringShortLow[] = {"--", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"};
constexpr const char* const DaysString[] = {"--", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"};
constexpr const char* const DaysStringLow[] = {"--", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"};
constexpr const char* const MonthsString[] = {"--", "JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC"};
constexpr const char* const MonthsStringLow[] =
{"--", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
Expand Down Expand Up @@ -144,6 +146,10 @@ const char* DateTime::DayOfWeekShortToString() const {
return DaysStringShort[static_cast<uint8_t>(DayOfWeek())];
}

const char* DateTime::DayOfWeekToString() const {
return DaysString[static_cast<uint8_t>(DayOfWeek())];
}

const char* DateTime::MonthShortToStringLow(Months month) {
return MonthsStringLow[static_cast<uint8_t>(month)];
}
Expand All @@ -152,6 +158,10 @@ const char* DateTime::DayOfWeekShortToStringLow(Days day) {
return DaysStringShortLow[static_cast<uint8_t>(day)];
}

const char* DateTime::DayOfWeekToStringLow(Days day) {
return DaysStringLow[static_cast<uint8_t>(day)];
}

void DateTime::Register(Pinetime::System::SystemTask* systemTask) {
this->systemTask = systemTask;
}
Expand Down
2 changes: 2 additions & 0 deletions src/components/datetime/DateTimeController.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ namespace Pinetime {

const char* MonthShortToString() const;
const char* DayOfWeekShortToString() const;
const char* DayOfWeekToString() const;
static const char* MonthShortToStringLow(Months month);
static const char* DayOfWeekShortToStringLow(Days day);
static const char* DayOfWeekToStringLow(Days day);

std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> CurrentDateTime();

Expand Down
15 changes: 14 additions & 1 deletion src/components/settings/Settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ namespace Pinetime {
};
enum class PTSGaugeStyle : uint8_t { Full, Half, Numeric };
enum class PTSWeather : uint8_t { On, Off };
enum class PrideFlag : uint8_t { Gay, Trans, Bi, Lesbian };

struct PineTimeStyle {
Colors ColorTime = Colors::Teal;
Expand Down Expand Up @@ -154,6 +155,16 @@ namespace Pinetime {
return settings.PTS.weatherEnable;
};

void SetPrideFlag(PrideFlag prideFlag) {
if (prideFlag != settings.prideFlag)
settingsChanged = true;
settings.prideFlag = prideFlag;
};

PrideFlag GetPrideFlag() const {
return settings.prideFlag;
};

void SetAppMenu(uint8_t menu) {
appMenu = menu;
};
Expand Down Expand Up @@ -301,7 +312,7 @@ namespace Pinetime {
private:
Pinetime::Controllers::FS& fs;

static constexpr uint32_t settingsVersion = 0x0008;
static constexpr uint32_t settingsVersion = 0x0009;

struct SettingsData {
uint32_t version = settingsVersion;
Expand All @@ -319,6 +330,8 @@ namespace Pinetime {

PineTimeStyle PTS;

PrideFlag prideFlag = PrideFlag::Gay;

WatchFaceInfineat watchFaceInfineat;

std::bitset<5> wakeUpMode {0};
Expand Down
1 change: 1 addition & 0 deletions src/displayapp/UserApps.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "displayapp/screens/WatchFaceInfineat.h"
#include "displayapp/screens/WatchFacePineTimeStyle.h"
#include "displayapp/screens/WatchFaceTerminal.h"
#include "displayapp/screens/WatchFacePrideFlag.h"

namespace Pinetime {
namespace Applications {
Expand Down
1 change: 1 addition & 0 deletions src/displayapp/apps/Apps.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ namespace Pinetime {
Terminal,
Infineat,
CasioStyleG7710,
PrideFlag,
};

template <Apps>
Expand Down
1 change: 1 addition & 0 deletions src/displayapp/apps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ else()
set(DEFAULT_WATCHFACE_TYPES "${DEFAULT_WATCHFACE_TYPES}, WatchFace::Terminal")
set(DEFAULT_WATCHFACE_TYPES "${DEFAULT_WATCHFACE_TYPES}, WatchFace::Infineat")
set(DEFAULT_WATCHFACE_TYPES "${DEFAULT_WATCHFACE_TYPES}, WatchFace::CasioStyleG7710")
set(DEFAULT_WATCHFACE_TYPES "${DEFAULT_WATCHFACE_TYPES}, WatchFace::PrideFlag")
set(WATCHFACE_TYPES "${DEFAULT_WATCHFACE_TYPES}" CACHE STRING "List of watch faces to build into the firmware")
endif()

Expand Down
Loading