Home
last modified time | relevance | path

Searched refs:endColor (Results 1 - 25 of 32) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Drosen_render_picker_base.cpp167 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 Dtab_bar_paint_method.cpp152 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 Drender_option.cpp206 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 Drender_option.h122 void PlayEventEffectAnimation(const Color& endColor, int32_t duration, bool isHoverExists = false);
/foundation/arkui/ace_engine/frameworks/core/components/select/
H A Dselect_element.h57 void PlayEventEffectAnimation(bool isDown, const Color& endColor);
H A Dselect_element.cpp172 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 Drosen_render_data_panel.cpp174 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 Drender_data_panel.h36 Color endColor; member
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dcolor.cpp292 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 Dcolor.h71 // 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 Dprogress_paint_property.cpp121 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 Dlayout_property.cpp1523 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 Djs_progress.cpp146 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 Drender_tool_bar_item.h90 void PlayEventEffectAnimation(const Color& endColor);
H A Drender_tool_bar_item.cpp264 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 Danimation_utils.h63 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 Drosen_animation_utils.cpp193 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 Dmock_animation_utils.cpp165 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 Drender_multi_child_scroll.cpp612 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 Dprogress_modifier.cpp140 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 Dbubble_pattern.h279 RefPtr<RenderContext>& renderContext, const Color& endColor, int32_t duration, const RefPtr<Curve>& curve);
H A Dbubble_pattern.cpp406 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 Ddatepicker_column_pattern.cpp666 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 Dtimepicker_column_pattern.cpp735 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 Dtextpicker_column_pattern.cpp876 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()

Completed in 26 milliseconds

12