/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/ |
H A D | tab_bar_paint_method.h | 30 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 D | tab_bar_paint_method.cpp | 48 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 D | index.js | 22 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 D | toggle_button_model_ng.cpp | 46 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 D | toggle_button_model_ng.h | 30 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 D | modal_style.h | 32 std::optional<Color> backgroundColor; member 40 backgroundColor != modelStyle.backgroundColor || in operator ==()
|
H A D | sheet_style.h | 116 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 D | cj_alert_dialog_ffi.cpp | 99 // 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 D | cj_alert_dialog_ffi.h | 42 uint32_t* backgroundColor; member 58 uint32_t backgroundColor; member
|
/foundation/arkui/ace_engine/frameworks/core/components/declaration/qrcode/ |
H A D | qrcode_declaration.h | 30 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 D | js_qrcode.cpp | 80 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 D | rs_divided_render_util.cpp | 46 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 D | swiper_arrow_pattern.cpp | 234 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 D | ui_picker_unit_test.cpp | 110 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 D | rosen_render_toggle.cpp | 88 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 D | rosen_universal_painter.h | 37 SkCanvas* canvas, const RRect& paintRRect, uint32_t backgroundColor, double dipScale); 43 RSCanvas* canvas, const RRect& paintRRect, uint32_t backgroundColor, double dipScale);
|
H A D | rosen_universal_painter.cpp | 41 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 D | qrcode_napi.cpp | 98 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 D | qrcode_modifier.cpp | 42 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 D | qrcode_paint_method.cpp | 44 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 D | render_service_client_transition_demo.cpp | 94 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 D | rs_render_modifier.cpp | 190 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 D | text_style.cpp | 65 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 D | chipgroup.js | 34 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 D | qrcode_component.cpp | 85 void QrcodeComponent::SetBackgroundColor(const Color& backgroundColor) in SetBackgroundColor() argument 87 declaration_->SetBackgroundColor(backgroundColor); in SetBackgroundColor()
|