Home
last modified time | relevance | path

Searched refs:textFieldTheme (Results 1 - 25 of 34) sorted by relevance

12

/foundation/arkui/ace_engine/test/unittest/core/pattern/text_input/
H A Dtext_input_base.cpp25 auto textFieldTheme = AceType::MakeRefPtr<TextFieldTheme>(); in SetUpTestSuite() local
26 textFieldTheme->iconSize_ = Dimension(ICON_SIZE, DimensionUnit::VP); in SetUpTestSuite()
27 textFieldTheme->iconHotZoneSize_ = Dimension(ICON_HOT_ZONE_SIZE, DimensionUnit::VP); in SetUpTestSuite()
28 textFieldTheme->fontSize_ = Dimension(FONT_SIZE, DimensionUnit::FP); in SetUpTestSuite()
29 textFieldTheme->fontWeight_ = FontWeight::W400; in SetUpTestSuite()
30 textFieldTheme->textColor_ = Color::FromString("#ff182431"); in SetUpTestSuite()
32 .WillRepeatedly([textFieldTheme = textFieldTheme](ThemeType type) -> RefPtr<Theme> { in SetUpTestSuite()
36 return textFieldTheme; in SetUpTestSuite()
H A Dtext_input_wordbreak_test.cpp135 auto textFieldTheme = AceType::MakeRefPtr<TextFieldTheme>(); in SetUpTestSuite() local
136 textFieldTheme->iconSize_ = Dimension(ICON_SIZE, DimensionUnit::VP); in SetUpTestSuite()
137 textFieldTheme->iconHotZoneSize_ = Dimension(ICON_HOT_ZONE_SIZE, DimensionUnit::VP); in SetUpTestSuite()
138 textFieldTheme->fontSize_ = Dimension(FONT_SIZE, DimensionUnit::FP); in SetUpTestSuite()
139 textFieldTheme->fontWeight_ = FontWeight::W400; in SetUpTestSuite()
140 textFieldTheme->textColor_ = Color::FromString("#ff182431"); in SetUpTestSuite()
142 .WillRepeatedly([textFieldTheme = textFieldTheme](ThemeType type) -> RefPtr<Theme> { in SetUpTestSuite()
146 return textFieldTheme; in SetUpTestSuite()
H A Dtext_input_area_model_test.cpp141 auto textFieldTheme = AceType::MakeRefPtr<TextFieldTheme>(); in SetUpTestSuite() local
142 textFieldTheme->iconSize_ = Dimension(ICON_SIZE, DimensionUnit::VP); in SetUpTestSuite()
143 textFieldTheme->iconHotZoneSize_ = Dimension(ICON_HOT_ZONE_SIZE, DimensionUnit::VP); in SetUpTestSuite()
144 textFieldTheme->fontSize_ = Dimension(FONT_SIZE, DimensionUnit::FP); in SetUpTestSuite()
145 textFieldTheme->fontWeight_ = FontWeight::W400; in SetUpTestSuite()
146 textFieldTheme->textColor_ = Color::FromString("#ff182431"); in SetUpTestSuite()
148 .WillRepeatedly([textFieldTheme = textFieldTheme](ThemeType type) -> RefPtr<Theme> { in SetUpTestSuite()
152 return textFieldTheme; in SetUpTestSuite()
H A Dtext_area_menu_test.cpp130 auto textFieldTheme = AceType::MakeRefPtr<TextFieldTheme>(); in SetUpTestSuite() local
131 textFieldTheme->iconSize_ = Dimension(ICON_SIZE, DimensionUnit::VP); in SetUpTestSuite()
132 textFieldTheme->iconHotZoneSize_ = Dimension(ICON_HOT_ZONE_SIZE, DimensionUnit::VP); in SetUpTestSuite()
133 textFieldTheme->fontSize_ = Dimension(FONT_SIZE, DimensionUnit::FP); in SetUpTestSuite()
134 textFieldTheme->fontWeight_ = FontWeight::W400; in SetUpTestSuite()
135 textFieldTheme->textColor_ = Color::FromString("#ff182431"); in SetUpTestSuite()
137 .WillRepeatedly([textFieldTheme = textFieldTheme](ThemeType type) -> RefPtr<Theme> { in SetUpTestSuite()
141 return textFieldTheme; in SetUpTestSuite()
H A Dtext_field_algorithm_test.cpp173 auto textFieldTheme = pipeline->GetTheme<TextFieldTheme>(); in HWTEST_F() local
182 textInputLayoutAlgorithm->UpdateTextStyle(frameNode_, layoutProperty_, textFieldTheme, textStyle, true); in HWTEST_F()
194 auto textFieldTheme = pipeline->GetTheme<TextFieldTheme>(); in HWTEST_F() local
205 textInputLayoutAlgorithm->UpdateTextStyle(frameNode_, layoutProperty_, textFieldTheme, textStyle, false); in HWTEST_F()
217 auto textFieldTheme = pipeline->GetTheme<TextFieldTheme>(); in HWTEST_F() local
226 frameNode_, layoutProperty_, textFieldTheme, textStyle, true); in HWTEST_F()
H A Dtext_input_modify_test.cpp141 auto textFieldTheme = AceType::MakeRefPtr<TextFieldTheme>(); in SetUpTestSuite() local
142 textFieldTheme->iconSize_ = Dimension(ICON_SIZE, DimensionUnit::VP); in SetUpTestSuite()
143 textFieldTheme->iconHotZoneSize_ = Dimension(ICON_HOT_ZONE_SIZE, DimensionUnit::VP); in SetUpTestSuite()
144 textFieldTheme->fontSize_ = Dimension(FONT_SIZE, DimensionUnit::FP); in SetUpTestSuite()
145 textFieldTheme->fontWeight_ = FontWeight::W400; in SetUpTestSuite()
146 textFieldTheme->textColor_ = Color::FromString("#ff182431"); in SetUpTestSuite()
148 .WillRepeatedly([textFieldTheme = textFieldTheme](ThemeType type) -> RefPtr<Theme> { in SetUpTestSuite()
152 return textFieldTheme; in SetUpTestSuite()
H A Dtext_area_test.cpp139 auto textFieldTheme = AceType::MakeRefPtr<TextFieldTheme>(); in SetUpTestSuite() local
140 textFieldTheme->iconSize_ = Dimension(ICON_SIZE, DimensionUnit::VP); in SetUpTestSuite()
141 textFieldTheme->iconHotZoneSize_ = Dimension(ICON_HOT_ZONE_SIZE, DimensionUnit::VP); in SetUpTestSuite()
142 textFieldTheme->fontSize_ = Dimension(FONT_SIZE, DimensionUnit::FP); in SetUpTestSuite()
143 textFieldTheme->fontWeight_ = FontWeight::W400; in SetUpTestSuite()
144 textFieldTheme->textColor_ = Color::FromString("#ff182431"); in SetUpTestSuite()
146 .WillRepeatedly([textFieldTheme = textFieldTheme](ThemeType type) -> RefPtr<Theme> { in SetUpTestSuite()
150 return textFieldTheme; in SetUpTestSuite()
H A Dtext_area_decoration_test.cpp119 auto textFieldTheme = AceType::MakeRefPtr<TextFieldTheme>(); in SetUpTestSuite() local
120 textFieldTheme->iconSize_ = Dimension(ICON_SIZE, DimensionUnit::VP); in SetUpTestSuite()
121 textFieldTheme->iconHotZoneSize_ = Dimension(ICON_HOT_ZONE_SIZE, DimensionUnit::VP); in SetUpTestSuite()
122 textFieldTheme->fontSize_ = Dimension(FONT_SIZE, DimensionUnit::FP); in SetUpTestSuite()
123 textFieldTheme->fontWeight_ = FontWeight::W400; in SetUpTestSuite()
124 textFieldTheme->textColor_ = Color::FromString("#ff182431"); in SetUpTestSuite()
126 .WillRepeatedly([textFieldTheme = textFieldTheme](ThemeType type) -> RefPtr<Theme> { in SetUpTestSuite()
130 return textFieldTheme; in SetUpTestSuite()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dtext_field_paint_property.cpp29 auto textFieldTheme = pipeline->GetTheme<TextFieldTheme>(); in ToJsonValue() local
30 CHECK_NULL_VOID(textFieldTheme); in ToJsonValue()
34 jsonValue->Put("color", propCursorColor_.value_or(textFieldTheme->GetCursorColor()).ColorToString().c_str()); in ToJsonValue()
35 jsonValue->Put("width", propCursorWidth_.value_or(textFieldTheme->GetCursorWidth()).ToString().c_str()); in ToJsonValue()
38 propSelectedBackgroundColor_.value_or(textFieldTheme->GetSelectedColor()).ColorToString().c_str(), filter); in ToJsonValue()
H A Dtext_input_response_area.cpp356 auto textFieldTheme = themeManager->GetTheme<TextFieldTheme>(); in GetIconSize() local
357 CHECK_NULL_RETURN(textFieldTheme, 0.0f); in GetIconSize()
358 return static_cast<float>(textFieldTheme->GetIconSize().ConvertToPx()); in GetIconSize()
370 auto textFieldTheme = themeManager->GetTheme<TextFieldTheme>(); in GetIconRightOffset() local
371 CHECK_NULL_RETURN(textFieldTheme, 0.0f); in GetIconRightOffset()
372 auto themePadding = textFieldTheme->GetPadding(); in GetIconRightOffset()
390 auto textFieldTheme = themeManager->GetTheme<TextFieldTheme>(); in LoadImageSourceInfo() local
391 CHECK_NULL_VOID(textFieldTheme); in LoadImageSourceInfo()
393 showIcon_->SetFillColor(textFieldTheme->GetTextColor()); in LoadImageSourceInfo()
396 hideIcon_->SetFillColor(textFieldTheme in LoadImageSourceInfo()
465 auto textFieldTheme = themeManager->GetTheme<TextFieldTheme>(); UpdateSymbolSource() local
672 auto textFieldTheme = themeManager->GetTheme<TextFieldTheme>(); SetCancelSymbolIconSize() local
708 auto textFieldTheme = themeManager->GetTheme<TextFieldTheme>(); UpdateSymbolSource() local
788 auto textFieldTheme = themeManager->GetTheme<TextFieldTheme>(); UpdateCleanNode() local
[all...]
H A Dtext_field_layout_algorithm.cpp54 auto textFieldTheme = pipeline->GetTheme<TextFieldTheme>(); in ConstructTextStyles() local
55 CHECK_NULL_VOID(textFieldTheme); in ConstructTextStyles()
64 UpdateTextStyle(frameNode, textFieldLayoutProperty, textFieldTheme, textStyle, pattern->IsDisabled()); in ConstructTextStyles()
69 frameNode, textFieldLayoutProperty, textFieldTheme, textStyle, pattern->IsDisabled()); in ConstructTextStyles()
152 auto textFieldTheme = pattern->GetTheme(); in InlineMeasureContent() local
153 CHECK_NULL_RETURN(textFieldTheme, std::nullopt); in InlineMeasureContent()
156 auto safeBoundary = textFieldTheme->GetInlineBorderWidth().ConvertToPx() * 2; in InlineMeasureContent()
914 auto textFieldTheme = pattern->GetTheme(); in GetSuitableSize() local
915 CHECK_NULL_VOID(textFieldTheme); in GetSuitableSize()
916 auto safeBoundary = textFieldTheme in GetSuitableSize()
926 auto textFieldTheme = pipeline->GetTheme<TextFieldTheme>(); GetTextFieldDefaultHeight() local
1143 auto textFieldTheme = pattern->GetTheme(); BuildInlineFocusLayoutConstraint() local
[all...]
H A Dtext_field_model_ng.cpp81 auto textFieldTheme = themeManager->GetTheme<TextFieldTheme>(); in CreateNode() local
82 CHECK_NULL_VOID(textFieldTheme); in CreateNode()
83 textfieldPaintProperty->UpdatePressBgColor(textFieldTheme->GetPressColor()); in CreateNode()
84 textfieldPaintProperty->UpdateHoverBgColor(textFieldTheme->GetHoverColor()); in CreateNode()
85 SetCaretColor(textFieldTheme->GetCursorColor()); in CreateNode()
87 caretStyle.caretWidth = textFieldTheme->GetCursorWidth(); in CreateNode()
205 auto textFieldTheme = themeManager->GetTheme<TextFieldTheme>(); in ProcessDefaultStyleAndBehaviors() local
206 CHECK_NULL_VOID(textFieldTheme); in ProcessDefaultStyleAndBehaviors()
211 textfieldPaintProperty->UpdatePressBgColor(textFieldTheme->GetPressColor()); in ProcessDefaultStyleAndBehaviors()
212 textfieldPaintProperty->UpdateHoverBgColor(textFieldTheme in ProcessDefaultStyleAndBehaviors()
1645 auto textFieldTheme = themeManager->GetTheme<TextFieldTheme>(); ResetTextInputPadding() local
[all...]
H A Dtext_field_pattern.cpp405 auto textFieldTheme = GetTheme(); in GetTextOrPlaceHolderFontSize() local
406 CHECK_NULL_RETURN(textFieldTheme, 0.0f); in GetTextOrPlaceHolderFontSize()
412 return textFieldTheme ? static_cast<float>(textFieldTheme->GetFontSize().ConvertToPx()) in GetTextOrPlaceHolderFontSize()
1008 auto textFieldTheme = GetTheme(); in ProcessFocusStyle() local
1009 CHECK_NULL_VOID(textFieldTheme); in ProcessFocusStyle()
1010 underlineColor_ = userUnderlineColor_.typing.value_or(textFieldTheme->GetUnderlineTypingColor()); in ProcessFocusStyle()
1260 auto textFieldTheme = GetTheme(); in ProcBorderAndUnderlineInBlurEvent() local
1261 CHECK_NULL_VOID(textFieldTheme); in ProcBorderAndUnderlineInBlurEvent()
1265 underlineColor_ = userUnderlineColor_.normal.value_or(textFieldTheme in ProcBorderAndUnderlineInBlurEvent()
1742 auto textFieldTheme = GetTheme(); FireEventHubOnChange() local
2938 auto textFieldTheme = GetTheme(); OnModifyDone() local
3065 auto textFieldTheme = GetTheme(); CalculateDefaultCursor() local
3186 auto textFieldTheme = GetTheme(); ProcessInnerPadding() local
3521 auto textFieldTheme = GetTheme(); OnHover() local
4406 auto textFieldTheme = GetTheme(); PreferredTextHeight() local
6244 auto textFieldTheme = GetTheme(); OnBackPressed() local
7608 auto textFieldTheme = themeManager->GetTheme<TextFieldTheme>(); OnBackPressed() local
8602 auto textFieldTheme = GetTheme(); OnBackPressed() local
9022 auto textFieldTheme = GetTheme(); OnBackPressed() local
9035 auto textFieldTheme = GetTheme(); OnBackPressed() local
9048 auto textFieldTheme = GetTheme(); OnBackPressed() local
9061 auto textFieldTheme = GetTheme(); OnBackPressed() local
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/search/
H A Dsearch_base.cpp24 auto textFieldTheme = AceType::MakeRefPtr<TextFieldTheme>(); in SetUpTestSuite() local
30 textFieldTheme->bgColor_ = Color::RED; in SetUpTestSuite()
39 return textFieldTheme; in SetUpTestSuite()
H A Dsearch_decoration_test_ng.cpp91 auto textFieldTheme = AceType::MakeRefPtr<TextFieldTheme>(); in SetUpTestSuite() local
97 textFieldTheme->bgColor_ = Color::RED; in SetUpTestSuite()
106 return textFieldTheme; in SetUpTestSuite()
H A Dsearch_test_update_ng.cpp99 auto textFieldTheme = AceType::MakeRefPtr<TextFieldTheme>(); in SetUpTestSuite() local
105 textFieldTheme->bgColor_ = Color::RED; in SetUpTestSuite()
114 return textFieldTheme; in SetUpTestSuite()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/search/
H A Dsearch_text_field.cpp69 auto textFieldTheme = GetTheme(); in ApplyNormalTheme() local
70 CHECK_NULL_VOID(textFieldTheme); in ApplyNormalTheme()
72 renderContext->UpdateBackgroundColor(textFieldTheme->GetBgColor()); in ApplyNormalTheme()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_overlay/
H A Dmagnifier_controller.cpp258 auto textFieldTheme = pipeline->GetTheme<TextFieldTheme>(); in InitMagnifierParams() local
259 CHECK_NULL_VOID(textFieldTheme); in InitMagnifierParams()
260 uint32_t gradientMaskColor1 = textFieldTheme->GetGlassMaskPrimaryColor().GetValue(); in InitMagnifierParams()
261 uint32_t gradientMaskColor2 = textFieldTheme->GetGlassMaskSecondaryColor().GetValue(); in InitMagnifierParams()
263 Color outlineColor1 = textFieldTheme->GetGlassOutlinePrimaryColor(); in InitMagnifierParams()
264 Color outlineColor2 = textFieldTheme->GetGlassOutlineSecondaryColor(); in InitMagnifierParams()
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_search.cpp49 auto textFieldTheme = GetTheme<TextFieldTheme>(); in InitializeStyle() local
51 if (!textFieldTheme || !searchTheme) { in InitializeStyle()
55 LOGW("textFieldTheme or searchTheme is null"); in InitializeStyle()
59 DOMTextFieldUtil::InitDefaultValue(boxComponent_, textFieldComponent_, textFieldTheme); in InitializeStyle()
93 searchChild_->SetHoverColor(textFieldTheme->GetHoverColor()); in InitializeStyle()
94 searchChild_->SetPressColor(textFieldTheme->GetPressColor()); in InitializeStyle()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_input/
H A Dtext_input_layout_algorithm.cpp100 auto textFieldTheme = pipeline->GetTheme<TextFieldTheme>(); in Measure() local
101 CHECK_NULL_VOID(textFieldTheme); in Measure()
265 auto textFieldTheme = pipeline->GetTheme<TextFieldTheme>(); in GetDefaultHeightByType() local
266 CHECK_NULL_RETURN(textFieldTheme, 0.0f); in GetDefaultHeightByType()
267 return static_cast<float>(textFieldTheme->GetContentHeight().ConvertToPx()); in GetDefaultHeightByType()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dsearch_model_impl.cpp44 auto textFieldTheme = JSViewAbstract::GetTheme<TextFieldTheme>(); in Create() local
46 InitializeComponent(searchComponent, textFieldComponent, searchTheme, textFieldTheme); in Create()
387 const OHOS::Ace::RefPtr<OHOS::Ace::TextFieldTheme>& textFieldTheme) in InitializeComponent()
392 InitializeDefaultValue(boxComponent, textFieldComponent, textFieldTheme); in InitializeComponent()
425 searchComponent->SetHoverColor(textFieldTheme->GetHoverColor()); in InitializeComponent()
426 searchComponent->SetPressColor(textFieldTheme->GetPressColor()); in InitializeComponent()
384 InitializeComponent(OHOS::Ace::RefPtr<OHOS::Ace::SearchComponent>& searchComponent, OHOS::Ace::RefPtr<OHOS::Ace::TextFieldComponent>& textFieldComponent, const OHOS::Ace::RefPtr<OHOS::Ace::SearchTheme>& searchTheme, const OHOS::Ace::RefPtr<OHOS::Ace::TextFieldTheme>& textFieldTheme) InitializeComponent() argument
H A Dtext_field_model_impl.cpp517 const OHOS::Ace::RefPtr<OHOS::Ace::TextFieldTheme>& textFieldTheme) in UpdateDecoration()
519 if (!textFieldTheme) { in UpdateDecoration()
520 LOGI("UpdateDecoration: textFieldTheme is null."); in UpdateDecoration()
535 border.SetBorderRadius(textFieldTheme->GetBorderRadius()); in UpdateDecoration()
543 border.SetBorderRadius(textFieldTheme->GetBorderRadius()); in UpdateDecoration()
548 boxDecoration->SetBorderRadius(textFieldTheme->GetBorderRadius()); in UpdateDecoration()
515 UpdateDecoration(const RefPtr<BoxComponent>& boxComponent, const RefPtr<TextFieldComponent>& component, const Border& boxBorder, const OHOS::Ace::RefPtr<OHOS::Ace::TextFieldTheme>& textFieldTheme) UpdateDecoration() argument
/foundation/arkui/ace_engine/frameworks/core/components/declaration/search/
H A Dsearch_declaration.cpp47 auto textFieldTheme = GetTheme<TextFieldTheme>(); in InitializeStyle() local
49 if (!textFieldTheme || !searchTheme) { in InitializeStyle()
53 LOGE("textFieldTheme or searchTheme is null"); in InitializeStyle()
98 SetHoverColor(textFieldTheme->GetHoverColor()); in InitializeStyle()
99 SetPressColor(textFieldTheme->GetPressColor()); in InitializeStyle()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_search.cpp547 auto textFieldTheme = GetTheme<TextFieldTheme>(); in SetCaret() local
548 CHECK_NULL_VOID(textFieldTheme); in SetCaret()
551 CalcDimension caretWidth = textFieldTheme->GetCursorWidth(); in SetCaret()
554 caretWidth = textFieldTheme->GetCursorWidth(); in SetCaret()
562 caretColor = textFieldTheme->GetCursorColor(); in SetCaret()
849 auto textFieldTheme = GetTheme<TextFieldTheme>(); in ParseBorderRadius() local
850 CHECK_NULL_VOID(textFieldTheme); in ParseBorderRadius()
851 auto borderRadiusTheme = textFieldTheme->GetBorderRadius(); in ParseBorderRadius()
877 auto textFieldTheme = GetTheme<TextFieldTheme>(); in JsBorderRadius() local
878 CHECK_NULL_VOID(textFieldTheme); in JsBorderRadius()
[all...]
H A Djs_textfield.cpp950 auto textFieldTheme = GetTheme<TextFieldTheme>(); in ParseBorderRadius() local
951 CHECK_NULL_VOID(textFieldTheme); in ParseBorderRadius()
952 auto borderRadiusTheme = textFieldTheme->GetBorderRadius(); in ParseBorderRadius()
978 auto textFieldTheme = GetTheme<TextFieldTheme>(); in JsBorderRadius() local
979 CHECK_NULL_VOID(textFieldTheme); in JsBorderRadius()
980 auto borderRadiusTheme = textFieldTheme->GetBorderRadius(); in JsBorderRadius()
1288 const OHOS::Ace::RefPtr<OHOS::Ace::TextFieldTheme>& textFieldTheme) in UpdateDecoration()
1290 if (!textFieldTheme) { in UpdateDecoration()
1305 border.SetBorderRadius(textFieldTheme->GetBorderRadius()); in UpdateDecoration()
1313 border.SetBorderRadius(textFieldTheme in UpdateDecoration()
1286 UpdateDecoration(const RefPtr<BoxComponent>& boxComponent, const RefPtr<TextFieldComponent>& component, const Border& boxBorder, const OHOS::Ace::RefPtr<OHOS::Ace::TextFieldTheme>& textFieldTheme) UpdateDecoration() argument
[all...]

Completed in 37 milliseconds

12