Home
last modified time | relevance | path

Searched refs:dialogTheme (Results 1 – 25 of 31) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/common/agingadapation/
H A Daging_adapation_dialog_util.cpp31 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()
184dialogTheme->GetTextPropertyBottom() - dialogTheme->GetTextPropertyBottom(); in CreateDialogTextNode()
187dialogTheme->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 Ddialog_component.cpp562 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 Ddialog_component.h374 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 Ddialog_model_test_ng.cpp114 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 Ddialog_test_ng.cpp380 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 Dtimepicker_dialog_view.cpp64 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 Dtimepicker_dialog_view.h57 …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 Dtimepicker_row_pattern.cpp1201 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 Dtextpicker_dialog_view.cpp97 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 Dtextpicker_pattern.cpp100 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 Dtextpicker_layout_algorithm.cpp51 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()
157dialogTheme->GetDividerPadding().Bottom() + pickerTheme->GetContentMarginVertical() * 2) in GetColumnSize()
H A Dtextpicker_dialog_view.h108 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 Dtextpicker_layout_algorithm.h41 … const RefPtr<DialogTheme>& dialogTheme, SizeF& frameSize, const RefPtr<FrameNode>& pickerNode);
H A Dtextpicker_pattern.h516 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 Ddialog_view.cpp35 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 Ddialog_layout_algorithm.cpp72 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 Ddialog_pattern.h55 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 Dpicker_base_component.cpp437 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 Ddatepicker_dialog_view.cpp233 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 Ddatepicker_column_layout_algorithm.cpp48 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()
93dialogTheme->GetDividerPadding().Bottom() + pickerTheme->GetContentMarginVertical() * 2) in Measure()
H A Ddatepicker_dialog_view.h117 …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 Dcalendar_dialog_view.cpp117 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 Dtoast_pattern.cpp130 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 Dnavigation_title_util.cpp489 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 Dtabs_test_ng.cpp34 auto dialogTheme = AceType::MakeRefPtr<DialogTheme>(); in SetUpTestSuite() local
35 EXPECT_CALL(*themeManager, GetTheme(_)).WillRepeatedly(Return(dialogTheme)); in SetUpTestSuite()

12