From 98452d7dfde2a44362e99db4fa73d9ca6107f38e Mon Sep 17 00:00:00 2001 From: xue <2144439972@qq.com> Date: Mon, 29 Sep 2025 09:54:59 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/ln/nativeapp/nativeui/ota/src/OtaView.cpp | 2 +- .../nativeui/thunderbird/src/ThunderBirdGuideView.cpp | 8 ++++++++ .../nativeui/thunderbird/src/ThunderBirdModel.cpp | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaView.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaView.cpp index 2b6b69628..c7bed52a0 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaView.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaView.cpp @@ -712,7 +712,7 @@ namespace OHOS progress->SetForegroundStyle(STYLE_BACKGROUND_COLOR, Color::Red().full); // 红色 } else { // 正常状态显示蓝色 - progress->SetForegroundStyle(STYLE_BACKGROUND_COLOR, Color::Blue().full); // 蓝色 + progress->SetForegroundStyle(STYLE_BACKGROUND_COLOR, Color::White().full); // 蓝色 } // 更新充电图标显示 diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdGuideView.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdGuideView.cpp index c7b9e6164..4ccec7ed8 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdGuideView.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdGuideView.cpp @@ -258,6 +258,14 @@ namespace OHOS if (qrcode_) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "start qrcode path:%s", ThunderBirdModel::GetInstance()->GetQrcodeContent().c_str()); + + // 重新设置二维码的尺寸和样式,防止变小 + qrcode_->SetPosition(133, 169, 104, 104); + qrcode_->SetStyle(STYLE_PADDING_LEFT, 4); + qrcode_->SetStyle(STYLE_PADDING_RIGHT, 4); + qrcode_->SetStyle(STYLE_PADDING_TOP, 4); + qrcode_->SetStyle(STYLE_PADDING_BOTTOM, 4); + qrcode_->SetQrcodeInfo(ThunderBirdModel::GetInstance()->GetQrcodeContent().c_str()); //打印 qrcode_->Invalidate();//刷新 diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp index 9f1a511a2..2ae130783 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp @@ -1633,7 +1633,7 @@ //绑定成功 if(ThunderBirdMainView::GetInstance()){ int currentView = ThunderBirdMainView::GetInstance()->GetCurrentView(); //获取当前视图 - ThunderBirdMainView::GetInstance()->ChangeView(currentView, THUNDERBIRD_REMINDERVIEW, ThunderBirdReminderView::THUNDERBIRD_REMINDERVIEW_BIND_SUCCESS); + ThunderBirdMainView::GetInstance()->ChangeView(currentView, THUNDERBIRD_ADJUSTVIEW, ThunderBirdAdjustView::THUNDERBIRD_ADJUSTVIEW_BIND_SUCCESS); } bind_status = true; return; -- 2.17.1