/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
H A D | border_property.h | 193 std::optional<Color> leftColor; member 203 leftColor = borderColor; in SetColor() 211 return (leftColor == value.leftColor) && (rightColor == value.rightColor) && (topColor == value.topColor) && in operator ==()
|
H A D | border_property.cpp | 143 res->Put("left", leftColor.value_or(Color()).ColorToString().c_str()); in ToJsonValue() 151 auto left = leftColor.value_or(Color()).ColorToString(); in ToJsonValue() 160 str.append("leftColor: [").append(leftColor.has_value() ? leftColor->ColorToString() : "NA").append("]"); in ToString()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/security_component/ |
H A D | security_component_test_ng.cpp | 340 EXPECT_EQ(borderColor.leftColor.value_or(Color()), Color::RED); in HWTEST_F() 469 EXPECT_EQ(borderColor.leftColor.value_or(Color()), Color::GREEN); in HWTEST_F() 527 EXPECT_EQ(borderColor.leftColor.value_or(Color()), Color::GREEN); in HWTEST_F() 570 EXPECT_NE(borderColor.leftColor.value_or(Color()), Color::GREEN); in HWTEST_F() 788 EXPECT_EQ(borderColor.leftColor.value_or(Color()), Color::RED); in HWTEST_F() 918 EXPECT_EQ(borderColor.leftColor.value_or(Color()), Color::GREEN); in HWTEST_F() 976 EXPECT_EQ(borderColor.leftColor.value_or(Color()), Color::GREEN); in HWTEST_F() 1019 EXPECT_NE(borderColor.leftColor.value_or(Color()), Color::GREEN); in HWTEST_F() 1216 EXPECT_EQ(borderColor.leftColor.value_or(Color()), Color::RED); in HWTEST_F() 1345 EXPECT_EQ(borderColor.leftColor in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/test/unittest/core/layout/ |
H A D | layout_property_test_ng_two.cpp | 299 EXPECT_EQ(renderContext->GetBorder()->GetBorderColorValue().leftColor.value(), Color::BLUE); in HWTEST_F() 334 EXPECT_EQ(renderContext->GetBorder()->GetBorderColorValue().leftColor.value(), Color::BLUE); in HWTEST_F() 647 EXPECT_EQ(renderContext->GetOuterBorder()->GetOuterBorderColorValue().leftColor.value(), Color::BLUE); in HWTEST_F() 683 EXPECT_EQ(renderContext->GetOuterBorder()->GetOuterBorderColorValue().leftColor.value(), Color::BLUE); in HWTEST_F() 706 EXPECT_FALSE(renderContext->GetOuterBorder()->GetOuterBorderColorValue().leftColor.has_value()); in HWTEST_F()
|
/foundation/arkui/ace_engine/test/unittest/core/property/ |
H A D | border_property_test_ng.cpp | 301 const string strTemp = "leftColor: [NA]rightColor: [NA]topColor: [NA]bottomColor: [NA]"; in HWTEST_F() 306 EXPECT_TRUE(borderColorProperty.leftColor.has_value()); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/ |
H A D | layout_property.cpp | 1531 borderColors.leftColor = outerBorderColorProperty.startColor; in CheckLocalizedOuterBorderColor() 1537 borderColors.leftColor = outerBorderColorProperty.endColor; in CheckLocalizedOuterBorderColor() 1749 borderColors.leftColor = colorProperty.startColor; in CheckLocalizedEdgeColors() 1755 borderColors.leftColor = colorProperty.endColor; in CheckLocalizedEdgeColors()
|
/foundation/arkui/ace_engine/test/unittest/core/render/ |
H A D | render_context_test_ng.cpp | 369 EXPECT_EQ(renderContext->GetBorderColor()->leftColor.value(), Color::BLACK); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | view_abstract_model_impl.cpp | 425 Color leftColor = colorLeft.has_value() ? colorLeft.value() : BoxComponentHelper::GetBorderColorTop(decoration); in SetBorderColor() local 434 BoxComponentHelper::SetBorderColor(decoration, leftColor, rightColor, topColor, bottomColor, option); in SetBorderColor() 438 BoxStateAttribute::BORDER_COLOR, AnimatableColor(leftColor, option), stack->GetVisualState()); in SetBorderColor()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | rosen_render_context.cpp | 2404 rsNode_->SetBorderColor(value.leftColor.value_or(Color::BLACK).GetValue(), in SetBorderColor() 2514 Rosen::Vector4<Rosen::RSColor> color(Rosen::RSColor::FromArgbInt(value.leftColor.value_or(Color::BLACK).GetValue()), in SetOuterBorderColor() 3567 auto leftColor = (Color::TRANSPARENT).GetValue(); in ResetBlendBorderColor() local 3572 leftColor = GetBorderColor()->leftColor.value_or(Color::TRANSPARENT).GetValue(); in ResetBlendBorderColor() 3577 rsNode_->SetBorderColor(leftColor, topColor, rightColor, bottomColor); in ResetBlendBorderColor() 3584 auto leftColor = color.GetValue(); in BlendBorderColor() local 3589 leftColor = (GetBorderColor()->leftColor.value_or(Color::TRANSPARENT).BlendColor(color)).GetValue(); in BlendBorderColor() 3594 rsNode_->SetBorderColor(leftColor, topColo in BlendBorderColor() [all...] |
/foundation/arkui/ace_engine/interfaces/napi/kits/promptaction/ |
H A D | prompt_action.cpp | 884 Color leftColor; in GetBorderColorProps() local 888 if (ParseNapiColor(env, leftApi, leftColor)) { in GetBorderColorProps() 889 colorProperty.leftColor = leftColor; in GetBorderColorProps()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/ |
H A D | security_component_pattern.cpp | 334 renderContext->GetBorderColor()->leftColor.value_or(Color::BLACK).ColorToString().c_str(), filter);
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | render_node_modifier.cpp | 318 .leftColor = Color(left), in SetBorderColor()
|
H A D | node_text_area_modifier.cpp | 1224 SetOptionalBorderColor(borderColors.leftColor, values, valuesSize, offset); in SetAllOptionalBorderColor() 1367 borderColors.leftColor = Color(leftColorInt); in SetTextAreaBorderColor()
|
H A D | node_common_modifier.cpp | 844 borderColors.leftColor = Color(leftColorInt); in SetBorderColor() 1826 * colorAndStyle[offset + 0], option[offset + 1]: borderColors startColor/leftColor(hasValue, value) 1860 SetOptionalBorderColor(borderColors.leftColor, colorAndStyle, colorAndStyleSize, colorAndStyleOffset); in SetBorder() 4579 SetOptionalBorderColor(borderColors.leftColor, values, valuesSize, colorOffset); in SetOutlineColor() 4599 (*values)[NUM_3] = colors.leftColor->GetValue(); in GetOutlineColor() 4728 * colorAndStyle[offset + 0], option[offset + 1]: OutlineColors leftColor(hasValue, value) 4766 SetOptionalBorderColor(borderColors.leftColor, colorAndStyle, colorAndStyleSize, colorAndStyleOffset); in SetOutline() 5086 (*values)[NUM_3] = colors.leftColor->GetValue(); in GetBorderColor()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/ |
H A D | view_abstract_model_ng.h | 331 borderColors.leftColor = colorLeft; 455 borderColors.leftColor = colorLeft;
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_utils.cpp | 1645 std::optional<Color> leftColor; in ParseOuterBorderColor() local 1652 leftColor = left; in ParseOuterBorderColor() 1667 PushOuterBorderColorVector(leftColor, values); in ParseOuterBorderColor()
|
H A D | arkts_native_text_area_bridge.cpp | 1621 Color leftColor; in SetBorderColor() local 1626 if (!ArkTSUtils::ParseJsColorAlpha(vm, leftArg, leftColor)) { in SetBorderColor() 1627 leftColor.SetValue(COLOR_ALPHA_VALUE); in SetBorderColor() 1638 GetArkUINodeModifiers()->getTextAreaModifier()->setTextAreaBorderColor(nativeNode, leftColor.GetValue(), in SetBorderColor()
|
H A D | arkts_native_common_bridge.cpp | 950 std::optional<Color> leftColor; in ParseOuterBorderColor() local 959 leftColor = left; in ParseOuterBorderColor() 989 PushOuterBorderColorVector(leftColor, values); in ParseOuterBorderColor() 1848 Color leftColor; in SetBorderColor() local 1859 if (!ArkTSUtils::ParseJsColorAlpha(vm, leftArg, leftColor)) { in SetBorderColor() 1860 leftColor.SetValue(COLOR_ALPHA_VALUE); in SetBorderColor() 1865 (isRightToLeft && isLocalized) ? leftColor.GetValue() : rightColor.GetValue(), in SetBorderColor() 1867 (isRightToLeft && isLocalized) ? rightColor.GetValue() : leftColor.GetValue()); in SetBorderColor()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/ |
H A D | arkComponent.js | 954 this.value.arkColor.leftColor, this.value.arkColor.rightColor, 1126 let leftColor; 1132 leftColor = this.value.color; 1138 leftColor = this.value.color.left; 1181 leftColor, rightColor, topColor, bottomColor, 3477 arkBorder.arkColor.leftColor = value.color; 3485 arkBorder.arkColor.leftColor = value.color.left; 4956 borderValue.arkColor.leftColor = value.color; 4963 borderValue.arkColor.leftColor = (value.color).left; 6763 let leftColor; [all...] |
/foundation/arkui/ace_engine/test/unittest/core/pattern/calendar_picker/ |
H A D | calendar_picker_test_ng.cpp | 189 EXPECT_EQ(borderColor->leftColor->ColorToString(), theme->GetEntryBorderColor().ColorToString()); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_view_abstract.cpp | 10260 colorProperty.leftColor = commonColor.left; in ParseBorderColorProps()
|