/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
H A D | border_property.h | 195 std::optional<Color> topColor; member 205 topColor = borderColor; in SetColor() 211 return (leftColor == value.leftColor) && (rightColor == value.rightColor) && (topColor == value.topColor) && in operator ==()
|
H A D | border_property.cpp | 145 res->Put("top", topColor.value_or(Color()).ColorToString().c_str()); in ToJsonValue() 162 str.append("topColor: [").append(topColor.has_value() ? topColor->ColorToString() : "NA").append("]"); in ToString()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/ |
H A D | layout_property.cpp | 1542 if (outerBorderColorProperty.topColor.has_value()) { in CheckLocalizedOuterBorderColor() 1543 borderColors.topColor = outerBorderColorProperty.topColor; in CheckLocalizedOuterBorderColor() 1546 borderColors.topColor = outerBorderColorProperty.bottomColor; in CheckLocalizedOuterBorderColor() 1760 if (colorProperty.topColor.has_value()) { in CheckLocalizedEdgeColors() 1761 borderColors.topColor = colorProperty.topColor; in CheckLocalizedEdgeColors()
|
/foundation/arkui/ace_engine/test/unittest/core/layout/ |
H A D | layout_property_test_ng_two.cpp | 309 * @tc.desc: Test CheckLocalizedEdgeColors when endColor,topColor,bottomColor all have values 322 borderColorProperty.topColor = std::make_optional<Color>(Color::RED); in HWTEST_F() 335 EXPECT_EQ(renderContext->GetBorder()->GetBorderColorValue().topColor.value(), Color::RED); in HWTEST_F() 657 * @tc.desc: Test CheckLocalizedOuterBorderColor when endColor,topColor,bottomColor have values 670 borderColorProperty.topColor = std::make_optional<Color>(Color::RED); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | rosen_render_context.cpp | 2405 value.topColor.value_or(Color::BLACK).GetValue(), value.rightColor.value_or(Color::BLACK).GetValue(), in SetBorderColor() 2515 Rosen::RSColor::FromArgbInt(value.topColor.value_or(Color::BLACK).GetValue()), in SetOuterBorderColor() 3568 auto topColor = (Color::TRANSPARENT).GetValue(); in ResetBlendBorderColor() local 3573 topColor = GetBorderColor()->topColor.value_or(Color::TRANSPARENT).GetValue(); in ResetBlendBorderColor() 3577 rsNode_->SetBorderColor(leftColor, topColor, rightColor, bottomColor); in ResetBlendBorderColor() 3585 auto topColor = color.GetValue(); in BlendBorderColor() local 3590 topColor = (GetBorderColor()->topColor.value_or(Color::TRANSPARENT).BlendColor(color)).GetValue(); in BlendBorderColor() 3594 rsNode_->SetBorderColor(leftColor, topColor, rightColo in BlendBorderColor() [all...] |
/foundation/arkui/ace_engine/interfaces/napi/kits/promptaction/ |
H A D | prompt_action.cpp | 886 Color topColor; in GetBorderColorProps() local 894 if (ParseNapiColor(env, topApi, topColor)) { in GetBorderColorProps() 895 colorProperty.topColor = topColor; in GetBorderColorProps()
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | render_node_modifier.cpp | 320 .topColor = Color(top), in SetBorderColor()
|
H A D | node_text_area_modifier.cpp | 1226 SetOptionalBorderColor(borderColors.topColor, values, valuesSize, offset); in SetAllOptionalBorderColor() 1364 borderColors.topColor = Color(topColorInt); in SetTextAreaBorderColor()
|
H A D | node_common_modifier.cpp | 841 borderColors.topColor = Color(topColorInt); in SetBorderColor() 1828 * colorAndStyle[offset + 4], option[offset + 5]: borderColors topColor(hasValue, value) 1863 SetOptionalBorderColor(borderColors.topColor, colorAndStyle, colorAndStyleSize, colorAndStyleOffset); in SetBorder() 4576 SetOptionalBorderColor(borderColors.topColor, values, valuesSize, colorOffset); in SetOutlineColor() 4596 (*values)[NUM_0] = colors.topColor->GetValue(); in GetOutlineColor() 4730 * colorAndStyle[offset + 4], option[offset + 5]: OutlineColors topColor(hasValue, value) 4768 SetOptionalBorderColor(borderColors.topColor, colorAndStyle, colorAndStyleSize, colorAndStyleOffset); in SetOutline() 5083 (*values)[NUM_0] = colors.topColor->GetValue(); in GetBorderColor()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/ |
H A D | view_abstract_model_ng.h | 333 borderColors.topColor = colorTop; 457 borderColors.topColor = colorTop;
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | view_abstract_model_impl.cpp | 428 Color topColor = colorTop.has_value() ? colorTop.value() : BoxComponentHelper::GetBorderColorLeft(decoration); in SetBorderColor() local 434 BoxComponentHelper::SetBorderColor(decoration, leftColor, rightColor, topColor, bottomColor, option); in SetBorderColor()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_utils.cpp | 1647 std::optional<Color> topColor; in ParseOuterBorderColor() local 1660 topColor = top; in ParseOuterBorderColor() 1669 PushOuterBorderColorVector(topColor, values); in ParseOuterBorderColor()
|
H A D | arkts_native_text_area_bridge.cpp | 1623 Color topColor; in SetBorderColor() local 1632 if (!ArkTSUtils::ParseJsColorAlpha(vm, topArg, topColor)) { in SetBorderColor() 1633 topColor.SetValue(COLOR_ALPHA_VALUE); in SetBorderColor() 1639 rightColor.GetValue(), topColor.GetValue(), bottomColor.GetValue()); in SetBorderColor()
|
H A D | arkts_native_common_bridge.cpp | 952 std::optional<Color> topColor; in ParseOuterBorderColor() local 967 topColor = top; in ParseOuterBorderColor() 992 PushOuterBorderColorVector(topColor, values); in ParseOuterBorderColor() 1845 Color topColor; in SetBorderColor() local 1850 if (!ArkTSUtils::ParseJsColorAlpha(vm, topArg, topColor)) { in SetBorderColor() 1851 topColor.SetValue(COLOR_ALPHA_VALUE); in SetBorderColor() 1864 topColor.GetValue(), in SetBorderColor()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/ |
H A D | arkComponent.js | 955 this.value.arkColor.topColor, this.value.arkColor.bottomColor, 1128 let topColor; 1134 topColor = this.value.color; 1140 topColor = this.value.color.top; 1181 leftColor, rightColor, topColor, bottomColor, 3479 arkBorder.arkColor.topColor = value.color; 3487 arkBorder.arkColor.topColor = value.color.top; 4958 borderValue.arkColor.topColor = value.color; 4965 borderValue.arkColor.topColor = (value.color).top; 6765 let topColor; [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_view_abstract.cpp | 4524 borderColors.topColor = colorTop; in GetLocalizedBorderColor() 10254 colorProperty.topColor = commonColor.top; in ParseBorderColorProps()
|