Home
last modified time | relevance | path

Searched refs:textTheme (Results 1 - 25 of 28) sorted by relevance

12

/foundation/arkui/ace_engine/test/unittest/core/pattern/text_clock/
H A Dtext_clock_pattern_test_ng.cpp81 auto textTheme = TextTheme::Builder().Build(themeConstants); in SetUpTestSuite() local
82 EXPECT_CALL(*themeManager, GetTheme(TextTheme::TypeId())).WillRepeatedly(Return(textTheme)); in SetUpTestSuite()
83 textTheme->selectedColor_ = Color::FromString("#007DFF"); in SetUpTestSuite()
84 textTheme->dragBackgroundColor_ = Color::WHITE; in SetUpTestSuite()
85 textTheme->draggable_ = false; in SetUpTestSuite()
86 textTheme->linearSplitChildMinSize_ = 20.0f; in SetUpTestSuite()
87 textTheme->isShowHandle_ = false; in SetUpTestSuite()
92 textTheme->textStyle_ = textStyle; in SetUpTestSuite()
162 auto textTheme = themeManager->GetTheme<TextTheme>(); in HWTEST_F() local
163 ASSERT_NE(textTheme, nullpt in HWTEST_F()
203 auto textTheme = themeManager->GetTheme<TextTheme>(); HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dselect_modifier.cpp130 auto textTheme = GetTheme<TextTheme>(); in SetFont() local
131 CHECK_NULL_VOID(textTheme); in SetFont()
145 std::vector<std::string> fontFamilies = textTheme->GetTextStyle().GetFontFamilies(); in SetFont()
168 auto textTheme = GetTheme<TextTheme>(); in SetOptionFont() local
169 CHECK_NULL_VOID(textTheme); in SetOptionFont()
177 FontWeight weight = textTheme->GetTextStyle().GetFontWeight(); in SetOptionFont()
183 std::vector<std::string> fontFamilies = textTheme->GetTextStyle().GetFontFamilies(); in SetOptionFont()
206 auto textTheme = GetTheme<TextTheme>(); in SetSelectedOptionFont() local
207 CHECK_NULL_VOID(textTheme); in SetSelectedOptionFont()
215 FontWeight weight = textTheme in SetSelectedOptionFont()
322 auto textTheme = GetTheme<TextTheme>(); ResetFont() local
339 auto textTheme = GetTheme<TextTheme>(); ResetOptionFont() local
355 auto textTheme = GetTheme<TextTheme>(); ResetSelectedOptionFont() local
[all...]
H A Dprogress_modifier.cpp313 auto textTheme = themeManager->GetTheme<TextTheme>(); in SetCapsuleStyleOptions() local
314 CHECK_NULL_VOID(textTheme); in SetCapsuleStyleOptions()
323 ProgressModelNG::SetFontWeight(node, textTheme->GetTextStyle().GetFontWeight()); in SetCapsuleStyleOptions()
324 ProgressModelNG::SetFontFamily(node, textTheme->GetTextStyle().GetFontFamilies()); in SetCapsuleStyleOptions()
325 ProgressModelNG::SetItalicFontStyle(node, textTheme->GetTextStyle().GetFontStyle()); in SetCapsuleStyleOptions()
H A Drich_editor_modifier.cpp517 auto textTheme = pipeline->GetTheme<TextTheme>(); in ResetRichEditorPlaceholder() local
518 CHECK_NULL_VOID(textTheme); in ResetRichEditorPlaceholder()
519 TextStyle textStyle = textTheme ? textTheme->GetTextStyle() : TextStyle(); in ResetRichEditorPlaceholder()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor_drag/
H A Drich_editor_drag_paint_method.cpp63 auto textTheme = pipleline->GetTheme<TextTheme>(); in UpdateContentModifier() local
64 CHECK_NULL_VOID(textTheme); in UpdateContentModifier()
65 auto selectorColor = info_.selectedBackgroundColor.value_or(textTheme->GetSelectedColor()); in UpdateContentModifier()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_texttimer.cpp126 RefPtr<TextTheme> textTheme = GetTheme<TextTheme>(); in SetFontDefault() local
127 TextTimerModel::GetInstance()->SetFontSize(textTheme->GetTextStyle().GetFontSize()); in SetFontDefault()
128 TextTimerModel::GetInstance()->SetTextColor(textTheme->GetTextStyle().GetTextColor()); in SetFontDefault()
129 TextTimerModel::GetInstance()->SetFontFamily(textTheme->GetTextStyle().GetFontFamilies()); in SetFontDefault()
130 TextTimerModel::GetInstance()->SetFontWeight(textTheme->GetTextStyle().GetFontWeight()); in SetFontDefault()
131 TextTimerModel::GetInstance()->SetItalicFontStyle(textTheme->GetTextStyle().GetFontStyle()); in SetFontDefault()
228 RefPtr<TextTheme> textTheme = GetTheme<TextTheme>(); in SetFontWeight() local
229 CHECK_NULL_VOID(textTheme); in SetFontWeight()
232 TextTimerModel::GetInstance()->SetFontWeight(textTheme->GetTextStyle().GetFontWeight()); in SetFontWeight()
245 TextTimerModel::GetInstance()->SetFontWeight(textTheme in SetFontWeight()
[all...]
H A Djs_progress.cpp394 RefPtr<TextTheme> textTheme = GetTheme<TextTheme>(); in JsSetFontStyle() local
414 RefPtr<TextTheme> textTheme = GetTheme<TextTheme>(); in JsSetFontDefault() local
417 ProgressModel::GetInstance()->SetFontFamily(textTheme->GetTextStyle().GetFontFamilies()); in JsSetFontDefault()
418 ProgressModel::GetInstance()->SetFontWeight(textTheme->GetTextStyle().GetFontWeight()); in JsSetFontDefault()
419 ProgressModel::GetInstance()->SetItalicFontStyle(textTheme->GetTextStyle().GetFontStyle()); in JsSetFontDefault()
426 RefPtr<TextTheme> textTheme = GetTheme<TextTheme>(); in JsSetFont() local
427 CHECK_NULL_VOID(textTheme); in JsSetFont()
448 ProgressModel::GetInstance()->SetFontWeight(textTheme->GetTextStyle().GetFontWeight()); in JsSetFont()
456 ProgressModel::GetInstance()->SetFontFamily(textTheme->GetTextStyle().GetFontFamilies()); in JsSetFont()
464 ProgressModel::GetInstance()->SetItalicFontStyle(textTheme in JsSetFont()
[all...]
H A Djs_text_clock.cpp148 RefPtr<TextTheme> textTheme = GetTheme<TextTheme>(); in SetFontDefault() local
149 TextClockModel::GetInstance()->InitFontDefault(textTheme->GetTextStyle()); in SetFontDefault()
199 RefPtr<TextTheme> textTheme = GetTheme<TextTheme>(); in SetFontWeight() local
200 CHECK_NULL_VOID(textTheme); in SetFontWeight()
203 TextClockModel::GetInstance()->SetFontWeight(textTheme->GetTextStyle().GetFontWeight()); in SetFontWeight()
216 TextClockModel::GetInstance()->SetFontWeight(textTheme->GetTextStyle().GetFontWeight()); in SetFontWeight()
H A Djs_select.cpp344 auto textTheme = pipeline->GetTheme<TextTheme>(); in ResetFontFamily() local
345 CHECK_NULL_VOID(textTheme); in ResetFontFamily()
347 SelectModel::GetInstance()->SetFontFamily(textTheme->GetTextStyle().GetFontFamilies()); in ResetFontFamily()
349 SelectModel::GetInstance()->SetOptionFontFamily(textTheme->GetTextStyle().GetFontFamilies()); in ResetFontFamily()
351 SelectModel::GetInstance()->SetSelectedOptionFontFamily(textTheme->GetTextStyle().GetFontFamilies()); in ResetFontFamily()
359 auto textTheme = pipeline->GetTheme<TextTheme>(); in ResetFontStyle() local
360 CHECK_NULL_VOID(textTheme); in ResetFontStyle()
362 SelectModel::GetInstance()->SetItalicFontStyle(textTheme->GetTextStyle().GetFontStyle()); in ResetFontStyle()
364 SelectModel::GetInstance()->SetOptionItalicFontStyle(textTheme->GetTextStyle().GetFontStyle()); in ResetFontStyle()
366 SelectModel::GetInstance()->SetSelectedOptionItalicFontStyle(textTheme in ResetFontStyle()
[all...]
H A Djs_button.cpp162 auto textTheme = pipelineContext->GetTheme<TextTheme>(); in SetFontFamily() local
163 CHECK_NULL_VOID(textTheme); in SetFontFamily()
164 fontFamilies = textTheme->GetTextStyle().GetFontFamilies(); in SetFontFamily()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dtext_styles.cpp32 const std::unique_ptr<TextLineStyle>& textLineStyle, const RefPtr<TextTheme>& textTheme) in CreateTextStyleUsingTheme()
34 TextStyle textStyle = textTheme ? textTheme->GetTextStyle() : TextStyle(); in CreateTextStyleUsingTheme()
84 const RefPtr<TextTheme>& textTheme) in CreateTextStyleUsingThemeWithText()
86 TextStyle textStyle = CreateTextStyleUsingTheme(fontStyle, textLineStyle, textTheme); in CreateTextStyleUsingThemeWithText()
31 CreateTextStyleUsingTheme(const std::unique_ptr<FontStyle>& fontStyle, const std::unique_ptr<TextLineStyle>& textLineStyle, const RefPtr<TextTheme>& textTheme) CreateTextStyleUsingTheme() argument
82 CreateTextStyleUsingThemeWithText(const RefPtr<FrameNode> frameNode, const std::unique_ptr<FontStyle>& fontStyle, const std::unique_ptr<TextLineStyle>& textLineStyle, const RefPtr<TextTheme>& textTheme) CreateTextStyleUsingThemeWithText() argument
H A Dtext_styles.h231 const std::unique_ptr<TextLineStyle>& textLineStyle, const RefPtr<TextTheme>& textTheme);
235 const RefPtr<TextTheme>& textTheme);
H A Dspan_model_ng.cpp493 auto textTheme = pipelineContext->GetTheme<TextTheme>(); in GetDefaultTextStyle() local
494 CHECK_NULL_RETURN(textTheme, textStyle); in GetDefaultTextStyle()
495 return textTheme->GetTextStyle(); in GetDefaultTextStyle()
/foundation/arkui/ace_engine/test/unittest/core/pattern/text/
H A Dtext_testsix_ng.cpp120 RefPtr<TextTheme> textTheme; in HWTEST_F() local
122 auto textStyle = CreateTextStyleUsingThemeWithText(frameNode, fontStyle, textLineStyle, textTheme); in HWTEST_F()
126 textStyle = CreateTextStyleUsingThemeWithText(frameNode, fontStyle, textLineStyle, textTheme); in HWTEST_F()
130 textStyle = CreateTextStyleUsingThemeWithText(frameNode, fontStyle, textLineStyle, textTheme); in HWTEST_F()
H A Dtext_testtwo_ng.cpp2293 * @tc.steps: step3. update ClipEdge and create textTheme. in HWTEST_F()
2302 auto textTheme = AceType::MakeRefPtr<TextTheme>(); in HWTEST_F() local
2303 EXPECT_CALL(*themeManager, GetTheme(_)).WillRepeatedly(Return(textTheme)); in HWTEST_F()
2304 ASSERT_NE(textTheme, nullptr); in HWTEST_F()
H A Dtext_testfive_ng.cpp2856 RefPtr<TextTheme> textTheme; in HWTEST_F() local
2858 auto textStyle = CreateTextStyleUsingThemeWithText(frameNode, fontStyle, textLineStyle, textTheme); in HWTEST_F()
2862 textStyle = CreateTextStyleUsingThemeWithText(frameNode, fontStyle, textLineStyle, textTheme); in HWTEST_F()
2866 textStyle = CreateTextStyleUsingThemeWithText(frameNode, fontStyle, textLineStyle, textTheme); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_clock/
H A Dtext_clock_model_ng.cpp149 auto textTheme = pipeline->GetTheme<TextTheme>(); in CreateFrameNode() local
150 if (textTheme) { in CreateFrameNode()
151 InitFontDefault(AceType::RawPtr(textClockNode), textTheme->GetTextStyle()); in CreateFrameNode()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_overlay/
H A Dservice_collaboration_menu_ace_helper.cpp69 auto textTheme = textPipeline->GetTheme<SelectTheme>(); in CreateText() local
70 CHECK_NULL_VOID(textTheme); in CreateText()
77 textProperty->UpdateFontSize(textTheme->GetMenuFontSize()); in CreateText()
98 auto textTheme = textPipeline->GetTheme<SelectTheme>(); in CreateHeaderText() local
99 CHECK_NULL_VOID(textTheme); in CreateHeaderText()
108 textProperty->UpdateFontSize(textTheme->GetMenuFontSize()); in CreateHeaderText()
482 auto textTheme = textPipeline->GetTheme<SelectTheme>(); in CreateText() local
483 CHECK_NULL_VOID(textTheme); in CreateText()
492 textProperty->UpdateTextColor(textTheme->GetMenuFontColor()); in CreateText()
497 textRenderContext->UpdateForegroundColor(textTheme in CreateText()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_drag/
H A Dtext_drag_pattern.cpp325 auto textTheme = pipeline->GetTheme<TextTheme>(); in GetDragBackgroundColor() local
326 CHECK_NULL_RETURN(textTheme, Color(TEXT_DRAG_COLOR_BG)); in GetDragBackgroundColor()
327 return textTheme->GetDragBackgroundColor(); in GetDragBackgroundColor()
/foundation/arkui/ace_engine/test/unittest/core/pattern/text_drag/
H A Dtext_drag_test_ng.cpp56 auto textTheme = AceType::MakeRefPtr<TextTheme>(); in SetUpTestSuite() local
57 EXPECT_CALL(*themeManager, GetTheme(_)).WillRepeatedly(Return(textTheme)); in SetUpTestSuite()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select/
H A Dselect_pattern.cpp785 auto textTheme = pipeline->GetTheme<TextTheme>(); in ResetOptionProps() local
786 CHECK_NULL_VOID(selectTheme && textTheme); in ResetOptionProps()
794 pattern->SetItalicFontStyle(optionFont_.FontStyle.value_or(textTheme->GetTextStyle().GetFontStyle())); in ResetOptionProps()
795 pattern->SetFontWeight(optionFont_.FontWeight.value_or(textTheme->GetTextStyle().GetFontWeight())); in ResetOptionProps()
796 pattern->SetFontFamily(optionFont_.FontFamily.value_or(textTheme->GetTextStyle().GetFontFamilies())); in ResetOptionProps()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dtext_input_response_area.cpp693 auto textTheme = themeManager->GetTheme<TextTheme>(); in GetSymbolDefaultSize() local
694 CHECK_NULL_RETURN(textTheme, CalcDimension()); in GetSymbolDefaultSize()
695 return textTheme->GetTextStyle().GetFontSize(); in GetSymbolDefaultSize()
/foundation/arkui/ace_engine/frameworks/core/components/custom_paint/
H A Drosen_render_custom_paint.cpp623 auto textTheme = pipelineContext->GetTheme<TextTheme>(); in MeasureTextInner() local
625 txtStyle.font_size = textTheme->GetTextStyle().GetFontSize().ConvertToPx(); in MeasureTextInner()
627 txtStyle.fontSize = textTheme->GetTextStyle().GetFontSize().ConvertToPx(); in MeasureTextInner()
761 auto textTheme = pipelineContext->GetTheme<TextTheme>(); in MeasureTextSizeInner() local
763 txtStyle.font_size = textTheme->GetTextStyle().GetFontSize().ConvertToPx(); in MeasureTextSizeInner()
765 txtStyle.fontSize = textTheme->GetTextStyle().GetFontSize().ConvertToPx(); in MeasureTextSizeInner()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/image/
H A Dimage_pattern.cpp1136 auto textTheme = pipeline->GetTheme<TextTheme>();
1137 CHECK_NULL_VOID(textTheme);
1138 selectedColor_ = textTheme->GetSelectedColor();
/foundation/arkui/ace_engine/test/unittest/core/pattern/marquee/
H A Dmarquee_test_update_strategy.cpp1260 auto textTheme = AceType::MakeRefPtr<TextTheme>(); in HWTEST_F() local
1261 EXPECT_CALL(*themeManager, GetTheme(_)).WillRepeatedly(Return(textTheme)); in HWTEST_F()

Completed in 36 milliseconds

12