Add black&white support

This commit is contained in:
2026-05-03 22:08:13 -04:00
parent b42cab1a81
commit af57dfae1f

View File

@@ -163,7 +163,11 @@ static void main_window_load(Window *window) {
// sleep time
text_layer_set_background_color(s_sleep_time_layer, GColorClear);
#if PBL_COLOR
text_layer_set_text_color(s_sleep_time_layer, GColorWhite);
#else
text_layer_set_text_color(s_sleep_time_layer, GColorBlack);
#endif
if (s_sleep_timestamp != 0) {
static char buffer[8];
struct tm *timeinfo = localtime(&s_sleep_timestamp);
@@ -354,6 +358,7 @@ static void init() {
#if DEBUG_MODE
s_is_jellyfin = DEBUG_MODE; // allow forcing configured state for emu testing
#endif
#if PBL_COLOR
switch (s_is_jellyfin) {
case 1:
s_color_primary = GColorVividViolet;
@@ -364,6 +369,10 @@ static void init() {
s_color_secondary = GColorLightGray;
break;
}
#else
s_color_primary = GColorWhite;
s_color_secondary = GColorWhite;
#endif
s_pin_icon = gdraw_command_image_create_with_resource(RESOURCE_ID_PIN_ICON);
s_sleep_icon = gdraw_command_image_create_with_resource(RESOURCE_ID_SLEEP_ICON);