Skip to content

Commit

Permalink
Asset Packs: Fix level-up anims not being themed
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Feb 6, 2025
1 parent 83b92f6 commit 2242176
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#include <gui/icon_i.h>
#include <stdint.h>

#include <momentum/asset_packs_i.h>

typedef void (*OneShotInteractCallback)(void*);

struct OneShotView {
Expand Down Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions applications/services/gui/icon_animation.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2242176

Please sign in to comment.