mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Asset Packs: Fix level-up anims not being themed
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
- OFW: Infrared: Increase max carrier limit to 1000000 (by @skotopes)
|
||||
|
||||
### Fixed:
|
||||
- Asset Packs: Fix level-up animations not being themed (by @Willy-JL)
|
||||
- About: Fix missing Prev. button when invoked from Device Info keybind (by @Willy-JL)
|
||||
|
||||
### Removed:
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
#include <gui/icon_i.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <momentum/asset_packs_i.h>
|
||||
|
||||
typedef void (*OneShotInteractCallback)(void*);
|
||||
|
||||
struct OneShotView {
|
||||
@@ -116,7 +118,7 @@ void one_shot_view_start_animation(OneShotView* view, const Icon* icon) {
|
||||
|
||||
OneShotViewModel* model = view_get_model(view->view);
|
||||
model->index = 0;
|
||||
model->icon = icon;
|
||||
model->icon = asset_packs_swap_icon(icon);
|
||||
model->block_input = true;
|
||||
view_commit_model(view->view, true);
|
||||
furi_timer_start(view->update_timer, 1000 / model->icon->frame_rate);
|
||||
|
||||
@@ -8,8 +8,7 @@ IconAnimation* icon_animation_alloc(const Icon* icon) {
|
||||
furi_check(icon);
|
||||
|
||||
IconAnimation* instance = malloc(sizeof(IconAnimation));
|
||||
icon = asset_packs_swap_icon(icon);
|
||||
instance->icon = icon;
|
||||
instance->icon = asset_packs_swap_icon(icon);
|
||||
instance->timer =
|
||||
furi_timer_alloc(icon_animation_timer_callback, FuriTimerTypePeriodic, instance);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user