From c596e4dd72db408d09333e99900f65f29a083945 Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Mon, 26 Aug 2024 19:17:22 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E5=AE=9A=E4=B9=89?= =?utf8?q?=E8=A1=A8=E7=9B=98=E5=8F=AF=E9=85=8D=E7=BD=AEId(1~5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/fd230app/nativelauncher/include/UiConfig.h | 3 +++ .../wearable/fd230app/nativeui/main/src/MainModel.cpp | 1 + 2 files changed, 4 insertions(+) diff --git a/code/sdk/application/wearable/fd230app/nativelauncher/include/UiConfig.h b/code/sdk/application/wearable/fd230app/nativelauncher/include/UiConfig.h index c023335ef..bc1392af2 100644 --- a/code/sdk/application/wearable/fd230app/nativelauncher/include/UiConfig.h +++ b/code/sdk/application/wearable/fd230app/nativelauncher/include/UiConfig.h @@ -38,6 +38,7 @@ namespace OHOS DIAL_CLOCK_2 = 2, DIAL_CLOCK_3 = 3, DIAL_CLOCK_4 = 4, + DIAL_CLOCK_5 = 5, DIAL_MAX, } DialId; @@ -89,6 +90,8 @@ namespace OHOS static constexpr const char *CUSTOM_CLOCK3_DIALPER_PATH = APP_CUSTOM_DIAL_PATH "/3/thumbnail.bin"; static constexpr const char *CUSTOM_CLOCK4_DIALBACK_PATH = APP_CUSTOM_DIAL_PATH "/4/main_bg.bin"; static constexpr const char *CUSTOM_CLOCK4_DIALPER_PATH = APP_CUSTOM_DIAL_PATH "/4/thumbnail.bin"; + static constexpr const char *CUSTOM_CLOCK5_DIALBACK_PATH = APP_CUSTOM_DIAL_PATH "/5/main_bg.bin"; + static constexpr const char *CUSTOM_CLOCK5_DIALPER_PATH = APP_CUSTOM_DIAL_PATH "/5/thumbnail.bin"; /* -------------------------------------------------------------------------- */ /*卡片管理*/ static constexpr const char *PNG_SET_CARD_ADD = APP_RES_PATH "/MainCard/CARD_ADD.bin"; diff --git a/code/sdk/application/wearable/fd230app/nativeui/main/src/MainModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/main/src/MainModel.cpp index 0cd452184..448cfaec3 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/main/src/MainModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/main/src/MainModel.cpp @@ -53,6 +53,7 @@ namespace OHOS {DIAL_CLOCK_2, "Custom_2", CUSTOM_CLOCK2_DIALPER_PATH, DEFAULT_TASK_PERIOD}, // 表盘 Id 2 {DIAL_CLOCK_3, "Custom_3", CUSTOM_CLOCK3_DIALPER_PATH, DEFAULT_TASK_PERIOD}, // 表盘 Id 3 {DIAL_CLOCK_4, "Custom_4", CUSTOM_CLOCK4_DIALPER_PATH, DEFAULT_TASK_PERIOD}, // 表盘 Id 4 + {DIAL_CLOCK_5, "Custom_5", CUSTOM_CLOCK5_DIALPER_PATH, DEFAULT_TASK_PERIOD}, // 表盘 Id 4 }; const CardInfo printfMap[] = { {HEART_RATE, "心率卡片"}, -- 2.17.1