From 62d358633c261ca8ce0b362de3a3756b85e3c3bb Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Tue, 10 Mar 2026 17:47:39 +0800 Subject: [PATCH] =?utf8?q?=E8=BF=90=E5=8A=A8=E7=9B=AE=E6=A0=87=E8=BE=BE?= =?utf8?q?=E6=88=90=E6=96=87=E5=AD=97=E9=A2=9C=E8=89=B2=E4=BF=AE=E6=94=B9?= =?utf8?q?=E6=88=90fuying=E8=93=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeui/traing/training_card/src/TraingCardView.cpp | 3 ++- .../fd272/service/msg_center/src/msg_center_customer.cpp | 4 ++-- .../fd272/service/msg_center/src/notify/goal_notification.cpp | 4 +++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/traing/training_card/src/TraingCardView.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/traing/training_card/src/TraingCardView.cpp index d1e69a3e8..c48cbf224 100755 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/traing/training_card/src/TraingCardView.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/traing/training_card/src/TraingCardView.cpp @@ -1039,7 +1039,8 @@ void TraingCardView::InitImageAnimator() { labeltag->SetLineBreakMode(UILabel::LINE_BREAK_OSCILLATION); labeltag->SetRollSpeed(23); - labeltag->SetTextColor(Color::GetColorFromRGBA(0x4f, 0xc3, 0x4c, 0xff)); + // labeltag->SetTextColor(Color::GetColorFromRGBA(0x4f, 0xc3, 0x4c, 0xff)); + labeltag->SetTextColor(Color::GetColorFromRGBA(0x0d, 0x62, 0xff, 0xff)); getView->Add(labeltag); // 初始化图片数组以及动画 diff --git a/code/sdk/application/wearable/fd272/service/msg_center/src/msg_center_customer.cpp b/code/sdk/application/wearable/fd272/service/msg_center/src/msg_center_customer.cpp index e5885e9e2..972335d6a 100644 --- a/code/sdk/application/wearable/fd272/service/msg_center/src/msg_center_customer.cpp +++ b/code/sdk/application/wearable/fd272/service/msg_center/src/msg_center_customer.cpp @@ -147,8 +147,8 @@ {TOPIC_EVENT_BLE_TRAINING,PRIORITY_TWO}, {TOPIC_EVENT_BLE_TRANSMIT,PRIORITY_ONE}, - {TOPIC_EVENT_CHARGE_PLUG, PRIORITY_TWO}, - {TOPIC_EVENT_CHARGE_UNPLUG, PRIORITY_TWO}, + {TOPIC_EVENT_CHARGE_PLUG, PRIORITY_TWO},// 充电插入 + {TOPIC_EVENT_CHARGE_UNPLUG, PRIORITY_TWO},// 充电拔出 {TOPIC_EVENT_LOWPOWER_ALARM,PRIORITY_TWO}, {TOPIC_EVENT_DEVICE_BIND, PRIORITY_ONE}, diff --git a/code/sdk/application/wearable/fd272/service/msg_center/src/notify/goal_notification.cpp b/code/sdk/application/wearable/fd272/service/msg_center/src/notify/goal_notification.cpp index 79fba4135..ddfdde8da 100755 --- a/code/sdk/application/wearable/fd272/service/msg_center/src/notify/goal_notification.cpp +++ b/code/sdk/application/wearable/fd272/service/msg_center/src/notify/goal_notification.cpp @@ -326,7 +326,7 @@ namespace OHOS } WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP,"tag[%d]-tagType[%d]-tagString[%s]\r\n", tag, tagType,tagString.c_str()); InitLabel(labeltag, 70, 215, 326, 97, "label2", tagString.c_str(),DEFAULT_VECTOR_FONT_FILENAME, 80); - labeltag->SetTextColor(Color::GetColorFromRGBA(0x4f, 0xc3, 0x4c, 0xff)); + labeltag->SetTextColor(Color::GetColorFromRGBA(0x0d, 0x62, 0xff, 0xff)); labeltag->SetLineBreakMode(UILabel::LINE_BREAK_OSCILLATION); /* 与充电动画一致的创建方式:CreateImageInfoArray + ImageAnimatorInfo(IMG_SRC_IMAGE_INFO) + SetPosition/SetImageAnimatorSrc */ if (imageAnimator == nullptr) @@ -538,6 +538,8 @@ namespace OHOS labeltag->SetLineBreakMode(UILabel::LINE_BREAK_MARQUEE); getView->Invalidate(); } + if(labeltag != nullptr) + labeltag->SetTextColor(Color::GetColorFromRGBA(0x0d, 0x62, 0xff, 0xff)); return getView; WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ShowGetTagView end"); -- 2.17.1