From: Caisking <3449750381@qq.com> Date: Wed, 11 Sep 2024 12:46:10 +0000 (+0800) Subject: #456睡眠界面,紫色进度条外面有刻度未遮挡完全 X-Git-Tag: release_V1.2.70_20241020_135402~485^2~5^2~19 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=0237e056ba63b945e15933a3754a15e16c9b2523;p=mirrors%2FFD230.git #456睡眠界面,紫色进度条外面有刻度未遮挡完全 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepView.cpp b/code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepView.cpp index 1256ec558..22152ab5a 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepView.cpp @@ -166,28 +166,20 @@ namespace OHOS WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "circleProgress new fail"); return false; } - circleProgress_->SetPosition(-1, 0); - circleProgress_->Resize(466, 466); - circleProgress_->SetViewId("circleProgress"); + circleProgress_->SetPosition(0, 0); + circleProgress_->Resize(466, 466); + circleProgress_->SetViewId("circleProgress1"); circleProgress_->SetStyle(STYLE_BACKGROUND_OPA, 0x00); circleProgress_->SetBackgroundStyle(STYLE_BACKGROUND_COLOR, 0xff000000); - circleProgress_->SetBackgroundStyle(STYLE_BACKGROUND_OPA, 0x00); - circleProgress_->SetBackgroundStyle(STYLE_LINE_HEIGHT, 200); - circleProgress_->SetBackgroundStyle(STYLE_LINE_WIDTH, 21); - circleProgress_->SetBackgroundStyle(STYLE_LINE_OPA, 0x00); circleProgress_->SetForegroundStyle(STYLE_BACKGROUND_COLOR, 0xff2195F6); - circleProgress_->SetForegroundStyle(STYLE_BORDER_WIDTH, 200); - circleProgress_->SetForegroundStyle(STYLE_BORDER_RADIUS, 200); circleProgress_->SetForegroundStyle(STYLE_BORDER_COLOR, 0xff000000); - circleProgress_->SetForegroundStyle(STYLE_LINE_HEIGHT, 35); - circleProgress_->SetForegroundStyle(STYLE_LINE_COLOR, 0xff5320E2); + circleProgress_->SetForegroundStyle(STYLE_LINE_COLOR, 0xff5320e2); circleProgress_->SetForegroundStyle(STYLE_LINE_WIDTH, 20); circleProgress_->SetCenterPosition(233, 229); circleProgress_->SetRadius(205); circleProgress_->SetStartAngle(320); circleProgress_->SetEndAngle(40); - circleProgress_->SetValue(0); - circleProgress_->SetBackgroundImagePosition(36, 26); + circleProgress_->SetValue(100); /* -------------------------------- 将组件添加到根视图 ------------------------------- */ Add(progress_image); Add(circleProgress_);