diff --git a/README.md b/README.md index f880f8b..c08816f 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,10 @@ A more customizable replacement for the built-in Pebble action bar. - Floating mode - Rectangular mode on round watches - Adjustable spread (distance between icons) -- New max icon size (unlimited width; 25px height) -- Custom corner radius -- Custom width -- Custom height -- Custom x/y positions -- Legacy Pebble SDK 2.X-style preset +- Increased max icon size (unlimited width; 25px height) +- Custom bar corner radius +- Custom bar width/height +- Custom bar x/y positions ### Removed Features - Anything to do with back button overrides - Fully custom animations @@ -22,3 +20,4 @@ A more customizable replacement for the built-in Pebble action bar. - Use custom corner radius for a nice effect on round watches! ### Pending Features - Legacy (background invert) animations support +- Y offset for all icons diff --git a/src/c/neat_bar.c b/src/c/neat_bar.c index b869a3b..c5b3121 100644 --- a/src/c/neat_bar.c +++ b/src/c/neat_bar.c @@ -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; diff --git a/src/c/neat_bar.h b/src/c/neat_bar.h index 8cf4330..0f06cf3 100644 --- a/src/c/neat_bar.h +++ b/src/c/neat_bar.h @@ -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);