Use stock action bar animation duration
This commit is contained in:
@@ -19,7 +19,5 @@ A customizable replacement for the built-in Pebble action bar.
|
|||||||
- Using a rectangular bar on a round watch saves space and IMO looks way better
|
- Using a rectangular bar on a round watch saves space and IMO looks way better
|
||||||
### Pending Features
|
### Pending Features
|
||||||
- Match move animation distance to stock per-platform
|
- Match move animation distance to stock per-platform
|
||||||
- Match move animation duration to stock
|
|
||||||
- Allow customizing move animations
|
- Allow customizing move animations
|
||||||
- Built-in haptics
|
|
||||||
- Legacy (background invert) animations support
|
- Legacy (background invert) animations support
|
||||||
|
|||||||
+2
-2
@@ -66,13 +66,13 @@ static Animation *s_animate_move(NeatBarLayer *neat_bar, uint8_t button_index, b
|
|||||||
|
|
||||||
static void s_icon_down_handler(NeatBarLayer *neat_bar, uint8_t button_index) {
|
static void s_icon_down_handler(NeatBarLayer *neat_bar, uint8_t button_index) {
|
||||||
Animation *anim = s_animate_move(neat_bar, button_index, false, -4);
|
Animation *anim = s_animate_move(neat_bar, button_index, false, -4);
|
||||||
animation_set_duration(anim, 80);
|
animation_set_duration(anim, 144);
|
||||||
animation_schedule(anim);
|
animation_schedule(anim);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void s_icon_up_handler(NeatBarLayer *neat_bar, uint8_t button_index) {
|
static void s_icon_up_handler(NeatBarLayer *neat_bar, uint8_t button_index) {
|
||||||
Animation *anim = s_animate_move(neat_bar, button_index, false, 4);
|
Animation *anim = s_animate_move(neat_bar, button_index, false, 4);
|
||||||
animation_set_duration(anim, 80);
|
animation_set_duration(anim, 144);
|
||||||
animation_schedule(anim);
|
animation_schedule(anim);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user