Allow customizing move animations

This commit is contained in:
2026-07-19 21:00:33 -04:00
parent dabdd81e81
commit 928cf6f2ba
3 changed files with 51 additions and 8 deletions
+6
View File
@@ -17,6 +17,9 @@ typedef struct {
uint16_t corner_radius;
uint16_t x_offset;
int8_t spread;
bool animations_move_on_y_axis;
int8_t animations_move_distance;
uint8_t animations_duration;
//bool use_legacy_animations
void *context;
} NeatBarLayer;
@@ -25,6 +28,9 @@ void neat_bar_layer_set_theme_default_rect(NeatBarLayer *neat_bar);
void neat_bar_layer_set_theme_legacy_rect(NeatBarLayer *neat_bar);
void neat_bar_layer_add_to_window(NeatBarLayer *neat_bar, Window *window);
void neat_bar_layer_set_click_config_provider(NeatBarLayer *neat_bar, ClickConfigProvider click_config_provider);
void neat_bar_layer_set_animations_move_distance(NeatBarLayer *neat_bar, int8_t distance);
void neat_bar_layer_set_animations_move_axis(NeatBarLayer *neat_bar, bool use_y_axis);
void neat_bar_layer_set_animations_duration(NeatBarLayer *neat_bar, uint8_t duration_ms);
void neat_bar_layer_set_floating(NeatBarLayer *neat_bar, uint16_t x_offset);
void neat_bar_layer_set_width(NeatBarLayer *neat_bar, uint16_t width);
void neat_bar_layer_set_height(NeatBarLayer *neat_bar, uint16_t height);