From 55c3d658b6e72c056f8d6a7df79b4c33a160db68 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Wed, 22 Jul 2026 23:44:56 -0400 Subject: [PATCH] Fix icons not recentering with floating mode --- README.md | 6 +++++- src/c/neat_bar.c | 1 + src/c/neat_bar.h | 6 +++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cb15dee..771fab8 100644 --- a/README.md +++ b/README.md @@ -21,5 +21,9 @@ - Legacy (background invert) animations support - Customizable round bar size - Customizable radial bar length +- Make floating work on radial bar +- Disable ability to set floating/reset floating for round bar - Separate select icon x offset (especially useful for the radial bar) -- Legacy and default theme setters +- Theme presets! + - Default + - Legacy diff --git a/src/c/neat_bar.c b/src/c/neat_bar.c index 7b7c999..7e361ac 100644 --- a/src/c/neat_bar.c +++ b/src/c/neat_bar.c @@ -277,6 +277,7 @@ void neat_bar_layer_set_rect_bar_floating(NeatBarLayer *neat_bar, uint16_t x_off neat_bar->bar_x_offset = x_offset; neat_bar->main_grect_visual.origin.x = PBL_DISPLAY_WIDTH - neat_bar->main_grect_visual.size.w - x_offset; layer_mark_dirty(neat_bar->main_layer); + s_recenter_icons(neat_bar); } // default: 0 diff --git a/src/c/neat_bar.h b/src/c/neat_bar.h index 271299e..c4641dd 100644 --- a/src/c/neat_bar.h +++ b/src/c/neat_bar.h @@ -27,10 +27,10 @@ typedef struct { void *context; // neat_bar exclusives :D - uint8_t bar_style; // 0 = rect, 1 = round, 2 = radial + uint8_t bar_style; bool bar_enable_aa; - uint16_t bar_x_offset; - uint16_t rect_bar_corner_radius; + uint8_t bar_x_offset; + uint8_t rect_bar_corner_radius; int8_t icons_spread; int8_t icons_x_offset; int8_t icons_y_offset;