Skip to content

Commit

Permalink
Rename passport_DB to passport_128x64
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Mar 3, 2024
1 parent 15341d8 commit 270d271
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion applications/settings/dolphin_passport/passport.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static void render_callback(Canvas* canvas, void* _ctx) {
}

// multipass
canvas_draw_icon(canvas, 0, 0, &I_passport_DB);
canvas_draw_icon(canvas, 0, 0, &I_passport_128x64);

// portrait
furi_assert((stats->level > 0) && (stats->level <= DOLPHIN_LEVEL_COUNT + 1));
Expand Down
File renamed without changes
3 changes: 1 addition & 2 deletions documentation/file_formats/AssetPacks.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ SD/
|...
|-Passport/
|-passport_happy_46x49.bmx
|-passport_DB.bmx
|-passport_128x64.bmx
|...
|-RFID/
|-RFIDDolphinReceive_97x61.bmx
Expand All @@ -107,7 +107,6 @@ Which is the same you can find in the firmware source code, in `assets/icons`. T
- The pixel numbers in the filename are ignored, they are there purely because of the original Flipper icon names and for a hint as to how you should size your icons, but they are not enforced.
- We kept the original naming scheme and file structure for compatibility, but the original setup is quite bad, so bear with us. Some icons in subfolders (like `SubGhz/Scanning_123x52`) are used in other unrelated apps/places.
- Some icons in the official firmware have different versions with different numbers to indicate the flipper level they target. Since our system has so many levels, we decided to keep it simple and remove the level progression from icons. For example `Passport/passport_happy1_46x49` becomes `Passport/passport_happy_46x49` and `Animations/Levelup1_128x64` becomes `Animations/Levelup_128x64`.
- The `Passport/passport_DB` is the background for the passport page, it doesn't mention a pixel size because it should be the same as the Flipper screen size (128x64).

This system supports **all** internal assets!

Expand Down
2 changes: 1 addition & 1 deletion targets/f7/api_symbols.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3907,7 +3907,7 @@ Variable,+,I_next_text_19x6,Icon,
Variable,+,I_off_19x20,Icon,
Variable,+,I_off_hover_19x20,Icon,
Variable,+,I_off_text_12x5,Icon,
Variable,+,I_passport_DB,Icon,
Variable,+,I_passport_128x64,Icon,
Variable,+,I_passport_bad_46x49,Icon,
Variable,+,I_passport_happy_46x49,Icon,
Variable,+,I_passport_okay_46x49,Icon,
Expand Down

0 comments on commit 270d271

Please sign in to comment.