From: Caisking <3449750381@qq.com> Date: Thu, 12 Sep 2024 01:53:28 +0000 (+0800) Subject: 优化睡眠进度条背景的线条 X-Git-Tag: release_V1.2.70_20241020_135402~485^2~5^2~16 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=34890881a23c605680e1c09d9c3ff284a53239f3;p=mirrors%2FFD230.git 优化睡眠进度条背景的线条 --- 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 63e26488b..1c8499c98 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepView.cpp @@ -171,6 +171,9 @@ namespace OHOS circleProgress_->SetViewId("circleProgress1"); circleProgress_->SetStyle(STYLE_BACKGROUND_OPA, 0x00); circleProgress_->SetBackgroundStyle(STYLE_BACKGROUND_COLOR, 0xff000000); + circleProgress_->SetBackgroundStyle(STYLE_BACKGROUND_OPA, 0x00); + circleProgress_->SetBackgroundStyle(STYLE_BORDER_OPA, 0x00); + circleProgress_->SetBackgroundStyle(STYLE_LINE_OPA, 0x00); circleProgress_->SetForegroundStyle(STYLE_BACKGROUND_COLOR, 0xff2195F6); circleProgress_->SetForegroundStyle(STYLE_BORDER_COLOR, 0xff000000); circleProgress_->SetForegroundStyle(STYLE_LINE_COLOR, 0xff5320e2); @@ -179,7 +182,7 @@ namespace OHOS circleProgress_->SetRadius(205); circleProgress_->SetStartAngle(320); circleProgress_->SetEndAngle(40); - circleProgress_->SetValue(0); + circleProgress_->SetCapType(CAP_ROUND); /* -------------------------------- 将组件添加到根视图 ------------------------------- */ Add(progress_image); Add(circleProgress_);