mirror of
https://git.wetfence.xyz/RandyTheSilly/neat_bar.git
synced 2026-10-27 02:49:58 -04:00
Use stock action bar animation duration
This commit is contained in:
1 parent
9592ca2182
commit
5340661a44
2 files changed
+2
-4
No files matched your search
@@ -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
|
||||
### Pending Features
|
||||
- Match move animation distance to stock per-platform
|
||||
- Match move animation duration to stock
|
||||
- Allow customizing move animations
|
||||
- Built-in haptics
|
||||
- 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) {
|
||||
Animation *anim = s_animate_move(neat_bar, button_index, false, -4);
|
||||
animation_set_duration(anim, 80);
|
||||
animation_set_duration(anim, 144);
|
||||
animation_schedule(anim);
|
||||
}
|
||||
|
||||
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_set_duration(anim, 80);
|
||||
animation_set_duration(anim, 144);
|
||||
animation_schedule(anim);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user