/foundation/ace/ace_engine/frameworks/core/components/select/ |
D | select_component.h | 71 return theme_->GetClickedColor(); in GetClickedColor() 75 theme_->SetClickedColor(clickedColor); in SetClickedColor() 80 return theme_->GetSelectedColor(); in GetSelectedColor() 84 theme_->SetSelectedColor(selectedColor); in SetSelectedColor() 89 return theme_->GetDisabledColor(); in GetDisabledColor() 93 theme_->SetDisabledColor(disabledColor); in SetDisabledColor() 98 return theme_->IsAllowScale(); in IsAllowScale() 102 theme_->SetAllowScale(value); in SetAllowScale() 107 return theme_->GetFontColor(); in GetTextColor() 111 theme_->SetFontColor(value); in SetTextColor() [all …]
|
D | select_component.cpp | 54 theme_ = selectTheme->clone(); in InitTheme() 55 theme_->SetFontWeight(FontWeight::W500); in InitTheme() 96 textStyle.SetTextColor(theme_->GetDisabledColor()); in Initialize() 100 textStyle.SetFontSize(theme_->GetFontSize()); in Initialize() 101 textStyle.SetFontWeight(theme_->GetFontWeight()); in Initialize() 103 textStyle.SetTextColor(theme_->GetDisabledColor()); in Initialize() 105 textStyle.SetTextColor(theme_->GetFontColor()); in Initialize() 108 StringUtils::StringSpliter(theme_->GetFontFamily(), ',', fontFamilies); in Initialize() 114 textStyle.SetAllowScale(theme_->IsAllowScale()); in Initialize() 115 textStyle.SetTextDecoration(theme_->GetTextDecoration()); in Initialize()
|
/foundation/ace/ace_engine/frameworks/core/components/list/ |
D | tv_interactive_effect.h | 36 if (theme_) { in HandleOnFocus() 37 scaleEnd_ = theme_->GetFocusScale(); // 1.05 in HandleOnFocus() 38 focusDuration_ = theme_->GetFocusAnimationDuration(); // 100.0 in HandleOnFocus() 47 if (theme_) { in HandleOnBlur() 48 scaleEnd_ = theme_->GetFocusScaleLarge(); // 1.0 in HandleOnBlur() 49 alphaBegin_ = theme_->GetClickAlphaEnd(); // 0.9 in HandleOnBlur() 50 alphaEnd_ = theme_->GetClickAlphaBegin(); // 0.2 in HandleOnBlur() 51 focusDuration_ = theme_->GetFocusAnimationDuration(); // 100.0 in HandleOnBlur()
|
D | watch_interactive_effect.h | 34 if (theme_) { in HandleOnClick() 35 scaleEnd_ = scale_ * theme_->GetClickScale(); // scale_ * 0.95; in HandleOnClick() 36 alphaBegin_ = theme_->GetClickAlphaBegin(); // 0.0 in HandleOnClick() 37 alphaEnd_ = theme_->GetClickAlphaEnd(); // 0.1 in HandleOnClick() 38 focusDuration_ = theme_->GetClickAnimationDuration(); // 200.0 in HandleOnClick()
|
D | interactive_effect.h | 101 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_; variable
|
D | interactive_effect.cpp | 54 if (!theme_) { in Initialize() 55 theme_ = themeManager->GetTheme<ListItemTheme>(); in Initialize() 91 if (!theme_) { in TouchDownAnimation() 104 if (!theme_) { in TouchUpAnimation() 116 if (!theme_) { in CancelTouchAnimation() 184 if (!theme_) { in BuildClickAnimation()
|
/foundation/ace/ace_engine/frameworks/core/components/navigation_bar/ |
D | navigation_bar_component_v2.cpp | 45 IconImage backIcon(theme_->GetBackResourceId(), menuIconSize_, menuIconSize_); in BuildMiniLayer() 48 backIcon.image->SetColor(theme_->GetMenuIconColor()); in BuildMiniLayer() 49 …auto backButton = BuildIconButton(theme_, menuZoneSize_, menuZoneSize_, backIcon, backClickMarker_… in BuildMiniLayer() 60 container->AppendChild(BuildPadding(theme_->GetTitleMinPadding().Value())); in BuildMiniLayer() 61 padding.SetLeft(theme_->GetDefaultPaddingStart()); in BuildMiniLayer() 63 container->AppendChild(BuildPadding(theme_->GetMaxPaddingStart().Value())); in BuildMiniLayer() 70 padding.SetRight(theme_->GetDefaultPaddingEnd()); in BuildMiniLayer() 72 padding.SetRight(theme_->GetMaxPaddingStart() - theme_->GetTitleMinPadding()); in BuildMiniLayer() 75 return BuildAnimationContainer(container, theme_->GetHeight(), padding); in BuildMiniLayer() 91 menusBox->SetHeight(theme_->GetHeight().Value(), theme_->GetHeight().Unit()); in BuildFullLayer() [all …]
|
D | navigation_bar_component.cpp | 142 uint32_t mostShowInBarSize = theme_->GetMostMenuItemCountInBar(); in MoveMenuItemsToBar() 158 auto optionButton = BuildIconButton(theme_, menuZoneSize_, menuZoneSize_, menuIcon); in MoveMenuItemsToBar() 159 if (theme_->GetMenuItemPadding().Value() > 0.0 && needAddPadding) { in MoveMenuItemsToBar() 160 container->AppendChild(BuildPadding(theme_->GetMenuItemPadding().Value())); in MoveMenuItemsToBar() 177 IconImage moreIcon(theme_->GetMoreResourceId(), menuIconSize_, menuIconSize_); in AddCollapseMenu() 178 moreIcon.image->SetImageFill(theme_->GetMenuIconColor()); in AddCollapseMenu() 179 moreButton_ = BuildIconButton(theme_, menuZoneSize_, menuZoneSize_, moreIcon); in AddCollapseMenu() 231 menusBox->SetHeight(theme_->GetHeight().Value(), theme_->GetHeight().Unit()); in Build() 244 collapsingNavigationBar->SetMinHeight(theme_->GetHeight()); in Build() 259 …auto startButton = BuildIconButton(theme_, menuZoneSize_, menuZoneSize_, startIcon, startClickMark… in BuildStartZone() [all …]
|
D | navigation_bar_component_v2.h | 29 …: declaration_(declaration), theme_(AceType::MakeRefPtr<ThemeManager>()->GetTheme<NavigationBarThe… in NavigationBarBuilder() 30 id_(id), direction_(direction), menuZoneSize_(theme_->GetMenuZoneSize()), in NavigationBarBuilder() 31 menuIconSize_(theme_->GetMenuIconSize()) in NavigationBarBuilder() 64 RefPtr<NavigationBarTheme> theme_; variable
|
/foundation/ace/ace_engine/frameworks/core/components/text_overlay/ |
D | text_overlay_component.cpp | 73 theme_ = themeManager->GetTheme<TextOverlayTheme>(); in InitThemeStyle() 74 if (!theme_) { in InitThemeStyle() 77 handleColor_ = theme_->GetHandleColor(); in InitThemeStyle() 78 handleColorInner_ = theme_->GetHandleColorInner(); in InitThemeStyle() 79 handleDiameter_ = theme_->GetHandleDiameter(); in InitThemeStyle() 80 handleDiameterInner_ = theme_->GetHandleDiameterInner(); in InitThemeStyle() 81 menuSpacingWithText_ = theme_->GetMenuSpacingWithText(); in InitThemeStyle() 170 if (theme_) { in BuildToolBar() 172 backDecoration->SetBackgroundColor(theme_->GetMenuBackgroundColor()); in BuildToolBar() 173 backDecoration->SetBorder(theme_->GetMenuBorder()); in BuildToolBar() [all …]
|
/foundation/ace/ace_engine/frameworks/core/components/test/json/ |
D | select_creator.cpp | 33 RefPtr<SelectTheme> SelectCreator::theme_ = nullptr; member in OHOS::Ace::SelectCreator 50 theme_ = themeManager->GetTheme<SelectTheme>(); in CreateFromJson() 117 if (!select || !theme_) { in CreateCommonAttribute() 122 select->SetRRectSize(theme_->GetRRectSize()); in CreateCommonAttribute() 123 select->SetPopupShadowWidth(theme_->GetPopupShadowWidth()); in CreateCommonAttribute() 124 select->SetPopupBorderWidth(theme_->GetPopupBorderWidth()); in CreateCommonAttribute() 144 select->SetOptionSize(theme_->GetOptionSize()); in CreateCommonAttribute() 150 select->SetFontSize(theme_->GetFontSize()); in CreateCommonAttribute() 156 select->SetFontFamily(theme_->GetFontFamily()); in CreateCommonAttribute() 164 if (!select || !theme_) { in CreateCommonColorAttribute() [all …]
|
/foundation/ace/ace_engine/frameworks/core/components/option/ |
D | option_component.h | 137 return theme_->GetClickedColor(); in GetClickedColor() 141 theme_->SetClickedColor(clickedColor); in SetClickedColor() 146 return theme_->GetSelectedColor(); in GetSelectedColor() 150 theme_->SetSelectedColor(selectedColor); in SetSelectedColor() 155 return theme_->GetFontColor(); in GetFontColor() 159 theme_->SetFontColor(fontColor); in SetFontColor() 164 return theme_->GetFontWeight(); in GetFontWeight() 168 theme_->SetFontWeight(fontWeight); in SetFontWeight() 173 return theme_->GetFontFamily(); in GetFontFamily() 177 theme_->SetFontFamily(fontFamily); in SetFontFamily() [all …]
|
D | option_component.cpp | 42 theme_ = theme->clone(); in OptionComponent() 43 theme_->SetFontWeight(FontWeight::W400); in OptionComponent() 55 theme_ = selectTheme->clone(); in InitTheme() 56 theme_->SetFontWeight(FontWeight::W400); in InitTheme() 112 if (GetDisabled() && theme_) { in Initialize() 113 textStyle.SetTextColor(theme_->GetFocusedTextDisableColor()); in Initialize() 114 } else if (GetSelected() && theme_) { in Initialize() 115 textStyle.SetTextColor(theme_->GetSelectedColorText()); in Initialize()
|
/foundation/ace/ace_engine/frameworks/core/components/select_popup/ |
D | select_popup_component.h | 62 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_->GetVerticalSpacing(); in GetVerticalSpacing() [all …]
|
D | select_popup_component.cpp | 50 theme_ = selectTheme->clone(); in InitTheme() 228 …titleBox->SetPadding(Edge(theme_->GetTitleLeftPadding().Value(), theme_->GetTitleTopPadding().Valu… in InitializeInnerBox() 229 theme_->GetTitleRightPadding().Value(), theme_->GetTitleBottomPadding().Value(), in InitializeInnerBox() 230 theme_->GetTitleBottomPadding().Unit())); in InitializeInnerBox() 323 back->SetBackgroundColor(theme_->GetBackgroundColor()); in Initialize() 324 back->SetBorderRadius(Radius(theme_->GetPopupRRectSize())); in Initialize()
|
/foundation/ace/ace_engine/frameworks/bridge/common/dom/ |
D | dom_option.cpp | 43 theme_ = GetTheme<SelectTheme>(); in ResetInitializedStyle() 44 if (theme_) { in ResetInitializedStyle() 45 selectOptionComponent_->SetClickedColor(theme_->GetClickedColor()); in ResetInitializedStyle() 46 selectOptionComponent_->SetSelectedColor(theme_->GetSelectedColor()); in ResetInitializedStyle() 47 selectOptionComponent_->SetSelectedBackgroundColor(theme_->GetSelectedColor()); in ResetInitializedStyle() 48 selectOptionComponent_->SetFontColor(theme_->GetFontColor()); in ResetInitializedStyle() 49 selectOptionComponent_->SetFontSize(theme_->GetFontSize()); in ResetInitializedStyle() 50 selectOptionComponent_->SetFontWeight(theme_->GetFontWeight()); in ResetInitializedStyle() 51 selectOptionComponent_->SetFontFamily(theme_->GetFontFamily()); in ResetInitializedStyle() 52 selectOptionComponent_->SetTextDecoration(theme_->GetTextDecoration()); in ResetInitializedStyle() [all …]
|
D | dom_select.cpp | 54 theme_ = GetTheme<SelectTheme>(); in InitializeStyle() 55 if (theme_ && selectComponent_) { in InitializeStyle() 56 selectComponent_->SetClickedColor(theme_->GetClickedColor()); in InitializeStyle() 57 selectComponent_->SetDisabledColor(theme_->GetDisabledColor()); in InitializeStyle() 58 selectComponent_->SetSelectedColor(theme_->GetSelectedColor()); in InitializeStyle() 59 selectComponent_->SetOptionSize(theme_->GetOptionSize()); in InitializeStyle() 60 selectComponent_->SetRRectSize(theme_->GetRRectSize()); in InitializeStyle() 61 selectComponent_->SetPopupBorderWidth(theme_->GetPopupBorderWidth()); in InitializeStyle() 62 selectComponent_->SetPopupShadowWidth(theme_->GetPopupShadowWidth()); in InitializeStyle() 63 selectComponent_->SetFontFamily(theme_->GetFontFamily()); in InitializeStyle() [all …]
|
D | dom_tool_bar_item.cpp | 46 theme_ = GetTheme<ToolBarTheme>(); in ResetInitializedStyle() 47 if (!theme_) { in ResetInitializedStyle() 58 const Size& iconSize = theme_->GetIconSize(); in InitImageStyle() 66 textStyle_ = theme_->GetToolBarTextStyle(); in InitTextStyle() 74 toolBarItemChild_->SetPressColor(theme_->GetPressColor()); in InitializedToolBarItemChild() 75 toolBarItemChild_->SetRadius(theme_->GetRadius()); in InitializedToolBarItemChild() 76 toolBarItemChild_->SetFocusColor(theme_->GetFocusColor()); in InitializedToolBarItemChild() 77 toolBarItemChild_->SetHoverColor(theme_->GetHoverColor()); in InitializedToolBarItemChild() 85 declaration_->GetBackDecoration()->SetBackgroundColor(theme_->GetItemBackgroundColor()); in InitializedToolBarItemChild() 214 children.emplace_back(SetPadding(imageChild_, Edge(theme_->GetIconEdge()))); in BuildCommonComponent() [all …]
|
D | dom_image.cpp | 55 theme_ = GetTheme<ImageTheme>(); in InitializeStyle() 56 if (!theme_) { in InitializeStyle() 90 if (val == SVG_THEME_FILL && image.theme_) { in SetSpecializedStyle() 91 image.imageChild_->SetColor(image.theme_->GetFillColor()); in SetSpecializedStyle()
|
/foundation/graphic/ui/interfaces/kits/themes/ |
D | theme_manager.h | 76 return theme_; in GetCurrent() 80 ThemeManager() : theme_(nullptr) {} in ThemeManager() 83 theme_ = nullptr; in ~ThemeManager() 86 Theme* theme_; variable
|
/foundation/ace/ace_engine/frameworks/core/components/picker/ |
D | picker_base_component.cpp | 418 if (!theme_) { in InitializeTitle() 427 triangle->SetColor(theme_->GetTitleStyle().GetTextColor()); in InitializeTitle() 430 title_->SetTextStyle(theme_->GetTitleStyle()); in InitializeTitle() 446 …spaceBox->SetWidth(theme_->GetTitleBottomPadding().Value(), theme_->GetTitleBottomPadding().Unit()… in InitializeTitle() 447 …spaceBox->SetHeight(theme_->GetTitleBottomPadding().Value(), theme_->GetTitleBottomPadding().Unit(… in InitializeTitle() 455 if (!theme_) { in InitializeColumns() 462 column->SetTheme(theme_->clone()); in InitializeColumns() 554 if (!theme_) { in InitializeLunar() 561 … spaceBox->SetWidth(theme_->GetButtonTopPadding().Value(), theme_->GetButtonTopPadding().Unit()); in InitializeLunar() 562 … spaceBox->SetHeight(theme_->GetButtonTopPadding().Value(), theme_->GetButtonTopPadding().Unit()); in InitializeLunar() [all …]
|
D | picker_option_component.cpp | 48 if (!theme_) { in Initialize() 52 …auto style = GetDisappear() ? theme_->GetDisappearOptionStyle() : theme_->GetOptionStyle(GetSelect… in Initialize() 63 boxComponent_->SetBackDecoration(theme_->GetOptionDecoration(false)); in Initialize()
|
D | picker_column_component.cpp | 46 if (!theme_) { in Initialize() 57 uint32_t showCount = theme_->GetShowOptionCount(); in Initialize() 72 option->SetTheme(theme_->clone()); in Initialize() 89 auto splitterStyle = theme_->GetOptionStyle(true, false); in Initialize()
|
D | picker_option_component.h | 67 return theme_; in GetTheme() 71 theme_ = value; in SetTheme() 137 RefPtr<PickerTheme> theme_; variable
|
/foundation/ace/ace_engine/frameworks/core/components/track/ |
D | render_track.cpp | 42 theme_ = GetTheme<ProgressTheme>(); in Update() 164 auto defaultWidth = theme_ != nullptr ? NormalizeToPx(theme_->GetTrackWidth()) : 0.0; in Measure() 189 double diameter = theme_ != nullptr ? NormalizeToPx(theme_->GetRingDiameter()) : 0.0; in Measure() 206 double diameter = theme_ != nullptr ? NormalizeToPx(theme_->GetScaleRingDiameter()) : 0.0; in Measure() 223 double diameter = theme_ != nullptr ? NormalizeToPx(theme_->GetRingDiameter()) : 0.0; in Measure() 240 double diameter = theme_ != nullptr ? NormalizeToPx(theme_->GetRingDiameter()) : 0.0; in Measure() 259 width = theme_ != nullptr ? NormalizeToPx(theme_->GetTrackWidth()) : 0.0; in Measure()
|