浏览代码

fix missing icon usage

MX 2 年之前
父节点
当前提交
2a6255513e
共有 3 个文件被更改,包括 3 次插入1 次删除
  1. 1 0
      application.fam
  2. 二进制
      assets/DolphinCommon_56x48.png
  3. 2 1
      views/camera_suite_view_camera.h

+ 1 - 0
application.fam

@@ -7,6 +7,7 @@ App(
     fap_category="GPIO",
     fap_description="A camera suite application for the Flipper Zero ESP32-CAM module.",
     fap_icon="icons/camera_suite.png",
+    fap_icon_assets="assets",
     fap_libs=["assets"],
     fap_version="1.4",
     fap_weburl="https://github.com/CodyTolene/Flipper-Zero-Cam",

二进制
assets/DolphinCommon_56x48.png


+ 2 - 1
views/camera_suite_view_camera.h

@@ -17,6 +17,8 @@
 
 #include "../helpers/camera_suite_custom_event.h"
 
+#include <camera_suite_icons.h>
+
 #define BITMAP_HEADER_LENGTH 62
 #define FRAME_BIT_DEPTH 1
 #define FRAME_BUFFER_LENGTH 1024
@@ -33,7 +35,6 @@ static const unsigned char bitmap_header[BITMAP_HEADER_LENGTH] = {
     0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
     0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x00};
 
-extern const Icon I_DolphinCommon_56x48;
 typedef enum {
     WorkerEventReserved = (1 << 0), // Reserved for StreamBuffer internal event
     WorkerEventStop = (1 << 1),