Remove theme presets
This commit is contained in:
@@ -181,24 +181,6 @@ static void s_recenter_icons(NeatBarLayer *neat_bar) {
|
||||
}
|
||||
}
|
||||
|
||||
// match stock rectangular aesthetic (except for icon x offset)
|
||||
void neat_bar_layer_set_theme_default_rect(NeatBarLayer *neat_bar) {
|
||||
neat_bar_layer_set_floating(neat_bar, false);
|
||||
neat_bar->main_grect = s_base_grect_rect;
|
||||
layer_set_frame(neat_bar->main_layer, neat_bar->main_grect);
|
||||
neat_bar_layer_set_corner_radius(neat_bar, 0);
|
||||
s_recenter_icons(neat_bar);
|
||||
}
|
||||
|
||||
// match SDK 2.X aesthetic
|
||||
void neat_bar_layer_set_theme_legacy_rect(NeatBarLayer *neat_bar) {
|
||||
neat_bar_layer_set_floating(neat_bar, false);
|
||||
neat_bar->main_grect = GRect(s_base_grect_rect.origin.x, 4, s_base_grect_rect.size.w, s_base_grect_rect.size.h - 8);
|
||||
layer_set_frame(neat_bar->main_layer, neat_bar->main_grect);
|
||||
neat_bar_layer_set_corner_radius(neat_bar, 3);
|
||||
s_recenter_icons(neat_bar);
|
||||
}
|
||||
|
||||
void neat_bar_layer_add_to_window(NeatBarLayer *neat_bar, Window *window) {
|
||||
layer_add_child(window_get_root_layer(window), neat_bar->main_layer);
|
||||
neat_bar->window = window;
|
||||
|
||||
@@ -20,15 +20,12 @@ typedef struct {
|
||||
bool animations_move_on_y_axis;
|
||||
int8_t animations_move_distance;
|
||||
uint8_t animations_duration;
|
||||
//bool use_legacy_animations
|
||||
bool up_pressed;
|
||||
bool select_pressed;
|
||||
bool down_pressed;
|
||||
void *context;
|
||||
} NeatBarLayer;
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user