Fix icons not recentering with floating mode
This commit is contained in:
@@ -21,5 +21,9 @@
|
|||||||
- Legacy (background invert) animations support
|
- Legacy (background invert) animations support
|
||||||
- Customizable round bar size
|
- Customizable round bar size
|
||||||
- Customizable radial bar length
|
- 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)
|
- Separate select icon x offset (especially useful for the radial bar)
|
||||||
- Legacy and default theme setters
|
- Theme presets!
|
||||||
|
- Default
|
||||||
|
- Legacy
|
||||||
|
|||||||
@@ -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->bar_x_offset = x_offset;
|
||||||
neat_bar->main_grect_visual.origin.x = PBL_DISPLAY_WIDTH - neat_bar->main_grect_visual.size.w - 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);
|
layer_mark_dirty(neat_bar->main_layer);
|
||||||
|
s_recenter_icons(neat_bar);
|
||||||
}
|
}
|
||||||
|
|
||||||
// default: 0
|
// default: 0
|
||||||
|
|||||||
+3
-3
@@ -27,10 +27,10 @@ typedef struct {
|
|||||||
void *context;
|
void *context;
|
||||||
|
|
||||||
// neat_bar exclusives :D
|
// neat_bar exclusives :D
|
||||||
uint8_t bar_style; // 0 = rect, 1 = round, 2 = radial
|
uint8_t bar_style;
|
||||||
bool bar_enable_aa;
|
bool bar_enable_aa;
|
||||||
uint16_t bar_x_offset;
|
uint8_t bar_x_offset;
|
||||||
uint16_t rect_bar_corner_radius;
|
uint8_t rect_bar_corner_radius;
|
||||||
int8_t icons_spread;
|
int8_t icons_spread;
|
||||||
int8_t icons_x_offset;
|
int8_t icons_x_offset;
|
||||||
int8_t icons_y_offset;
|
int8_t icons_y_offset;
|
||||||
|
|||||||
Reference in New Issue
Block a user