/foundation/arkui/ace_engine/test/unittest/core/pattern/text_clock/ |
H A D | text_clock_pattern_test_ng.cpp | 81 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 D | select_modifier.cpp | 130 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 D | progress_modifier.cpp | 313 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 D | rich_editor_modifier.cpp | 517 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 D | rich_editor_drag_paint_method.cpp | 63 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 D | js_texttimer.cpp | 126 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 D | js_progress.cpp | 394 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 D | js_text_clock.cpp | 148 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 D | js_select.cpp | 344 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 D | js_button.cpp | 162 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 D | text_styles.cpp | 32 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 D | text_styles.h | 231 const std::unique_ptr<TextLineStyle>& textLineStyle, const RefPtr<TextTheme>& textTheme); 235 const RefPtr<TextTheme>& textTheme);
|
H A D | span_model_ng.cpp | 493 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 D | text_testsix_ng.cpp | 120 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 D | text_testtwo_ng.cpp | 2293 * @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 D | text_testfive_ng.cpp | 2856 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 D | text_clock_model_ng.cpp | 149 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 D | service_collaboration_menu_ace_helper.cpp | 69 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 D | text_drag_pattern.cpp | 325 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 D | text_drag_test_ng.cpp | 56 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 D | select_pattern.cpp | 785 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 D | text_input_response_area.cpp | 693 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 D | rosen_render_custom_paint.cpp | 623 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 D | image_pattern.cpp | 1136 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 D | marquee_test_update_strategy.cpp | 1260 auto textTheme = AceType::MakeRefPtr<TextTheme>(); in HWTEST_F() local 1261 EXPECT_CALL(*themeManager, GetTheme(_)).WillRepeatedly(Return(textTheme)); in HWTEST_F()
|