Fix icons not recentering with floating mode

This commit is contained in:
2026-07-22 23:44:56 -04:00
parent 465f059ddc
commit 55c3d658b6
3 changed files with 9 additions and 4 deletions
+5 -1
View File
@@ -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
+1
View File
@@ -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
+3 -3
View File
@@ -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;