Home
last modified time | relevance | path

Searched refs:backgroundColor (Results 1 - 25 of 245) sorted by relevance

12345678910

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtab_bar_paint_method.h30 const std::vector<bool>& gradientRegions, const Color& backgroundColor, in TabBarPaintMethod()
33 backgroundColor_(backgroundColor), indicatorStyle_(indicatorStyle), in TabBarPaintMethod()
42 static void PaintGradient(RSCanvas& canvas, const RectF& barRect, const Color& backgroundColor,
44 static void PaintLeftGradient(RSCanvas& context, const RectF& barRect, const Color& backgroundColor,
46 static void PaintRightGradient(RSCanvas& context, const RectF& barRect, const Color& backgroundColor,
48 static void PaintTopGradient(RSCanvas& context, const RectF& barRect, const Color& backgroundColor,
50 static void PaintBottomGradient(RSCanvas& context, const RectF& barRect, const Color& backgroundColor,
52 static void PaintGradientRect(RSCanvas& context, const RSRect& gradientRect, const Color& backgroundColor,
29 TabBarPaintMethod(const RefPtr<TabBarModifier>& tabBarModifier, const std::vector<bool>& gradientRegions, const Color& backgroundColor, const IndicatorStyle& indicatorStyle, const OffsetF& indicatorOffset, bool hasIndicator) TabBarPaintMethod() argument
H A Dtab_bar_paint_method.cpp48 auto paintFunc = [gradientRegions = gradientRegions_, barRect = frameRect, backgroundColor = backgroundColor_, in GetForegroundDrawFunction()
50 PaintGradient(canvas, barRect, backgroundColor, gradientRegions, padding); in GetForegroundDrawFunction()
55 void TabBarPaintMethod::PaintGradient(RSCanvas& canvas, const RectF& barRect, const Color& backgroundColor, in PaintGradient() argument
72 PaintLeftGradient(canvas, barRect, backgroundColor, shadowMargin, gradientWidth, leftPadding); in PaintGradient()
75 PaintRightGradient(canvas, barRect, backgroundColor, shadowMargin, gradientWidth, rightPadding); in PaintGradient()
78 PaintTopGradient(canvas, barRect, backgroundColor, shadowMargin, gradientWidth); in PaintGradient()
81 PaintBottomGradient(canvas, barRect, backgroundColor, shadowMargin, gradientWidth); in PaintGradient()
90 void TabBarPaintMethod::PaintLeftGradient(RSCanvas& canvas, const RectF& barRect, const Color& backgroundColor, in PaintLeftGradient() argument
101 canvas, gradientRect, backgroundColor, leftStartPoint, leftEndPoint, padding + shadowMargin, gradientWidth); in PaintLeftGradient()
104 void TabBarPaintMethod::PaintRightGradient(RSCanvas& canvas, const RectF& barRect, const Color& backgroundColor, in PaintRightGradient() argument
119 PaintTopGradient(RSCanvas& canvas, const RectF& barRect, const Color& backgroundColor, float shadowMargin, float gradientWidth) PaintTopGradient() argument
133 PaintBottomGradient(RSCanvas& canvas, const RectF& barRect, const Color& backgroundColor, float shadowMargin, float gradientWidth) PaintBottomGradient() argument
148 PaintGradientRect(RSCanvas& canvas, const RSRect& gradientRect, const Color& backgroundColor, const RSPoint& startPoint, const RSPoint& endPoint, float shadowMargin, float gradientWidth) PaintGradientRect() argument
[all...]
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/chart/21/
H A Dindex.js22 backgroundColor: "#FF6364",
25 { backgroundColor: "#00FF00", data: [1000, 2, 800, 700, 433] },
26 { backgroundColor: "#0000FF", data: [100, 200, 300, 400, 500, 600, 550, 450, 350] }
36 { backgroundColor: "#FFFF00", data: [400, 200, 800, 400, 200, 800] },
37 { backgroundColor: "#FF6364", data: [300, 200, 750] }
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/button/
H A Dtoggle_button_model_ng.cpp46 void ToggleButtonModelNG::SetBackgroundColor(const Color& backgroundColor, bool flag) in SetBackgroundColor() argument
55 ACE_UPDATE_PAINT_PROPERTY(ToggleButtonPaintProperty, BackgroundColor, backgroundColor); in SetBackgroundColor()
61 NG::ViewAbstract::SetBackgroundColor(backgroundColor); in SetBackgroundColor()
69 void ToggleButtonModelNG::SetBackgroundColor(FrameNode* frameNode, const Color& backgroundColor) in SetBackgroundColor() argument
74 ACE_UPDATE_NODE_PAINT_PROPERTY(ToggleButtonPaintProperty, BackgroundColor, backgroundColor, frameNode); in SetBackgroundColor()
77 NG::ViewAbstract::SetBackgroundColor(frameNode, backgroundColor); in SetBackgroundColor()
H A Dtoggle_button_model_ng.h30 static void SetBackgroundColor(const Color& backgroundColor, bool flag);
33 static void SetBackgroundColor(FrameNode* frameNode, const Color& backgroundColor);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/
H A Dmodal_style.h32 std::optional<Color> backgroundColor; member
40 backgroundColor != modelStyle.backgroundColor || in operator ==()
H A Dsheet_style.h116 std::optional<Color> backgroundColor; member
139 backgroundColor == sheetStyle.backgroundColor && maskColor == sheetStyle.maskColor && in operator ==()
164 backgroundColor = sheetStyle.backgroundColor.has_value() ? sheetStyle.backgroundColor : backgroundColor; in PartialUpdate()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_alert_dialog_ffi.cpp99 // Parse backgroundColor. in ParseAlertDialogConfirm()
100 Color backgroundColor = Color(ColorAlphaAdapt(alertDialog.backgroundColor)); in ParseAlertDialogConfirm() local
101 properties.backgroundColor = backgroundColor; in ParseAlertDialogConfirm()
103 // Parse backgroundColor. in ParseAlertDialogConfirm()
141 // Parse backgroundColor in ParseButtonObj()
142 if (objInner.backgroundColor != nullptr) { in ParseButtonObj()
143 Color backgroundColor = Color(ColorAlphaAdapt(*objInner.backgroundColor)); in ParseButtonObj() local
[all...]
H A Dcj_alert_dialog_ffi.h42 uint32_t* backgroundColor; member
58 uint32_t backgroundColor; member
/foundation/arkui/ace_engine/frameworks/core/components/declaration/qrcode/
H A Dqrcode_declaration.h30 Color backgroundColor; member
62 return style.backgroundColor; in GetBackgroundColor()
107 void SetBackgroundColor(const Color& backgroundColor) in SetBackgroundColor() argument
110 style.backgroundColor = backgroundColor; in SetBackgroundColor()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_qrcode.cpp80 Color backgroundColor; in SetBackgroundColor() local
81 if (!ParseJsColor(info[0], backgroundColor) && !JSQRCodeTheme::ObtainBackgroundColor(backgroundColor)) { in SetBackgroundColor()
84 backgroundColor = qrcodeTheme->GetBackgroundColor(); in SetBackgroundColor()
87 QRCodeModel::GetInstance()->SetQRBackgroundColor(backgroundColor); in SetBackgroundColor()
108 JSClass<JSQRCode>::StaticMethod("backgroundColor", &JSQRCode::SetBackgroundColor, opt); in JSBind()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_divided_render_util.cpp46 auto backgroundColor = property.GetBackgroundColor(); in CreateBufferDrawParam() local
47 auto backgroundAlpha = backgroundColor.GetAlpha(); in CreateBufferDrawParam()
49 backgroundColor.SetAlpha(finalBackgroundAlpha); in CreateBufferDrawParam()
50 params.backgroundColor = static_cast<Drawing::ColorQuad>(backgroundColor.AsArgbInt()); in CreateBufferDrawParam()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/indicator_common/
H A Dswiper_arrow_pattern.cpp234 Color backgroundColor; in ButtonTouchEvent() local
242 backgroundColor = swiperIndicatorTheme->GetHoverArrowBackgroundColor(); in ButtonTouchEvent()
244 renderContext->BlendBgColor(backgroundColor); in ButtonTouchEvent()
255 backgroundColor = swiperIndicatorTheme->GetHoverArrowBackgroundColor().BlendColor( in ButtonTouchEvent()
258 backgroundColor = swiperIndicatorTheme->GetClickArrowBackgroundColor(); in ButtonTouchEvent()
261 renderContext->BlendBgColor(backgroundColor); in ButtonTouchEvent()
282 Color backgroundColor; in ButtonOnHover() local
295 backgroundColor = swiperIndicatorTheme->GetHoverArrowBackgroundColor().BlendColor( in ButtonOnHover()
298 backgroundColor = swiperIndicatorTheme->GetHoverArrowBackgroundColor(); in ButtonOnHover()
301 renderContext->BlendBgColor(backgroundColor); in ButtonOnHover()
[all...]
/foundation/arkui/ui_lite/test/unittest/components/
H A Dui_picker_unit_test.cpp110 ColorType backgroundColor; in HWTEST_F() local
112 backgroundColor.alpha = OPA_OPAQUE; in HWTEST_F()
115 picker_->SetTextColor(backgroundColor, highlightColor); in HWTEST_F()
116 EXPECT_EQ(picker_->GetBackgroundTextColor().alpha, backgroundColor.alpha); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components/toggle/
H A Drosen_render_toggle.cpp88 auto backgroundColor = toggleComponent_->GetBackgroundColor(); in GetStatusColor() local
96 return backgroundColor.BlendColor(pressedColor); in GetStatusColor()
98 return backgroundColor; in GetStatusColor()
/foundation/arkui/ace_engine/frameworks/core/components/common/painter/
H A Drosen_universal_painter.h37 SkCanvas* canvas, const RRect& paintRRect, uint32_t backgroundColor, double dipScale);
43 RSCanvas* canvas, const RRect& paintRRect, uint32_t backgroundColor, double dipScale);
H A Drosen_universal_painter.cpp41 SkCanvas* canvas, const RRect& paintRRect, uint32_t backgroundColor, double dipScale) in DrawRRectBackground()
44 RSCanvas* canvas, const RRect& paintRRect, uint32_t backgroundColor, double dipScale) in DrawRRectBackground()
56 skPaint.setColor(backgroundColor); in DrawRRectBackground()
83 brush.SetColor(backgroundColor); in DrawRRectBackground()
40 DrawRRectBackground( SkCanvas* canvas, const RRect& paintRRect, uint32_t backgroundColor, double dipScale) DrawRRectBackground() argument
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/qrcode/
H A Dqrcode_napi.cpp98 NAPI_ASSERT(env, argc >= ARG_NUM_1, "QRCodeModelNapi backgroundColor wrong number of arguments"); in JsBackgroundColor()
100 Color backgroundColor; in JsBackgroundColor() local
101 if (!CommonNapiUtils::ParseColor(env, argv[0], backgroundColor)) { in JsBackgroundColor()
104 backgroundColor = qrcodeTheme->GetBackgroundColor(); in JsBackgroundColor()
106 QRCodeModel::GetInstance()->SetQRBackgroundColor(backgroundColor); in JsBackgroundColor()
115 DECLARE_NAPI_FUNCTION("backgroundColor", JsBackgroundColor), in Init()
H A Dqrcode_modifier.cpp42 auto backgroundColor = backgroundColor_->Get(); in onDraw() local
49 auto bitMap = CreateBitMap(static_cast<int32_t>(qrCodeSize), qrCode, color, backgroundColor); in onDraw()
75 int32_t width, const qrcodegen::QrCode& qrCode, const Color& color, const Color& backgroundColor) const in CreateBitMap()
101 data[i * width + j] = ConvertColorFromHighToLow(backgroundColor); in CreateBitMap()
H A Dqrcode_paint_method.cpp44 auto backgroundColor = paintProperty->GetBackgroundColorValue(); in UpdateContentModifier() local
57 qrCodeModifier_->SetQRCodeBackgroundColor(backgroundColor); in UpdateContentModifier()
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/
H A Drender_service_client_transition_demo.cpp94 void SetBackgroundColor(Color backgroundColor) in SetBackgroundColor() argument
97 backgroundColor_ = std::make_shared<RSAnimatableProperty<Color>>(backgroundColor); in SetBackgroundColor()
100 backgroundColor_->Set(backgroundColor); in SetBackgroundColor()
165 void SetBackgroundColor(Color backgroundColor) in SetBackgroundColor() argument
167 backgroundColor_ = backgroundColor; in SetBackgroundColor()
218 void SetBackgroundColor(Color backgroundColor) in SetBackgroundColor() argument
220 backgroundColor_ = backgroundColor; in SetBackgroundColor()
273 void SetBackgroundColor(Color backgroundColor) in SetBackgroundColor() argument
275 backgroundColor_ = backgroundColor; in SetBackgroundColor()
327 void SetBackgroundColor(Color backgroundColor) in SetBackgroundColor() argument
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/modifier/
H A Drs_render_modifier.cpp190 Color RSEnvForegroundColorStrategyRenderModifier::CalculateInvertColor(Color backgroundColor) const in CalculateInvertColor()
192 int16_t a = std::clamp<int16_t>(backgroundColor.GetAlpha(), 0, UINT8_MAX); in CalculateInvertColor()
193 int16_t r = 255 - std::clamp<int16_t>(backgroundColor.GetRed(), 0, UINT8_MAX); in CalculateInvertColor()
194 int16_t g = 255 - std::clamp<int16_t>(backgroundColor.GetGreen(), 0, UINT8_MAX); in CalculateInvertColor()
195 int16_t b = 255 - std::clamp<int16_t>(backgroundColor.GetBlue(), 0, UINT8_MAX); in CalculateInvertColor()
208 Color backgroundColor = context.properties_.GetBackgroundColor(); in GetInvertBackgroundColor() local
209 if (backgroundColor.GetAlpha() == 0xff) { in GetInvertBackgroundColor()
211 return CalculateInvertColor(backgroundColor); in GetInvertBackgroundColor()
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dtext_style.cpp65 TextBackgroundStyle exportStyle = { .backgroundColor = Color::TRANSPARENT, .backgroundRadius = defaultRadius }; in ToJsonValue()
67 exportStyle.backgroundColor = style.value().backgroundColor.value_or(Color::TRANSPARENT); in ToJsonValue()
72 styleJson->Put("color", exportStyle.backgroundColor->ColorToString().c_str()); in ToJsonValue()
/foundation/arkui/ace_engine/advanced_ui_component/chipgroup/interfaces/
H A Dchipgroup.js34 backgroundColor: {
81 backgroundColor: {
274 Button.backgroundColor(e4.backgroundColor);
612 if (this.itemStyle && this.itemStyle.backgroundColor) {
613 if (typeof this.itemStyle.backgroundColor === 'object') {
614 let m4 = this.itemStyle.backgroundColor;
616 return b1.itemStyle.backgroundColor;
619 return this.itemStyle.backgroundColor;
621 return b1.itemStyle.backgroundColor;
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/qrcode/
H A Dqrcode_component.cpp85 void QrcodeComponent::SetBackgroundColor(const Color& backgroundColor) in SetBackgroundColor() argument
87 declaration_->SetBackgroundColor(backgroundColor); in SetBackgroundColor()

Completed in 12 milliseconds

12345678910