!14907 【Progress组件】调整环形进度条扫光亮度

Merge pull request !14907 from sunjiakun/progress_change_ring_sweeping_opacity
This commit is contained in:
openharmony_ci 2023-06-24 12:38:29 +00:00 committed by Gitee
commit 4fe2d0f7ba
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1012,8 +1012,8 @@ void ProgressModifier::GenerateRingSweepingGradientInfo(
gradientColorEnd.SetDimension(Dimension(0.0, DimensionUnit::PERCENT));
gradient.AddColor(gradientColorEnd);
// The sweep layer is a 45-degree white gradient with an opacity of 0.6 at 35 degrees and 0 at both ends.
Color sweepingColorMiddle = sweepingColorBase.ChangeOpacity(0.6f);
// The sweep layer is a 45-degree white gradient with an opacity of 0.4 at 35 degrees and 0 at both ends.
Color sweepingColorMiddle = sweepingColorBase.ChangeOpacity(0.4f);
GradientColor gradientColorMiddle;
gradientColorMiddle.SetColor(sweepingColorMiddle);
gradientColorMiddle.SetDimension(Dimension(35.0f / ANGLE_45, DimensionUnit::PERCENT));