Enable custom corner radius

This commit is contained in:
2026-07-15 23:48:44 -04:00
parent bca4d7d3f5
commit 1b5f010814
2 changed files with 14 additions and 3 deletions
+3 -1
View File
@@ -13,14 +13,16 @@ typedef struct {
BitmapLayer *select_layer;
ClickConfigProvider click_config_provider;
GColor8 background_color;
uint16_t corner_radius;
//int8_t spread; // positive integers push the icons further apart; negative integers pull them together
//uint8_t animation_type; // 0 = press, 1 = invert
//uint8_t shape; // 0 = rect/round, 1 = rect/rect, 2 = rect/round (legacy), 3 = rect/rect (legacy)
//bool force_rectangular;
void *context;
} NeatBarLayer;
NeatBarLayer *neat_bar_layer_create();
void neat_bar_layer_set_icon(NeatBarLayer *layer, ButtonId button_id, GBitmap *icon);
void neat_bar_layer_set_corner_radius(NeatBarLayer *neat_bar, uint16_t corner_radius);
void neat_bar_layer_set_background_color(NeatBarLayer *neat_bar, GColor background_color);
void neat_bar_layer_set_click_config_provider(NeatBarLayer *neat_bar, ClickConfigProvider click_config_provider);
void neat_bar_layer_add_to_window(NeatBarLayer *neat_bar, Window *window);