/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
H A D | rosen_render_picker_base.cpp | 167 Color endColor = backDecoration ? backDecoration->GetBackgroundColor() : Color::WHITE; in PaintGradient() local 171 endColor = renderBox->GetColor(); in PaintGradient() 174 Color middleColor = endColor.ChangeAlpha(0); in PaintGradient() 176 SkColor colors[] = { endColor.GetValue(), middleColor.GetValue(), middleColor.GetValue(), endColor.GetValue() }; in PaintGradient() 183 std::vector<RSColorQuad> colors = { endColor.GetValue(), middleColor.GetValue(), middleColor.GetValue(), in PaintGradient() 184 endColor.GetValue() }; in PaintGradient()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/ |
H A D | tab_bar_paint_method.cpp | 152 Color endColor = backgroundColor; in PaintGradientRect() local 153 Color startColor = endColor.ChangeAlpha(0); in PaintGradientRect() 155 std::vector<RSColorQuad> gradientColors { startColor.GetValue(), endColor.GetValue(), endColor.GetValue() }; in PaintGradientRect()
|
/foundation/arkui/ace_engine/frameworks/core/components/option/ |
H A D | render_option.cpp | 206 Color endColor; in OnTouch() local 208 endColor = clickedColor_; in OnTouch() 210 endColor = hoveredColor_; in OnTouch() 212 endColor = Color::TRANSPARENT; in OnTouch() 214 PlayEventEffectAnimation(endColor, PRESS_DURATION); in OnTouch() 815 void RenderOption::PlayEventEffectAnimation(const Color& endColor, int32_t duration, bool isHoverExists) in PlayEventEffectAnimation() argument 821 CreateMouseAnimation(colorAnimation, GetEventEffectColor(), endColor); in PlayEventEffectAnimation()
|
H A D | render_option.h | 122 void PlayEventEffectAnimation(const Color& endColor, int32_t duration, bool isHoverExists = false);
|
/foundation/arkui/ace_engine/frameworks/core/components/select/ |
H A D | select_element.h | 57 void PlayEventEffectAnimation(bool isDown, const Color& endColor);
|
H A D | select_element.cpp | 172 auto endColor = isDown ? component->GetClickedColor() : Color::TRANSPARENT; in HandleTouchEvent() local 173 PlayEventEffectAnimation(isDown, endColor); in HandleTouchEvent() 431 void SelectElement::PlayEventEffectAnimation(bool isDown, const Color& endColor) in PlayEventEffectAnimation() argument 440 CreateColorAnimation(colorAnimation, eventEffectColor_, endColor, isDown); in PlayEventEffectAnimation()
|
/foundation/arkui/ace_engine/frameworks/core/components/data_panel/ |
H A D | rosen_render_data_panel.cpp | 174 SkColor colors[2] = { arcData.startColor.GetValue(), arcData.endColor.GetValue() }; in PaintProgress() 191 endCirclePaint.setColor(arcData.endColor.GetValue()); in PaintProgress() 223 Color::LineColorTransition(arcData.endColor, arcData.startColor, progress / START_COLOR_TRANSITION_EDGE) in PaintProgress() 246 Color::LineColorTransition(arcData.endColor, arcData.startColor, progress / START_COLOR_TRANSITION_EDGE) in PaintProgress() 285 std::vector<RSColorQuad> colors = { arcData.startColor.GetValue(), arcData.endColor.GetValue() }; in PaintProgress() 299 endCircleBrush.SetColor(arcData.endColor.GetValue()); in PaintProgress() 340 Color::LineColorTransition(arcData.endColor, arcData.startColor, progress / START_COLOR_TRANSITION_EDGE) in PaintProgress() 369 Color::LineColorTransition(arcData.endColor, arcData.startColor, progress / START_COLOR_TRANSITION_EDGE) in PaintProgress() 432 arcData.endColor.ChangeAlpha(101).GetValue() }; in PaintProgressFilterMask() 446 endCirclePaint.setColor(arcData.endColor in PaintProgressFilterMask() [all...] |
H A D | render_data_panel.h | 36 Color endColor; member
|
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | color.cpp | 292 const Color Color::LineColorTransition(const Color& startColor, const Color& endColor, double percent) 299 red = static_cast<uint8_t>((endColor.GetRed()- startColor.GetRed()) * percent) + startColor.GetRed(); 300 green = static_cast<uint8_t>((endColor.GetGreen() - startColor.GetGreen()) * percent) + startColor.GetGreen(); 301 blue = static_cast<uint8_t>((endColor.GetBlue() - startColor.GetBlue()) * percent) + startColor.GetBlue(); 302 alpha = static_cast<uint8_t>((endColor.GetAlpha() - startColor.GetAlpha()) * percent) + startColor.GetAlpha();
|
H A D | color.h | 71 // Return the linear transition color from startColor to endColor. 72 static const Color LineColorTransition(const Color& startColor, const Color& endColor, double percent);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/progress/ |
H A D | progress_paint_property.cpp | 121 auto endColor = theme->GetRingProgressEndSideColor(); in ToJsonGradientColor() local 124 gradientColorEnd.SetLinearColor(LinearColor(endColor)); in ToJsonGradientColor()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/ |
H A D | layout_property.cpp | 1523 if (!outerBorderColorProperty.startColor.has_value() && !outerBorderColorProperty.endColor.has_value()) { in CheckLocalizedOuterBorderColor() 1534 if (outerBorderColorProperty.endColor.has_value()) { in CheckLocalizedOuterBorderColor() 1535 borderColors.endColor = outerBorderColorProperty.endColor; in CheckLocalizedOuterBorderColor() 1537 borderColors.leftColor = outerBorderColorProperty.endColor; in CheckLocalizedOuterBorderColor() 1539 borderColors.rightColor = outerBorderColorProperty.endColor; in CheckLocalizedOuterBorderColor() 1741 if (!colorProperty.startColor.has_value() && !colorProperty.endColor.has_value()) { in CheckLocalizedEdgeColors() 1752 if (colorProperty.endColor.has_value()) { in CheckLocalizedEdgeColors() 1753 borderColors.endColor = colorProperty.endColor; in CheckLocalizedEdgeColors() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_progress.cpp | 146 Color endColor; in SetColor() local 149 endColor = theme->GetRingProgressEndSideColor(); in SetColor() 157 endColor = colorVal; in SetColor() 163 endSideColor.SetLinearColor(LinearColor(endColor)); in SetColor()
|
/foundation/arkui/ace_engine/frameworks/core/components/tool_bar/ |
H A D | render_tool_bar_item.h | 90 void PlayEventEffectAnimation(const Color& endColor);
|
H A D | render_tool_bar_item.cpp | 264 void RenderToolBarItem::PlayEventEffectAnimation(const Color& endColor) in PlayEventEffectAnimation() argument 270 CreateMouseAnimation(colorAnimation, GetEventEffectColor(), endColor); in PlayEventEffectAnimation()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/ |
H A D | animation_utils.h | 63 RefPtr<NG::RenderContext>& renderContext, const Color& endColor, int32_t duration, const RefPtr<Curve>& curve);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | rosen_animation_utils.cpp | 193 RefPtr<NG::RenderContext>& renderContext, const Color& endColor, int32_t duration, const RefPtr<Curve>& curve) in BlendBgColorAnimation() 198 AnimationUtils::Animate(option, [context = renderContext, color = endColor]() { context->BlendBgColor(color); }); in BlendBgColorAnimation() 192 BlendBgColorAnimation( RefPtr<NG::RenderContext>& renderContext, const Color& endColor, int32_t duration, const RefPtr<Curve>& curve) BlendBgColorAnimation() argument
|
/foundation/arkui/ace_engine/test/mock/core/render/ |
H A D | mock_animation_utils.cpp | 165 RefPtr<NG::RenderContext>& renderContext, const Color& endColor, int32_t duration, const RefPtr<Curve>& curve) in BlendBgColorAnimation() 164 BlendBgColorAnimation( RefPtr<NG::RenderContext>& renderContext, const Color& endColor, int32_t duration, const RefPtr<Curve>& curve) BlendBgColorAnimation() argument
|
/foundation/arkui/ace_engine/frameworks/core/components/scroll/ |
H A D | render_multi_child_scroll.cpp | 612 Color endColor = backgroundColor_; in ApplyGradientColor() local 613 endColor = endColor.ChangeAlpha(0); in ApplyGradientColor() 614 end.SetColor(endColor); in ApplyGradientColor()
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | progress_modifier.cpp | 140 Color endColor; in ResetProgressColor() local 151 endColor = progressTheme->GetRingProgressEndSideColor(); in ResetProgressColor() 162 endSideColor.SetLinearColor(LinearColor(endColor)); in ResetProgressColor()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/bubble/ |
H A D | bubble_pattern.h | 279 RefPtr<RenderContext>& renderContext, const Color& endColor, int32_t duration, const RefPtr<Curve>& curve);
|
H A D | bubble_pattern.cpp | 406 RefPtr<RenderContext>& renderContext, const Color& endColor, int32_t duration, const RefPtr<Curve>& curve) in Animation() 413 option, [buttonContext = renderContext, color = endColor]() { buttonContext->UpdateBackgroundColor(color); }); in Animation() 405 Animation( RefPtr<RenderContext>& renderContext, const Color& endColor, int32_t duration, const RefPtr<Curve>& curve) Animation() argument
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/ |
H A D | datepicker_column_pattern.cpp | 666 Color endColor; in TextPropertiesLinearAnimation() local 669 endColor = animationProperties_[index].downColor; in TextPropertiesLinearAnimation() 675 endColor = animationProperties_[index].upColor; in TextPropertiesLinearAnimation() 683 Color updateColor = colorEvaluator->Evaluate(startColor, endColor, distancePercent_); in TextPropertiesLinearAnimation()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/ |
H A D | timepicker_column_pattern.cpp | 735 Color endColor; in TextPropertiesLinearAnimation() local 738 endColor = animationProperties_[index].downColor; in TextPropertiesLinearAnimation() 745 endColor = animationProperties_[index].upColor; in TextPropertiesLinearAnimation() 754 Color updateColor = colorEvaluator->Evaluate(startColor, endColor, distancePercent_); in TextPropertiesLinearAnimation()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/ |
H A D | textpicker_column_pattern.cpp | 876 Color endColor; in TextPropertiesLinearAnimation() local 879 endColor = animationProperties_[index].downColor; in TextPropertiesLinearAnimation() 885 endColor = animationProperties_[index].upColor; in TextPropertiesLinearAnimation() 893 Color updateColor = colorEvaluator->Evaluate(startColor, endColor, std::abs(percent)); in TextPropertiesLinearAnimation()
|