Home
last modified time | relevance | path

Searched refs:theme_ (Results 1 - 25 of 58) sorted by relevance

123

/foundation/arkui/ace_engine/frameworks/core/components/list/
H A Dtv_interactive_effect.h36 if (theme_) {
37 scaleEnd_ = theme_->GetFocusScale(); // 1.05
38 focusDuration_ = theme_->GetFocusAnimationDuration(); // 100.0
47 if (theme_) {
48 scaleEnd_ = theme_->GetFocusScaleLarge(); // 1.0
49 alphaBegin_ = theme_->GetClickAlphaEnd(); // 0.9
50 alphaEnd_ = theme_->GetClickAlphaBegin(); // 0.2
51 focusDuration_ = theme_->GetFocusAnimationDuration(); // 100.0
H A Dwatch_interactive_effect.h34 if (theme_) {
35 scaleEnd_ = scale_ * theme_->GetClickScale(); // scale_ * 0.95;
36 alphaBegin_ = theme_->GetClickAlphaBegin(); // 0.0
37 alphaEnd_ = theme_->GetClickAlphaEnd(); // 0.1
38 focusDuration_ = theme_->GetClickAnimationDuration(); // 200.0
H A Dinteractive_effect.h101 if (theme_) { in HandleOnClick()
102 alphaBegin_ = theme_->GetClickAlphaBegin(); in HandleOnClick()
103 alphaEnd_ = theme_->GetClickAlphaEnd(); in HandleOnClick()
104 clickDuration_ = theme_->GetClickAnimationDuration(); // 200.0 in HandleOnClick()
134 RefPtr<ListItemTheme> theme_; member in OHOS::Ace::InteractiveEffect
H A Dinteractive_effect.cpp53 if (!theme_) { in Initialize()
54 theme_ = themeManager->GetTheme<ListItemTheme>(); in Initialize()
90 if (!theme_) { in TouchDownAnimation()
103 if (!theme_) { in TouchUpAnimation()
115 if (!theme_) { in CancelTouchAnimation()
183 if (!theme_) { in BuildClickAnimation()
/foundation/arkui/ace_engine/frameworks/core/components/select/
H A Dselect_component.h81 return theme_->GetClickedColor(); in GetClickedColor()
85 theme_->SetClickedColor(clickedColor); in SetClickedColor()
90 return theme_->GetSelectedColor(); in GetSelectedColor()
94 theme_->SetSelectedColor(selectedColor); in SetSelectedColor()
99 return theme_->GetDisabledColor(); in GetDisabledColor()
103 theme_->SetDisabledColor(disabledColor); in SetDisabledColor()
108 return theme_->IsAllowScale(); in IsAllowScale()
112 theme_->SetAllowScale(value); in SetAllowScale()
117 return theme_->GetFontColor(); in GetTextColor()
121 theme_ in SetTextColor()
437 RefPtr<SelectTheme> theme_; global() member in OHOS::Ace::SelectComponent
[all...]
H A Dselect_component.cpp51 theme_ = selectTheme->clone(); in InitTheme()
52 theme_->SetFontWeight(FontWeight::W500); in InitTheme()
93 textStyle.SetTextColor(theme_->GetDisabledColor()); in Initialize()
97 textStyle.SetFontSize(theme_->GetFontSize()); in Initialize()
98 textStyle.SetFontWeight(theme_->GetFontWeight()); in Initialize()
100 textStyle.SetTextColor(theme_->GetDisabledColor()); in Initialize()
102 textStyle.SetTextColor(theme_->GetFontColor()); in Initialize()
105 StringUtils::StringSplitter(theme_->GetFontFamily(), ',', fontFamilies); in Initialize()
111 textStyle.SetAllowScale(theme_->IsAllowScale()); in Initialize()
112 textStyle.SetTextDecoration(theme_ in Initialize()
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/linear_indicator/
H A Dlinear_indicator_pattern_test_ng.cpp35 ASSERT_NE(theme_, nullptr); in HWTEST_F()
36 theme_->defaultProgressCount_ = 0; in HWTEST_F()
70 DumpLog::GetInstance().description_[0], "indicatorStyle.space " + theme_->GetDefaultSpace().ToString() + "\n"); in HWTEST_F()
72 "indicatorStyle.strokeWidth " + theme_->GetDefaultStrokeWidth().ToString() + "\n"); in HWTEST_F()
74 "indicatorStyle.strokeRadius " + theme_->GetDefaultStrokeRadius().ToString() + "\n"); in HWTEST_F()
75 ASSERT_NE(theme_, nullptr); in HWTEST_F()
76 theme_->defaultStrokeWidth_ = 1.0_vp; in HWTEST_F()
78 theme_->defaultStrokeRadius_ = 2.0_vp; in HWTEST_F()
80 theme_->trackBackgroundColor_ = Color::BLACK; in HWTEST_F()
82 theme_ in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/navigation_bar/
H A Dnavigation_bar_component_v2.cpp41 IconImage backIcon(theme_->GetBackResourceId(), menuIconSize_, menuIconSize_); in BuildMiniLayer()
44 backIcon.image->SetColor(theme_->GetMenuIconColor()); in BuildMiniLayer()
45 auto backButton = BuildIconButton(theme_, menuZoneSize_, menuZoneSize_, backIcon, backClickMarker_); in BuildMiniLayer()
58 container->AppendChild(BuildPadding(theme_->GetTitleMinPadding().Value())); in BuildMiniLayer()
59 padding.SetLeft(theme_->GetDefaultPaddingStart()); in BuildMiniLayer()
61 container->AppendChild(BuildPadding(theme_->GetMaxPaddingStart().Value())); in BuildMiniLayer()
68 padding.SetRight(theme_->GetDefaultPaddingEnd()); in BuildMiniLayer()
70 padding.SetRight(theme_->GetMaxPaddingStart() - theme_->GetTitleMinPadding()); in BuildMiniLayer()
73 return BuildAnimationContainer(container, theme_ in BuildMiniLayer()
[all...]
H A Dnavigation_bar_component.cpp137 uint32_t mostShowInBarSize = theme_->GetMostMenuItemCountInBar(); in MoveMenuItemsToBar()
153 auto optionButton = BuildIconButton(theme_, menuZoneSize_, menuZoneSize_, menuIcon); in MoveMenuItemsToBar()
154 if (theme_->GetMenuItemPadding().Value() > 0.0 && needAddPadding) { in MoveMenuItemsToBar()
155 container->AppendChild(BuildPadding(theme_->GetMenuItemPadding().Value())); in MoveMenuItemsToBar()
172 IconImage moreIcon(theme_->GetMoreResourceId(), menuIconSize_, menuIconSize_); in AddCollapseMenu()
173 moreIcon.image->SetImageFill(theme_->GetMenuIconColor()); in AddCollapseMenu()
174 moreButton_ = BuildIconButton(theme_, menuZoneSize_, menuZoneSize_, moreIcon); in AddCollapseMenu()
226 menusBox->SetHeight(theme_->GetHeight().Value(), theme_->GetHeight().Unit()); in Build()
239 collapsingNavigationBar->SetMinHeight(theme_ in Build()
[all...]
H A Dnavigation_bar_component_v2.h30 : declaration_(declaration), theme_(AceType::MakeRefPtr<ThemeManagerImpl>()->GetTheme<NavigationBarTheme>()), in NavigationBarBuilder()
31 id_(id), direction_(direction), menuZoneSize_(theme_->GetMenuZoneSize()), in NavigationBarBuilder()
32 menuIconSize_(theme_->GetMenuIconSize()) in NavigationBarBuilder()
65 RefPtr<NavigationBarTheme> theme_; member in OHOS::Ace::NavigationBarBuilder
/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Dpicker_base_component.cpp243 if (!theme_) { in InitializeTitle()
252 triangle->SetColor(theme_->GetTitleStyle().GetTextColor()); in InitializeTitle()
255 title_->SetTextStyle(theme_->GetTitleStyle()); in InitializeTitle()
271 spaceBox->SetWidth(theme_->GetTitleBottomPadding().Value(), theme_->GetTitleBottomPadding().Unit()); in InitializeTitle()
272 spaceBox->SetHeight(theme_->GetTitleBottomPadding().Value(), theme_->GetTitleBottomPadding().Unit()); in InitializeTitle()
280 if (!theme_) { in InitializeColumns()
287 column->SetTheme(theme_->clone()); in InitializeColumns()
380 if (!theme_) { in InitializeLunar()
[all...]
H A Dpicker_option_component.cpp48 if (!theme_) { in Initialize()
52 auto style = GetDisappear() ? theme_->GetDisappearOptionStyle() : theme_->GetOptionStyle(GetSelected(), false); in Initialize()
63 boxComponent_->SetBackDecoration(theme_->GetOptionDecoration(false)); in Initialize()
H A Dpicker_column_component.cpp43 if (!theme_) { in Initialize()
54 uint32_t showCount = theme_->GetShowOptionCount(); in Initialize()
70 option->SetTheme(theme_->clone()); in Initialize()
88 auto splitterStyle = theme_->GetOptionStyle(true, false); in Initialize()
/foundation/arkui/ace_engine/frameworks/core/components/text_overlay/
H A Dtext_overlay_component.cpp68 theme_ = themeManager->GetTheme<TextOverlayTheme>(); in InitThemeStyle()
69 if (!theme_) { in InitThemeStyle()
72 handleColor_ = theme_->GetHandleColor(); in InitThemeStyle()
73 handleColorInner_ = theme_->GetHandleColorInner(); in InitThemeStyle()
74 handleDiameter_ = theme_->GetHandleDiameter(); in InitThemeStyle()
75 handleDiameterInner_ = theme_->GetHandleDiameterInner(); in InitThemeStyle()
76 menuSpacingWithText_ = theme_->GetMenuSpacingWithText(); in InitThemeStyle()
169 if (theme_) { in BuildToolBar()
171 backDecoration->SetBackgroundColor(theme_->GetMenuBackgroundColor()); in BuildToolBar()
172 backDecoration->SetBorder(theme_ in BuildToolBar()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/linear_indicator/
H A Dlinear_indicator_pattern.cpp26 if (theme_) { in CreateLayoutProperty()
27 property->UpdatePadding({ CalcLength(theme_->GetPaddingLeft()), CalcLength(theme_->GetPaddingRight()), in CreateLayoutProperty()
28 CalcLength(theme_->GetPaddingTop()), CalcLength(theme_->GetPaddingBottom()) }); in CreateLayoutProperty()
29 property->UpdateSpace(theme_->GetDefaultSpace()); in CreateLayoutProperty()
30 property->UpdateUserDefinedIdealSize(CalcSize(std::nullopt, CalcLength(theme_->GetDefaultHeight()))); in CreateLayoutProperty()
48 CHECK_NULL_VOID(theme_); in UpdateProgressNode()
50 std::size_t newCount = layoutProperty->GetProgressCountValue(theme_->GetDefaultProgressCount()); in UpdateProgressNode()
66 controller_->Loop(layoutProperty->GetLoopValue(theme_ in UpdateProgressNode()
[all...]
H A Dlinear_indicator_pattern.h38 theme_ = pipeline->GetThemeManager()->GetTheme<LinearIndicatorTheme>(); in LinearIndicatorPattern()
39 CHECK_NULL_VOID(theme_); in LinearIndicatorPattern()
40 strokeWidth_ = theme_->GetDefaultStrokeWidth(); in LinearIndicatorPattern()
41 strokeRadius_ = theme_->GetDefaultStrokeRadius(); in LinearIndicatorPattern()
42 trackBackgroundColor_ = theme_->GetTrackBackgroundColor(); in LinearIndicatorPattern()
43 trackColor_ = theme_->GetTrackColor(); in LinearIndicatorPattern()
80 OHOS::Ace::RefPtr<LinearIndicatorTheme> theme_; member in OHOS::Ace::NG::LinearIndicatorPattern
/foundation/arkui/ui_lite/interfaces/kits/themes/
H A Dtheme_manager.h76 return theme_; in GetCurrent()
80 ThemeManager() : theme_(nullptr) {} in ThemeManager()
83 theme_ = nullptr; in ~ThemeManager()
86 Theme* theme_; member in OHOS::ThemeManager
/foundation/arkui/ace_engine/frameworks/core/components/select_popup/
H A Dselect_popup_component.h62 return theme_->GetPopupRRectSize(); in GetPopupRRectSize()
67 return theme_->GetNormalPadding(); in GetNormalPadding()
72 return theme_->GetPopupMinWidth(); in GetPopupMinWidth()
77 return theme_->GetPopupBorderWidth(); in GetBorderWidth()
82 return theme_->GetPopupShadowWidth(); in GetShadowWidth()
145 return theme_->GetTitleStyle(); in GetTitleStyle()
150 theme_->SetTitleStyle(style); in SetTitleStyle()
155 return theme_->IsTV(); in IsTV()
175 return theme_->GetHorizontalSpacing(); in GetHorizontalSpacing()
180 return theme_ in GetVerticalSpacing()
312 RefPtr<SelectTheme> theme_; global() member in OHOS::Ace::SelectPopupComponent
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_select.cpp53 theme_ = GetTheme<SelectTheme>(); in InitializeStyle()
54 if (theme_ && selectComponent_) { in InitializeStyle()
55 selectComponent_->SetClickedColor(theme_->GetClickedColor()); in InitializeStyle()
56 selectComponent_->SetDisabledColor(theme_->GetDisabledColor()); in InitializeStyle()
57 selectComponent_->SetSelectedColor(theme_->GetSelectedColor()); in InitializeStyle()
58 selectComponent_->SetOptionSize(theme_->GetOptionSize()); in InitializeStyle()
59 selectComponent_->SetRRectSize(theme_->GetRRectSize()); in InitializeStyle()
60 selectComponent_->SetPopupBorderWidth(theme_->GetPopupBorderWidth()); in InitializeStyle()
61 selectComponent_->SetPopupShadowWidth(theme_->GetPopupShadowWidth()); in InitializeStyle()
62 selectComponent_->SetFontFamily(theme_ in InitializeStyle()
[all...]
H A Ddom_option.cpp42 theme_ = GetTheme<SelectTheme>(); in ResetInitializedStyle()
43 if (theme_) { in ResetInitializedStyle()
44 selectOptionComponent_->SetClickedColor(theme_->GetClickedColor()); in ResetInitializedStyle()
45 selectOptionComponent_->SetSelectedColor(theme_->GetSelectedColor()); in ResetInitializedStyle()
46 selectOptionComponent_->SetSelectedBackgroundColor(theme_->GetSelectedColor()); in ResetInitializedStyle()
47 selectOptionComponent_->SetFontColor(theme_->GetFontColor()); in ResetInitializedStyle()
48 selectOptionComponent_->SetFontSize(theme_->GetFontSize()); in ResetInitializedStyle()
49 selectOptionComponent_->SetFontWeight(theme_->GetFontWeight()); in ResetInitializedStyle()
50 selectOptionComponent_->SetFontFamily(theme_->GetFontFamily()); in ResetInitializedStyle()
51 selectOptionComponent_->SetTextDecoration(theme_ in ResetInitializedStyle()
[all...]
H A Ddom_tool_bar_item.cpp43 theme_ = GetTheme<ToolBarTheme>(); in ResetInitializedStyle()
44 if (!theme_) { in ResetInitializedStyle()
54 const Size& iconSize = theme_->GetIconSize(); in InitImageStyle()
62 textStyle_ = theme_->GetToolBarTextStyle(); in InitTextStyle()
70 toolBarItemChild_->SetPressColor(theme_->GetPressColor()); in InitializedToolBarItemChild()
71 toolBarItemChild_->SetRadius(theme_->GetRadius()); in InitializedToolBarItemChild()
72 toolBarItemChild_->SetFocusColor(theme_->GetFocusColor()); in InitializedToolBarItemChild()
73 toolBarItemChild_->SetHoverColor(theme_->GetHoverColor()); in InitializedToolBarItemChild()
81 declaration_->GetBackDecoration()->SetBackgroundColor(theme_->GetItemBackgroundColor()); in InitializedToolBarItemChild()
207 children.emplace_back(SetPadding(imageChild_, Edge(theme_ in BuildCommonComponent()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/option/
H A Doption_component.h139 return theme_->GetClickedColor(); in GetClickedColor()
143 theme_->SetClickedColor(clickedColor); in SetClickedColor()
148 return theme_->GetSelectedColor(); in GetSelectedColor()
152 theme_->SetSelectedColor(selectedColor); in SetSelectedColor()
157 return theme_->GetFontColor(); in GetFontColor()
161 theme_->SetFontColor(fontColor); in SetFontColor()
166 return theme_->GetFontWeight(); in GetFontWeight()
170 theme_->SetFontWeight(fontWeight); in SetFontWeight()
175 return theme_->GetFontFamily(); in GetFontFamily()
179 theme_ in SetFontFamily()
427 RefPtr<SelectTheme> theme_; global() member in OHOS::Ace::OptionComponent
[all...]
H A Doption_component.cpp33 theme_ = theme->clone(); in OptionComponent()
34 theme_->SetFontWeight(FontWeight::W400); in OptionComponent()
47 theme_ = selectTheme->clone(); in InitTheme()
48 theme_->SetFontWeight(FontWeight::W400); in InitTheme()
105 if (GetDisabled() && theme_) { in Initialize()
106 textStyle.SetTextColor(theme_->GetFocusedTextDisableColor()); in Initialize()
107 } else if (GetSelected() && theme_) { in Initialize()
108 textStyle.SetTextColor(theme_->GetSelectedColorText()); in Initialize()
/foundation/arkui/ace_engine/frameworks/core/components/track/
H A Drender_track.cpp39 theme_ = GetTheme<ProgressTheme>(); in Update()
169 auto defaultWidth = theme_ != nullptr ? NormalizeToPx(theme_->GetTrackWidth()) : 0.0; in Measure()
194 double diameter = theme_ != nullptr ? NormalizeToPx(theme_->GetRingDiameter()) : 0.0; in Measure()
211 double diameter = theme_ != nullptr ? NormalizeToPx(theme_->GetScaleRingDiameter()) : 0.0; in Measure()
228 double diameter = theme_ != nullptr ? NormalizeToPx(theme_->GetRingDiameter()) : 0.0; in Measure()
245 double diameter = theme_ ! in Measure()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_v2/list/
H A Drender_list_item.cpp65 theme_ = GetTheme<ListItemTheme>(); in Update()
66 if (!theme_) { in Update()
317 double ratio = theme_ ? theme_->GetItemSwipeRatio() : SWIPE_RATIO; in CalculateFriction()
376 double mass = theme_ ? theme_->GetItemSwipeSpringMass() : SWIPE_SPRING_MASS; in StartSpringMotion()
377 double stiffness = theme_ ? theme_->GetItemSwipeSpringStiffness() : SWIPE_SPRING_STIFFNESS; in StartSpringMotion()
378 double damping = theme_ ? theme_ in StartSpringMotion()
[all...]

Completed in 12 milliseconds

123