Compare commits

...

1 Commits

Author SHA1 Message Date
RandyTheSilly 147a230c97 Remove theme presets 2026-07-19 22:47:18 -04:00
3 changed files with 5 additions and 27 deletions
+5 -6
View File
@@ -6,12 +6,10 @@ A more customizable replacement for the built-in Pebble action bar.
- Floating mode - Floating mode
- Rectangular mode on round watches - Rectangular mode on round watches
- Adjustable spread (distance between icons) - Adjustable spread (distance between icons)
- New max icon size (unlimited width; 25px height) - Increased max icon size (unlimited width; 25px height)
- Custom corner radius - Custom bar corner radius
- Custom width - Custom bar width/height
- Custom height - Custom bar x/y positions
- Custom x/y positions
- Legacy Pebble SDK 2.X-style preset
### Removed Features ### Removed Features
- Anything to do with back button overrides - Anything to do with back button overrides
- Fully custom animations - 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! - Use custom corner radius for a nice effect on round watches!
### Pending Features ### Pending Features
- Legacy (background invert) animations support - Legacy (background invert) animations support
- Y offset for all icons
-18
View File
@@ -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) { void neat_bar_layer_add_to_window(NeatBarLayer *neat_bar, Window *window) {
layer_add_child(window_get_root_layer(window), neat_bar->main_layer); layer_add_child(window_get_root_layer(window), neat_bar->main_layer);
neat_bar->window = window; neat_bar->window = window;
-3
View File
@@ -20,15 +20,12 @@ typedef struct {
bool animations_move_on_y_axis; bool animations_move_on_y_axis;
int8_t animations_move_distance; int8_t animations_move_distance;
uint8_t animations_duration; uint8_t animations_duration;
//bool use_legacy_animations
bool up_pressed; bool up_pressed;
bool select_pressed; bool select_pressed;
bool down_pressed; bool down_pressed;
void *context; void *context;
} NeatBarLayer; } 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_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_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_distance(NeatBarLayer *neat_bar, int8_t distance);