mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2025-02-04 01:10:11 +00:00
!14907 【Progress组件】调整环形进度条扫光亮度
Merge pull request !14907 from sunjiakun/progress_change_ring_sweeping_opacity
This commit is contained in:
commit
4fe2d0f7ba
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user