Use round bg by default on round watches

This commit is contained in:
2026-07-20 22:46:03 -04:00
parent 93a3d568aa
commit 937cc08ac8
+7 -5
View File
@@ -29,9 +29,11 @@
#endif #endif
#if PBL_ROUND #if PBL_ROUND
#define ANIM_DISTANCE 4 #define USE_ROUND_BAR_BY_DEFAULT true
#define DEFAULT_ANIM_DISTANCE 4
#else #else
#define ANIM_DISTANCE 5 #define USE_ROUND_BAR_BY_DEFAULT false
#define DEFAULT_ANIM_DISTANCE 5
#endif #endif
static const GRect s_base_grect_rect = GRect(PBL_DISPLAY_WIDTH - ACTION_BAR_WIDTH, 0, ACTION_BAR_WIDTH, PBL_DISPLAY_HEIGHT); static const GRect s_base_grect_rect = GRect(PBL_DISPLAY_WIDTH - ACTION_BAR_WIDTH, 0, ACTION_BAR_WIDTH, PBL_DISPLAY_HEIGHT);
@@ -238,7 +240,7 @@ void neat_bar_layer_set_animations_duration(NeatBarLayer *neat_bar, uint8_t dura
neat_bar->animations_duration = duration_ms; neat_bar->animations_duration = duration_ms;
} }
// default: false // default: false (rect), true (round)
void neat_bar_layer_set_bar_style(NeatBarLayer *neat_bar, bool use_round_style) { void neat_bar_layer_set_bar_style(NeatBarLayer *neat_bar, bool use_round_style) {
if (use_round_style == neat_bar->bar_use_round_style) { if (use_round_style == neat_bar->bar_use_round_style) {
return; return;
@@ -380,13 +382,13 @@ NeatBarLayer *neat_bar_layer_create() {
neat_bar->context = NULL; neat_bar->context = NULL;
// neat_bar exclusives :D // neat_bar exclusives :D
neat_bar->bar_use_round_style = false; neat_bar->bar_use_round_style = USE_ROUND_BAR_BY_DEFAULT;
neat_bar->rect_bar_corner_radius = 0; neat_bar->rect_bar_corner_radius = 0;
neat_bar->bar_x_offset = 0; neat_bar->bar_x_offset = 0;
neat_bar->icons_spread = DEFAULT_SPREAD; neat_bar->icons_spread = DEFAULT_SPREAD;
neat_bar->animations_enabled = true; neat_bar->animations_enabled = true;
neat_bar->animations_move_on_y_axis = false; neat_bar->animations_move_on_y_axis = false;
neat_bar->animations_move_distance = ANIM_DISTANCE; neat_bar->animations_move_distance = DEFAULT_ANIM_DISTANCE;
neat_bar->animations_duration = 144; neat_bar->animations_duration = 144;
// state tracking // state tracking