Asset Packs: Fix level-up anims not being themed

This commit is contained in:
Willy-JL
2025-02-06 01:05:06 +00:00
parent 83b92f6c81
commit 2242176a88
3 changed files with 5 additions and 3 deletions

View File

@@ -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:

View File

@@ -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);

View File

@@ -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);