Update highlight color

This commit is contained in:
2026-07-30 23:50:07 -04:00
parent 154de005a1
commit 22126bb89c
+5 -3
View File
@@ -19,6 +19,8 @@ static uint8_t s_highlight_pos = 0;
// constants // constants
static const uint8_t s_edge_bar_height = ((PBL_DISPLAY_HEIGHT / 7) * 2); static const uint8_t s_edge_bar_height = ((PBL_DISPLAY_HEIGHT / 7) * 2);
static const GColor s_primary_color = GColorJaegerGreen;
static const GColor s_highlight_color = GColorMediumAquamarine;
///////////////////////////////// /////////////////////////////////
@@ -48,12 +50,12 @@ static void click_config_provider(void *ctx) {
} }
static void top_bar_layer_update_proc(Layer *layer, GContext *ctx) { static void top_bar_layer_update_proc(Layer *layer, GContext *ctx) {
graphics_context_set_fill_color(ctx, GColorMayGreen); graphics_context_set_fill_color(ctx, s_primary_color);
graphics_fill_rect(ctx, layer_get_bounds(layer), 0, GCornerNone); graphics_fill_rect(ctx, layer_get_bounds(layer), 0, GCornerNone);
} }
static void bottom_bar_layer_update_proc(Layer *layer, GContext *ctx) { static void bottom_bar_layer_update_proc(Layer *layer, GContext *ctx) {
graphics_context_set_fill_color(ctx, (s_highlight_pos == 2 ? GColorLightGray : GColorMayGreen)); graphics_context_set_fill_color(ctx, (s_highlight_pos == 2 ? s_highlight_color : s_primary_color));
graphics_fill_rect(ctx, layer_get_bounds(layer), 0, GCornerNone); graphics_fill_rect(ctx, layer_get_bounds(layer), 0, GCornerNone);
} }
@@ -68,7 +70,7 @@ static void highlight_layer_update_proc(Layer *layer, GContext *ctx) {
fill_area.origin.x = fill_area.size.w; fill_area.origin.x = fill_area.size.w;
break; break;
} }
graphics_context_set_fill_color(ctx, GColorLightGray); graphics_context_set_fill_color(ctx, s_highlight_color);
graphics_fill_rect(ctx, fill_area, 0, GCornerNone); graphics_fill_rect(ctx, fill_area, 0, GCornerNone);
} }