Home
last modified time | relevance | path

Searched refs:selectTheme (Results 1 - 25 of 31) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dselect_modifier.cpp128 auto selectTheme = GetTheme<SelectTheme>(); in SetFont() local
129 CHECK_NULL_VOID(selectTheme); in SetFont()
133 CalcDimension fontSize = selectTheme->GetFontSize(); in SetFont()
166 auto selectTheme = GetTheme<SelectTheme>(); in SetOptionFont() local
167 CHECK_NULL_VOID(selectTheme); in SetOptionFont()
171 CalcDimension fontSize = selectTheme->GetMenuFontSize(); in SetOptionFont()
204 auto selectTheme = GetTheme<SelectTheme>(); in SetSelectedOptionFont() local
205 CHECK_NULL_VOID(selectTheme); in SetSelectedOptionFont()
209 CalcDimension fontSize = selectTheme->GetFontSize(); in SetSelectedOptionFont()
235 auto selectTheme in ResetSpace() local
259 auto selectTheme = GetTheme<SelectTheme>(); ResetSelectFontColor() local
268 auto selectTheme = GetTheme<SelectTheme>(); ResetSelectedOptionBgColor() local
277 auto selectTheme = GetTheme<SelectTheme>(); ResetOptionBgColor() local
286 auto selectTheme = GetTheme<SelectTheme>(); ResetOptionFontColor() local
295 auto selectTheme = GetTheme<SelectTheme>(); ResetSelectedOptionFontColor() local
320 auto selectTheme = GetTheme<SelectTheme>(); ResetFont() local
337 auto selectTheme = GetTheme<SelectTheme>(); ResetOptionFont() local
353 auto selectTheme = GetTheme<SelectTheme>(); ResetSelectedOptionFont() local
517 auto selectTheme = GetTheme<SelectTheme>(); ResetMenuBgColor() local
566 auto selectTheme = themeManager->GetTheme<SelectTheme>(); ResetSelectDivider() local
590 auto selectTheme = themeManager->GetTheme<SelectTheme>(); ResetSelectDividerNull() local
[all...]
H A Dprogress_modifier.cpp311 auto selectTheme = themeManager->GetTheme<SelectTheme>(); in SetCapsuleStyleOptions() local
312 CHECK_NULL_VOID(selectTheme); in SetCapsuleStyleOptions()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/menu_item/
H A Dmenu_item_paint_method.cpp38 auto selectTheme = pipeline->GetTheme<SelectTheme>(); in GetOverlayDrawFunction() local
41 menuItem->UpdateRenderContextBorderRadius(renderContext, selectTheme, needDivider, press, hover); in GetOverlayDrawFunction()
49 if (selectTheme) { in GetOverlayDrawFunction()
50 strokeWidth = selectTheme->GetDefaultDividerWidth(); in GetOverlayDrawFunction()
51 dividerColor = selectTheme->GetLineColor(); in GetOverlayDrawFunction()
79 const RefPtr<RenderContext>& renderContext, const RefPtr<SelectTheme>& selectTheme, in UpdateRenderContextBorderRadius()
84 CHECK_NULL_VOID(selectTheme); in UpdateRenderContextBorderRadius()
86 border.SetRadius(selectTheme->GetMenuDefaultInnerRadius()); in UpdateRenderContextBorderRadius()
88 border.SetRadius(selectTheme->GetInnerBorderRadius()); in UpdateRenderContextBorderRadius()
78 UpdateRenderContextBorderRadius( const RefPtr<RenderContext>& renderContext, const RefPtr<SelectTheme>& selectTheme, bool needDivider, bool press, bool hover) UpdateRenderContextBorderRadius() argument
H A Dmenu_item_pattern.cpp999 auto selectTheme = pipeline->GetTheme<SelectTheme>(); in UpdateImageNode() local
1000 CHECK_NULL_VOID(selectTheme); in UpdateImageNode()
1003 props->UpdateFontSize(selectTheme->GetEndIconWidth()); in UpdateImageNode()
1004 props->UpdateSymbolColorList({ selectTheme->GetMenuIconColor() }); in UpdateImageNode()
1012 auto selectTheme = pipeline->GetTheme<SelectTheme>(); in UpdateImageNode() local
1013 CHECK_NULL_VOID(selectTheme); in UpdateImageNode()
1019 UpdateIconSrc(selectIcon, selectTheme->GetIconSideLength(), selectTheme->GetIconSideLength(), in UpdateImageNode()
1020 selectTheme->GetMenuIconColor(), userIcon.empty()); in UpdateImageNode()
1032 auto selectTheme in UpdateSymbolNode() local
1134 auto selectTheme = pipeline->GetTheme<SelectTheme>(); AddExpandIcon() local
1193 auto selectTheme = pipeline->GetTheme<SelectTheme>(); AddStackSubMenuHeader() local
1230 auto selectTheme = pipeline->GetTheme<SelectTheme>(); UpdateIcon() local
1278 auto selectTheme = pipeline->GetTheme<SelectTheme>(); UpdateImageIcon() local
1330 auto selectTheme = pipeline->GetTheme<SelectTheme>(); UpdateSymbolIcon() local
[all...]
H A Dmenu_item_paint_method.h48 const RefPtr<SelectTheme>& selectTheme, bool needDivider, bool press, bool hover);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/option/
H A Doption_paint_method.cpp85 auto selectTheme = pipeline->GetTheme<SelectTheme>(); in PaintDivider() local
86 CHECK_NULL_VOID(selectTheme); in PaintDivider()
88 auto horInterval = static_cast<float>(selectTheme->GetMenuIconPadding().ConvertToPx()) - in PaintDivider()
89 static_cast<float>(selectTheme->GetOutPadding().ConvertToPx()); in PaintDivider()
101 iconHorInterval = static_cast<float>(selectTheme->GetIconSideLength().ConvertToPx()) + in PaintDivider()
102 static_cast<float>(selectTheme->GetIconContentPadding().ConvertToPx()); in PaintDivider()
111 path.AddRect(startX, 0, rectWidth, static_cast<float>(selectTheme->GetDefaultDividerWidth().ConvertToPx())); in PaintDivider()
114 auto dividerColor = props->HasDivider() ? props->GetDividerValue().color : selectTheme->GetLineColor(); in PaintDivider()
H A Doption_layout_algorithm.cpp29 const auto& selectTheme = optionPattern->GetSelectTheme(); in Measure() local
30 CHECK_NULL_VOID(selectTheme); in Measure()
31 horInterval_ = static_cast<float>(selectTheme->GetMenuIconPadding().ConvertToPx()) - in Measure()
32 static_cast<float>(selectTheme->GetOutPadding().ConvertToPx()); in Measure()
45 auto minOptionHeight = static_cast<float>(selectTheme->GetOptionMinHeight().ConvertToPx()); in Measure()
77 float dividerWidth = static_cast<float>(selectTheme->GetDefaultDividerWidth().ConvertToPx()); in Measure()
168 const auto& selectTheme = optionPattern->GetSelectTheme(); in UpdateIconMargin() local
169 CHECK_NULL_VOID(selectTheme); in UpdateIconMargin()
170 auto calcLength = CalcLength(selectTheme->GetIconContentPadding()); in UpdateIconMargin()
H A Doption_pattern.cpp97 auto selectTheme = pipeline->GetTheme<SelectTheme>(); in UpdateIconSrc() local
98 CHECK_NULL_VOID(selectTheme); in UpdateIconSrc()
104 iconRenderProperty->UpdateSvgFillColor(selectTheme->GetMenuIconColor()); in UpdateIconSrc()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/menu_item_group/
H A Dmenu_item_group_paint_method.cpp52 auto selectTheme = pipeline->GetTheme<SelectTheme>(); in PreparePaintData() local
57 if (selectTheme) { in PreparePaintData()
58 float horIntervalF = static_cast<float>(selectTheme->GetMenuIconPadding().ConvertToPx()) - in PreparePaintData()
59 static_cast<float>(selectTheme->GetOutPadding().ConvertToPx()); in PreparePaintData()
61 strokeWidth = selectTheme->GetDefaultDividerWidth(); in PreparePaintData()
62 dividerColor = selectTheme->GetLineColor(); in PreparePaintData()
H A Dmenu_item_group_layout_algorithm.cpp257 auto selectTheme = pipeline->GetTheme<SelectTheme>(); in UpdateHeaderAndFooterMargin() local
258 CHECK_NULL_VOID(selectTheme); in UpdateHeaderAndFooterMargin()
259 auto iconWidth = selectTheme->GetIconSideLength(); in UpdateHeaderAndFooterMargin()
260 auto iconContentPadding = selectTheme->GetIconContentPadding(); in UpdateHeaderAndFooterMargin()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select/
H A Dselect_pattern.cpp279 auto selectTheme = pipeline->GetTheme<SelectTheme>(); in PlayBgColorAnimation() local
280 CHECK_NULL_VOID(selectTheme); in PlayBgColorAnimation()
284 option.SetDuration(selectTheme->GetHoverAnimationDuration()); in PlayBgColorAnimation()
287 option.SetDuration(selectTheme->GetPressAnimationDuration()); in PlayBgColorAnimation()
784 auto selectTheme = pipeline->GetTheme<SelectTheme>(); in ResetOptionProps() local
786 CHECK_NULL_VOID(selectTheme && textTheme); in ResetOptionProps()
792 pattern->SetBgColor(optionBgColor_.value_or(selectTheme->GetBackgroundColor())); in ResetOptionProps()
793 pattern->SetFontSize(optionFont_.FontSize.value_or(selectTheme->GetMenuFontSize())); in ResetOptionProps()
797 pattern->SetFontColor(optionFont_.FontColor.value_or(selectTheme->GetMenuFontColor())); in ResetOptionProps()
909 const RefPtr<FrameNode>& spinner, const RefPtr<IconTheme>& iconTheme, const RefPtr<SelectTheme>& selectTheme) in InitSpinner()
908 InitSpinner( const RefPtr<FrameNode>& spinner, const RefPtr<IconTheme>& iconTheme, const RefPtr<SelectTheme>& selectTheme) InitSpinner() argument
928 InitSpinner( const RefPtr<FrameNode>& spinner, const RefPtr<SelectTheme>& selectTheme) InitSpinner() argument
1210 auto selectTheme = pipeline->GetTheme<SelectTheme>(); OnColorConfigurationUpdate() local
1283 auto selectTheme = pipeline->GetTheme<SelectTheme>(); GetFontSize() local
1384 auto selectTheme = pipeline->GetTheme<SelectTheme>(); ResetParams() local
[all...]
H A Dselect_pattern.h267 const RefPtr<FrameNode>& spinner, const RefPtr<IconTheme>& iconTheme, const RefPtr<SelectTheme>& selectTheme);
268 void InitSpinner(const RefPtr<FrameNode>& spinner, const RefPtr<SelectTheme>& selectTheme);
/foundation/arkui/ace_engine/frameworks/core/components/option/
H A Doption_component.cpp43 auto selectTheme = themeManager->GetTheme<SelectTheme>(); in InitTheme() local
44 if (!selectTheme) { in InitTheme()
47 theme_ = selectTheme->clone(); in InitTheme()
/foundation/arkui/ace_engine/frameworks/core/components/select/
H A Dselect_component.cpp47 auto selectTheme = themeManager->GetTheme<SelectTheme>(); in InitTheme() local
48 if (!selectTheme) { in InitTheme()
51 theme_ = selectTheme->clone(); in InitTheme()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_select.cpp312 auto selectTheme = pipeline->GetTheme<SelectTheme>(); in ResetFontSize() local
313 CHECK_NULL_VOID(selectTheme); in ResetFontSize()
315 SelectModel::GetInstance()->SetOptionFontSize(selectTheme->GetMenuFontSize()); in ResetFontSize()
318 SelectModel::GetInstance()->SetSelectedOptionFontSize(selectTheme->GetMenuFontSize()); in ResetFontSize()
322 SelectModel::GetInstance()->SetFontSize(selectTheme->GetFontSize()); in ResetFontSize()
325 SelectModel::GetInstance()->SetFontSize(selectTheme->GetFontSize(controlSize)); in ResetFontSize()
630 auto selectTheme = GetTheme<SelectTheme>(); in SetSpace() local
634 value = selectTheme->GetContentSpinnerPadding(); in SetSpace()
637 value = selectTheme->GetContentSpinnerPadding(); in SetSpace()
834 auto selectTheme in SetDivider() local
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_tool_bar_item.cpp74 RefPtr<SelectTheme> selectTheme = GetTheme<SelectTheme>(); in InitializedToolBarItemChild() local
75 if (selectTheme) { in InitializedToolBarItemChild()
76 toolBarItemChild_->SetMenuMinWidth(selectTheme->GetPopupMinWidth()); in InitializedToolBarItemChild()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_select_bridge.cpp93 auto selectTheme = pipeline->GetTheme<SelectTheme>(); in SetSpace() local
94 CHECK_NULL_RETURN(selectTheme, panda::NativePointerRef::New(vm, nullptr)); in SetSpace()
98 space = selectTheme->GetContentSpinnerPadding(); in SetSpace()
101 space = selectTheme->GetContentSpinnerPadding(); in SetSpace()
323 auto selectTheme = pipeline->GetTheme<SelectTheme>(); in SetOptionFont() local
328 fontSize = selectTheme->GetMenuFontSize(); in SetOptionFont()
370 auto selectTheme = pipeline->GetTheme<SelectTheme>(); in SetSelectedOptionFont() local
375 fontSize = selectTheme->GetFontSize(); in SetSelectedOptionFont()
877 auto selectTheme = themeManager->GetTheme<SelectTheme>(); in SetDivider() local
878 CHECK_NULL_RETURN(selectTheme, pand in SetDivider()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/select_popup/
H A Dselect_popup_component.cpp44 auto selectTheme = themeManager->GetTheme<SelectTheme>(); in InitTheme() local
45 if (!selectTheme) { in InitTheme()
48 theme_ = selectTheme->clone(); in InitTheme()
/foundation/arkui/ace_engine/test/unittest/core/pattern/select/
H A Dselect_pattern_test_controlsize_ng.cpp443 auto selectTheme = pipeline->GetTheme<SelectTheme>(); in HWTEST_F() local
444 ASSERT_NE(selectTheme, nullptr); in HWTEST_F()
445 layoutAlgorithm->MeasureAndGetDefaultHeight(layoutProperty, selectTheme); in HWTEST_F()
453 layoutAlgorithm->MeasureAndGetDefaultHeight(layoutProperty, selectTheme); in HWTEST_F()
H A Dselect_test_ng.cpp861 auto selectTheme = pipeline->GetTheme<SelectTheme>(); in HWTEST_F() local
862 ASSERT_NE(selectTheme, nullptr); in HWTEST_F()
1082 auto selectTheme = pipeline->GetTheme<SelectTheme>(); in HWTEST_F() local
1223 auto selectTheme = pipeline->GetTheme<SelectTheme>(); in HWTEST_F() local
1224 ASSERT_NE(selectTheme, nullptr); in HWTEST_F()
1230 renderContext->GetBorderRadius().value().radiusTopLeft.value(), selectTheme->GetSelectDefaultBorderRadius()); in HWTEST_F()
1232 renderContext->GetBorderRadius().value().radiusTopRight.value(), selectTheme->GetSelectDefaultBorderRadius()); in HWTEST_F()
1234 selectTheme->GetSelectDefaultBorderRadius()); in HWTEST_F()
1236 renderContext->GetBorderRadius().value().radiusBottomLeft.value(), selectTheme->GetSelectDefaultBorderRadius()); in HWTEST_F()
1253 auto selectTheme in HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/navigation/
H A Dtool_bar_test_ng.cpp144 auto selectTheme = AceType::MakeRefPtr<SelectTheme>(); in InitializationParameters() local
145 ASSERT_NE(selectTheme, nullptr); in InitializationParameters()
146 EXPECT_CALL(*themeManager, GetTheme(SelectTheme::TypeId())).WillRepeatedly(Return(selectTheme)); in InitializationParameters()
/foundation/arkui/ace_engine/test/unittest/core/pattern/menu/
H A Dmenuitemgroup_test_ng.cpp272 // set selectTheme to themeManager before using themeManager to get selectTheme in HWTEST_F()
823 auto selectTheme = MockPipelineContext::GetCurrent()->GetTheme<SelectTheme>(); in HWTEST_F() local
836 EXPECT_EQ(layoutProps->GetFontSize(), selectTheme->GetMenuFontSize()); in HWTEST_F()
857 auto selectTheme = MockPipelineContext::GetCurrent()->GetTheme<SelectTheme>(); in HWTEST_F() local
882 auto selectTheme = MockPipelineContext::GetCurrent()->GetTheme<SelectTheme>(); in HWTEST_F() local
913 auto selectTheme = MockPipelineContext::GetCurrent()->GetTheme<SelectTheme>(); in HWTEST_F() local
H A Dmenuitem_pattern_test_ng.cpp594 auto selectTheme = MockPipelineContext::GetCurrent()->GetTheme<SelectTheme>(); in HWTEST_F() local
634 EXPECT_EQ(textRenderContext->GetOpacity(), selectTheme->GetDisabledFontColorAlpha()); in HWTEST_F()
670 auto selectTheme = MockPipelineContext::GetCurrent()->GetTheme<SelectTheme>(); in HWTEST_F() local
694 itemRenderContext->UpdateForegroundColor(selectTheme->GetDisabledMenuFontColor()); in HWTEST_F()
H A Dmenu_layoutFst_test_ng.cpp1705 auto selectTheme = MockPipelineContext::GetCurrent()->GetTheme<SelectTheme>(); in HWTEST_F() local
1706 auto radius = selectTheme->GetMenuBorderRadius().ConvertToPx(); in HWTEST_F()
1743 auto selectTheme = AceType::MakeRefPtr<SelectTheme>(); in HWTEST_F() local
1775 selectTheme->expandDisplay_ = true; in HWTEST_F()
1776 EXPECT_CALL(*themeManager, GetTheme(_)).WillRepeatedly(Return(selectTheme)); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dselect_model_impl.cpp26 auto selectTheme = JSViewAbstract::GetTheme<SelectTheme>(); in Create() local
29 selectComponent->SetTheme(selectTheme); in Create()

Completed in 30 milliseconds

12