From: xue <2144439972@qq.com> Date: Wed, 5 Nov 2025 06:23:34 +0000 (+0800) Subject: 优化日程 X-Git-Tag: V1.0.9_20251128_194606_LN~110^2~2 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=1e1d43eec0113715839f2473a037ad7a78cac125;p=mirrors%2FFD230.git 优化日程 --- diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdReminderView.h b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdReminderView.h index 11158e893..4eef1b09a 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdReminderView.h +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdReminderView.h @@ -28,6 +28,8 @@ namespace OHOS void UpdateTaskReminderText(const char* title, const char* content); void UpdateTaskReminderText(const char* text); void UpdateTaskReminderIcon(const char* icon); + + void IsIcon(bool flag); enum : int16_t { THUNDERBIRD_REMINDERVIEW_VOLUME = 0, // 音量调节 diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdReminderView.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdReminderView.cpp index 0ebdfe593..6a5a22819 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdReminderView.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdReminderView.cpp @@ -153,7 +153,7 @@ namespace OHOS if (RemindIcon) { // 图标位置:整体居中的左侧 - RemindIcon->SetPosition(52, 66, 36, 36); + RemindIcon->SetPosition(62, 66, 36, 36); RemindIcon->SetSrc("/user/res/notification.bin"); RemindIcon->SetVisible(true); } @@ -506,6 +506,17 @@ namespace OHOS RemindIcon->SetSrc(icon); RemindIcon->Invalidate(); } + void ThunderBirdReminderView::IsIcon(bool flag) + { + if(flag == true) + { + RemindIcon->SetVisible(true); + } + else + { + RemindIcon->SetVisible(false); + } + } }