/ohos5.0/foundation/arkui/ace_engine/frameworks/core/common/agingadapation/ |
H A D | aging_adapation_dialog_util.cpp | 31 CHECK_NULL_RETURN(dialogTheme, nullptr); in ShowLongPressDialog() 39 … CalcSize(CalcLength(dialogTheme->GetIdealSize()), CalcLength(dialogTheme->GetIdealSize()))); in ShowLongPressDialog() 76 CHECK_NULL_RETURN(dialogTheme, nullptr); in ShowLongPressDialog() 127 CHECK_NULL_RETURN(dialogTheme, nullptr); in CreateCustomDialog() 163 CHECK_NULL_VOID(dialogTheme); in CreateDialogTextNode() 184 … dialogTheme->GetTextPropertyBottom() - dialogTheme->GetTextPropertyBottom(); in CreateDialogTextNode() 187 … dialogTheme->GetTextPropertyBottom() - dialogTheme->GetTextPropertyBottom(); in CreateDialogTextNode() 203 CHECK_NULL_RETURN(dialogTheme, 0.0); in GetDialogBigFontSizeScale() 204 return dialogTheme->GetBigFontSizeScale(); in GetDialogBigFontSizeScale() 212 CHECK_NULL_RETURN(dialogTheme, 0.0); in GetDialogLargeFontSizeScale() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/dialog/ |
H A D | dialog_component.cpp | 562 if (!dialogTheme) { in BuildDivider() 572 …dividerBox->SetWidth(dialogTheme->GetDividerWidth().Value(), dialogTheme->GetDividerWidth().Unit()… in BuildDivider() 573 …dividerBox->SetHeight(dialogTheme->GetDividerHeight().Value(), dialogTheme->GetDividerHeight().Uni… in BuildDivider() 595 if (!dialogTheme) { in Build() 631 return BuildAnimation(dialog, dialogTheme); in Build() 663 auto style = dialogTheme->GetTitleTextStyle(); in BuildTitleAndContent() 720 …buttonTextStyle.SetAdaptTextSize(dialogTheme->GetButtonTextSize(), dialogTheme->GetMinButtonTextSi… in BuildButtons() 723 …buttonTextStyle.SetAdaptTextSize(dialogTheme->GetButtonTextSize(), dialogTheme->GetMinButtonTextSi… in BuildButtons() 770 if (!buttonTheme || !dialogTheme) { in BuildButtonsForWatch() 818 dialogTheme->GetMaskColorStart(), dialogTheme->GetMaskColorEnd(), Curves::LINEAR); in BuildAnimation() [all …]
|
H A D | dialog_component.h | 374 const RefPtr<DialogTheme>& dialogTheme, std::string& data); 376 const std::vector<ButtonInfo>& buttons, const RefPtr<DialogTheme>& dialogTheme, 381 const RefPtr<DialogComponent>& dialogChild, const RefPtr<DialogTheme>& dialogTheme);
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/dialog/ |
H A D | dialog_model_test_ng.cpp | 114 ASSERT_NE(dialogTheme, nullptr); 367 ASSERT_NE(dialogTheme, nullptr); 627 ASSERT_NE(dialogTheme, nullptr); 665 ASSERT_NE(dialogTheme, nullptr); 699 ASSERT_NE(dialogTheme, nullptr); 762 ASSERT_NE(dialogTheme, nullptr); 838 ASSERT_NE(dialogTheme, nullptr); 880 ASSERT_NE(dialogTheme, nullptr); 919 ASSERT_NE(dialogTheme, nullptr); 968 ASSERT_NE(dialogTheme, nullptr); [all …]
|
H A D | dialog_test_ng.cpp | 380 auto dialogTheme = AceType::MakeRefPtr<DialogTheme>(); variable 381 ASSERT_NE(dialogTheme, nullptr); 410 auto dialogTheme = AceType::MakeRefPtr<DialogTheme>(); variable 411 ASSERT_NE(dialogTheme, nullptr); 443 auto dialogTheme = AceType::MakeRefPtr<DialogTheme>(); variable 444 ASSERT_NE(dialogTheme, nullptr); 472 auto dialogTheme = AceType::MakeRefPtr<DialogTheme>(); variable 473 ASSERT_NE(dialogTheme, nullptr); 1213 ASSERT_NE(dialogTheme, nullptr); 1286 ASSERT_NE(dialogTheme, nullptr); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/ |
H A D | timepicker_dialog_view.cpp | 64 auto dialogTheme = themeManager->GetTheme<DialogTheme>(); in Show() local 65 CHECK_NULL_RETURN(dialogTheme, nullptr); in Show() 263 auto dialogTheme = pipeline->GetTheme<DialogTheme>(); in CreateNextPrevButtonNode() local 329 auto dialogTheme = dialogThemeWeak.Upgrade(); in UpdateTimePickerSwitchEvent() local 330 CHECK_NULL_VOID(dialogTheme); in UpdateTimePickerSwitchEvent() 374 auto dialogTheme = pipeline->GetTheme<DialogTheme>(); in CreateDividerNode() local 396 …CalcSize(CalcLength(dialogTheme->GetDividerWidth()), CalcLength(dialogTheme->GetDividerHeight()))); in CreateDividerNode() 403 …CalcSize(CalcLength(dialogTheme->GetDividerWidth()), CalcLength(dialogTheme->GetDividerHeight()))); in CreateDividerNode() 426 auto dialogTheme = pipeline->GetTheme<DialogTheme>(); in CreateTitleButtonNode() local 613 auto dialogTheme = pipeline->GetTheme<DialogTheme>(); in CreateConfirmNode() local [all …]
|
H A D | timepicker_dialog_view.h | 57 …RefPtr<ButtonLayoutProperty>& buttonConfirmLayoutProperty, const RefPtr<DialogTheme>& dialogTheme); 59 … RefPtr<ButtonLayoutProperty>& buttonCancelLayoutProperty, const RefPtr<DialogTheme>& dialogTheme); 89 …tr<FrameNode>& timeNode, const RefPtr<FrameNode>& textNode, const RefPtr<DialogTheme>& dialogTheme,
|
H A D | timepicker_row_pattern.cpp | 1201 auto dialogTheme = context->GetTheme<DialogTheme>(); in OnColorConfigurationUpdate() local 1202 CHECK_NULL_VOID(dialogTheme); in OnColorConfigurationUpdate() 1213 SetBackgroundColor(dialogTheme->GetBackgroundColor()); in OnColorConfigurationUpdate() 1231 layoutRenderContext->UpdateBackgroundColor(dialogTheme->GetButtonBackgroundColor()); in OnColorConfigurationUpdate()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/ |
H A D | textpicker_dialog_view.cpp | 97 auto dialogTheme = themeManager->GetTheme<DialogTheme>(); in RangeShow() local 98 CHECK_NULL_RETURN(dialogTheme, nullptr); in RangeShow() 254 CHECK_NULL_RETURN(dialogTheme, nullptr); in OptionsShow() 422 auto dialogTheme = pipeline->GetTheme<DialogTheme>(); in CreateDividerNode() local 435 …CalcSize(CalcLength(dialogTheme->GetDividerWidth()), CalcLength(dialogTheme->GetDividerHeight()))); in CreateDividerNode() 442 …CalcSize(CalcLength(dialogTheme->GetDividerWidth()), CalcLength(dialogTheme->GetDividerHeight()))); in CreateDividerNode() 508 auto dialogTheme = pipeline->GetTheme<DialogTheme>(); in UpdateButtonConfirmLayoutProperty() local 509 CHECK_NULL_VOID(dialogTheme); in UpdateButtonConfirmLayoutProperty() 527 auto dialogTheme = pipeline->GetTheme<DialogTheme>(); in CreateConfirmNode() local 847 auto dialogTheme = pipeline->GetTheme<DialogTheme>(); in UpdateButtonCancelLayoutProperty() local [all …]
|
H A D | textpicker_pattern.cpp | 100 margin.top = CalcLength(dialogTheme->GetDividerHeight()); in UpdateConfirmButtonMargin() 111 margin.top = CalcLength(dialogTheme->GetActionsPadding().Top()); in UpdateConfirmButtonMargin() 130 margin.top = CalcLength(dialogTheme->GetDividerHeight()); in UpdateCancelButtonMargin() 140 margin.top = CalcLength(dialogTheme->GetActionsPadding().Top()); in UpdateCancelButtonMargin() 167 auto dialogTheme = pipeline->GetTheme<DialogTheme>(); in OnLanguageConfigurationUpdate() local 168 CHECK_NULL_VOID(dialogTheme); in OnLanguageConfigurationUpdate() 169 UpdateConfirmButtonMargin(buttonConfirmNode, dialogTheme); in OnLanguageConfigurationUpdate() 179 UpdateCancelButtonMargin(buttonCancelNode, dialogTheme); in OnLanguageConfigurationUpdate() 1122 auto dialogTheme = context->GetTheme<DialogTheme>(); in OnColorConfigurationUpdate() local 1123 CHECK_NULL_VOID(dialogTheme); in OnColorConfigurationUpdate() [all …]
|
H A D | textpicker_layout_algorithm.cpp | 51 auto dialogTheme = pipeline->GetTheme<DialogTheme>(); in Measure() local 52 CHECK_NULL_VOID(dialogTheme); in Measure() 68 GetColumnSize(layoutProperty, pickerTheme, dialogTheme, frameSize, pickerNode); in Measure() 112 … const RefPtr<PickerTheme>& pickerTheme, const RefPtr<DialogTheme>& dialogTheme, SizeF& frameSize, in GetColumnSize() argument 156 static_cast<float>((pickerTheme->GetButtonHeight() + dialogTheme->GetDividerHeight() + in GetColumnSize() 157 … dialogTheme->GetDividerPadding().Bottom() + pickerTheme->GetContentMarginVertical() * 2) in GetColumnSize()
|
H A D | textpicker_dialog_view.h | 108 const RefPtr<FrameNode>& buttonConfirmNode, const RefPtr<DialogTheme>& dialogTheme); 110 const RefPtr<FrameNode>& buttonCancelNode, const RefPtr<DialogTheme>& dialogTheme); 112 const RefPtr<FrameNode>& buttonCancelNode, const RefPtr<DialogTheme>& dialogTheme); 114 const RefPtr<FrameNode>& buttonCancelNode, const RefPtr<DialogTheme>& dialogTheme);
|
H A D | textpicker_layout_algorithm.h | 41 … const RefPtr<DialogTheme>& dialogTheme, SizeF& frameSize, const RefPtr<FrameNode>& pickerNode);
|
H A D | textpicker_pattern.h | 516 const RefPtr<FrameNode>& buttonConfirmNode, const RefPtr<DialogTheme>& dialogTheme); 518 const RefPtr<FrameNode>& buttonCancelNode, const RefPtr<DialogTheme>& dialogTheme);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/dialog/ |
H A D | dialog_view.cpp | 35 auto dialogTheme = pipeline->GetTheme<DialogTheme>(); in CreateDialogNode() local 36 CHECK_NULL_RETURN(dialogTheme, nullptr); in CreateDialogNode() 55 AceType::MakeRefPtr<DialogPattern>(dialogTheme, customNode)); in CreateDialogNode() 94 … dialogContext->UpdateBackgroundColor(param.maskColor.value_or(dialogTheme->GetMaskColorEnd())); in CreateDialogNode() 97 … dialogContext->UpdateBackgroundColor(param.maskColor.value_or(dialogTheme->GetMaskColorEnd())); in CreateDialogNode()
|
H A D | dialog_layout_algorithm.cpp | 72 auto dialogTheme = pipeline->GetTheme<DialogTheme>(); in Measure() local 73 CHECK_NULL_VOID(dialogTheme); in Measure() 298 auto dialogTheme = pipeline->GetTheme<DialogTheme>(); in ComputeInnerLayoutSizeParam() local 299 CHECK_NULL_RETURN(dialogTheme, false); in ComputeInnerLayoutSizeParam() 303 …maxSize.Width() - dialogTheme->GetMarginLeft().ConvertToPx() - dialogTheme->GetMarginRight().Conve… in ComputeInnerLayoutSizeParam() 549 auto dialogTheme = pipelineContext->GetTheme<DialogTheme>(); in Layout() local 550 CHECK_NULL_VOID(dialogTheme); in Layout() 700 auto dialogTheme = pipelineContext->GetTheme<DialogTheme>(); in ComputeChildPosition() local 702 CHECK_NULL_RETURN(dialogTheme, OffsetF()); in ComputeChildPosition() 851 CHECK_NULL_RETURN(dialogTheme, 0); in GetPaddingBottom() [all …]
|
H A D | dialog_pattern.h | 55 DialogPattern(const RefPtr<DialogTheme>& dialogTheme, const RefPtr<UINode>& customNode) in DialogPattern() argument 56 : dialogTheme_(dialogTheme), customNode_(customNode) in DialogPattern() 345 …pdateWrapperBackgroundStyle(const RefPtr<FrameNode>& host, const RefPtr<DialogTheme>& dialogTheme);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
H A D | picker_base_component.cpp | 437 auto dialogTheme = themeManager->GetTheme<DialogTheme>(); in InitializeButtons() local 438 if (!theme_ || !dialogTheme) { in InitializeButtons() 459 cancelButton->SetBackgroundColor(dialogTheme->GetButtonBackgroundColor()); in InitializeButtons() 460 cancelButton->SetClickedColor(dialogTheme->GetButtonClickedColor()); in InitializeButtons() 471 okButton->SetBackgroundColor(dialogTheme->GetButtonBackgroundColor()); in InitializeButtons() 472 okButton->SetClickedColor(dialogTheme->GetButtonClickedColor()); in InitializeButtons() 482 …dividerBox->SetWidth(dialogTheme->GetDividerWidth().Value(), dialogTheme->GetDividerWidth().Unit()… in InitializeButtons() 483 …dividerBox->SetHeight(dialogTheme->GetDividerHeight().Value(), dialogTheme->GetDividerHeight().Uni… in InitializeButtons() 485 backDecoration->SetBackgroundColor(dialogTheme->GetDividerColor()); in InitializeButtons() 487 dividerBox->SetMargin(dialogTheme->GetDividerPadding()); in InitializeButtons()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/ |
H A D | datepicker_dialog_view.cpp | 233 auto dialogTheme = pipeline->GetTheme<DialogTheme>(); in CreateTitleButtonNode() local 345 auto dialogTheme = pipeline->GetTheme<DialogTheme>(); in CreateDividerNode() local 368 …CalcSize(CalcLength(dialogTheme->GetDividerWidth()), CalcLength(dialogTheme->GetDividerHeight()))); in CreateDividerNode() 586 CHECK_NULL_VOID(dialogTheme); in SwitchContentRowButton() 708 auto dialogTheme = pipeline->GetTheme<DialogTheme>(); in CreateConfirmNode() local 789 auto dialogTheme = pipeline->GetTheme<DialogTheme>(); in UpdateButtonLayoutProperty() local 790 CHECK_NULL_VOID(dialogTheme); in UpdateButtonLayoutProperty() 844 CHECK_NULL_VOID(dialogTheme); in UpdateNextButtonMargin() 946 CHECK_NULL_RETURN(dialogTheme, nullptr); in CreateDateNode() 1952 auto dialogTheme = dialogThemeWeak.Upgrade(); in CreateNextPrevClickEvent() local [all …]
|
H A D | datepicker_column_layout_algorithm.cpp | 48 auto dialogTheme = pipeline->GetTheme<DialogTheme>(); in Measure() local 49 CHECK_NULL_VOID(dialogTheme); in Measure() 89 … static_cast<float>((pickerTheme->GetTitleStyle().GetFontSize() + dialogTheme->GetDividerHeight() + in Measure() 92 static_cast<float>((pickerTheme->GetButtonHeight() + dialogTheme->GetDividerHeight() + in Measure() 93 … dialogTheme->GetDividerPadding().Bottom() + pickerTheme->GetContentMarginVertical() * 2) in Measure()
|
H A D | datepicker_dialog_view.h | 117 …RefPtr<ButtonLayoutProperty>& buttonConfirmLayoutProperty, const RefPtr<DialogTheme>& dialogTheme); 119 … RefPtr<ButtonLayoutProperty>& buttonCancelLayoutProperty, const RefPtr<DialogTheme>& dialogTheme); 150 const RefPtr<DialogTheme>& dialogTheme, const RefPtr<FrameNode>& dateNode,
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar_picker/ |
H A D | calendar_dialog_view.cpp | 117 RefPtr<DialogTheme> dialogTheme = pipelineContext->GetTheme<DialogTheme>(); in CreateChildNode() local 515 auto dialogTheme = pipeline->GetTheme<DialogTheme>(); in CreateButtonNode() local 566 auto dialogTheme = pipeline->GetTheme<DialogTheme>(); in UpdateButtonLayoutProperty() local 713 auto dialogTheme = pipeline->GetTheme<DialogTheme>(); in CreateDividerNode() local 730 … CalcSize(CalcLength(dialogTheme->GetDividerWidth()), CalcLength(theme->GetEntryArrowWidth()))); in CreateDividerNode() 743 …CalcLength(dialogTheme->GetActionsPadding().Bottom()), CalcLength(theme->GetCalendarActionRowHeigh… in CreateDividerNode()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/toast/ |
H A D | toast_pattern.cpp | 130 auto dialogTheme = context->GetTheme<DialogTheme>(); in OnDirtyLayoutWrapperSwap() local 131 CHECK_NULL_RETURN(dialogTheme, false); in OnDirtyLayoutWrapperSwap() 132 expandDisplay_ = dialogTheme->GetExpandDisplay() || IsShowInFreeMultiWindow(); in OnDirtyLayoutWrapperSwap()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navigation/ |
H A D | navigation_title_util.cpp | 489 auto dialogTheme = context->GetTheme<AgingAdapationDialogTheme>(); in HandleLongPress() local 490 CHECK_NULL_VOID(dialogTheme); in HandleLongPress() 492 if (LessNotEqual(scale, dialogTheme->GetBigFontSizeScale())) { in HandleLongPress() 495 dialogTheme->GetBigFontSizeScale()); in HandleLongPress()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/tabs/ |
H A D | tabs_test_ng.cpp | 34 auto dialogTheme = AceType::MakeRefPtr<DialogTheme>(); in SetUpTestSuite() local 35 EXPECT_CALL(*themeManager, GetTheme(_)).WillRepeatedly(Return(dialogTheme)); in SetUpTestSuite()
|