Allow floating bars
This commit is contained in:
+5
-1
@@ -7,6 +7,7 @@
|
||||
|
||||
typedef struct {
|
||||
struct Window *window;
|
||||
GRect main_grect;
|
||||
Layer *main_layer;
|
||||
BitmapLayer *up_layer;
|
||||
BitmapLayer *down_layer;
|
||||
@@ -14,14 +15,17 @@ typedef struct {
|
||||
ClickConfigProvider click_config_provider;
|
||||
GColor8 background_color;
|
||||
uint16_t corner_radius;
|
||||
bool floating;
|
||||
//uint8_t top_shrinkage;
|
||||
//uint8_t bottom_shrinkage;
|
||||
//int8_t spread; // positive integers push the icons further apart; negative integers pull them together
|
||||
//uint8_t animation_type; // 0 = press, 1 = invert
|
||||
//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_floating(NeatBarLayer *neat_bar, bool floating);
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user