Home
last modified time | relevance | path

Searched refs:themeStyle (Results 1 - 25 of 26) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/core/components/theme/
H A Dapp_theme.cpp26 auto themeStyle = themeConstants->GetThemeStyle(); in Build() local
27 if (!themeStyle) { in Build()
31 theme->backgroundColor_ = themeStyle->GetAttr<Color>(THEME_ATTR_BG_COLOR, Color::WHITE); in Build()
32 auto color = themeStyle->GetAttr<Color>("focus_color", Color()); in Build()
37 auto hoverColor = themeStyle->GetAttr<Color>(THEME_ATTR_HOVER_COLOR, Color::FromRGBO(0, 0, 0, 0.05)); in Build()
H A Dshadow_theme.cpp54 void ShadowTheme::SetThemeStyle(const RefPtr<ThemeStyle>& themeStyle) in SetThemeStyle() argument
56 themeStyle_ = themeStyle; in SetThemeStyle()
65 const RefPtr<ThemeStyle>& themeStyle, ShadowStyle shadowStyle, const std::string& name, bool isDark) in ParseShadowParam()
75 auto elevation = themeStyle->GetAttr<double>(elevationName, 0.0); in ParseShadowParam()
78 auto offsetX = themeStyle->GetAttr<double>(offsetXName, 0.0); in ParseShadowParam()
80 auto offsetY = themeStyle->GetAttr<double>(offsetYName, 0.0); in ParseShadowParam()
84 auto color = themeStyle->GetAttr<Color>(colorName, Color()); in ParseShadowParam()
86 auto radius = themeStyle->GetAttr<double>(radiusName, 0.0); in ParseShadowParam()
64 ParseShadowParam( const RefPtr<ThemeStyle>& themeStyle, ShadowStyle shadowStyle, const std::string& name, bool isDark) ParseShadowParam() argument
H A Dblur_style_theme.cpp50 void BlurStyleTheme::SetThemeStyle(const RefPtr<ThemeStyle>& themeStyle) in SetThemeStyle() argument
52 themeStyle_ = themeStyle; in SetThemeStyle()
56 const RefPtr<ThemeStyle>& themeStyle, const std::string& styleName, bool isDark) const in ParseBlurParam()
75 param.radius = themeStyle->GetAttr<double>(radiusFullName, 0.0); in ParseBlurParam()
76 param.saturation = themeStyle->GetAttr<double>(saturationFullName, 0.0); in ParseBlurParam()
77 param.brightness = themeStyle->GetAttr<double>(brightnessFullName, 0.0); in ParseBlurParam()
78 param.maskColor = themeStyle->GetAttr<Color>(maskColorFullName, Color::WHITE); in ParseBlurParam()
55 ParseBlurParam( const RefPtr<ThemeStyle>& themeStyle, const std::string& styleName, bool isDark) const ParseBlurParam() argument
H A Dshadow_theme.h45 void SetThemeStyle(const RefPtr<ThemeStyle>& themeStyle);
50 const RefPtr<ThemeStyle>& themeStyle, ShadowStyle shadowStyle, const std::string& name, bool isDark);
H A Dblur_style_theme.h41 void SetThemeStyle(const RefPtr<ThemeStyle>& themeStyle);
45 BlurParameter ParseBlurParam(const RefPtr<ThemeStyle>& themeStyle, const std::string& name, bool isDark) const;
H A Dtheme_manager_impl.cpp191 auto themeStyle = themeConstants_->GetThemeStyle(); in GetBackgroundColor() local
193 if (!themeStyle) { in GetBackgroundColor()
196 if (themeStyle->HasAttr(THEME_ATTR_BG_COLOR) && !themeConstants_->HasCustomStyle(THEME_APP_BACKGROUND)) { in GetBackgroundColor()
198 return themeStyle->GetAttr<Color>(THEME_ATTR_BG_COLOR, Color::BLACK); in GetBackgroundColor()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_theme.h48 void ParsePattern(const RefPtr<ThemeConstants>& themeStyle, const RefPtr<SwiperTheme>& theme) const in ParsePattern() argument
50 if (!themeStyle) { in ParsePattern()
53 auto pattern = themeStyle->GetPatternByName(THEME_PATTERN_SWIPER); in ParsePattern()
/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Dpicker_theme.h53 auto themeStyle = themeConstants->GetThemeStyle(); in Build() local
54 if (!themeStyle) { in Build()
58 InitializeTextStyles(theme, themeStyle); in Build()
66 Parse(themeStyle, theme); in Build()
73 void InitializeButtonTextStyles(const RefPtr<PickerTheme>& theme, const RefPtr<ThemeStyle>& themeStyle) const in InitializeButtonTextStyles()
75 auto pattern = themeStyle->GetAttr<RefPtr<ThemeStyle>>("picker_pattern", nullptr); in InitializeButtonTextStyles()
82 void InitializeTitleTextStyles(const RefPtr<PickerTheme>& theme, const RefPtr<ThemeStyle>& themeStyle) const in InitializeTitleTextStyles()
84 auto pattern = themeStyle->GetAttr<RefPtr<ThemeStyle>>("picker_pattern", nullptr); in InitializeTitleTextStyles()
94 void InitializeItemTextStyles(const RefPtr<PickerTheme>& theme, const RefPtr<ThemeStyle>& themeStyle) const in InitializeItemTextStyles()
96 auto pattern = themeStyle in InitializeItemTextStyles()
[all...]
/foundation/arkui/ace_engine/frameworks/core/animation/
H A Danimation_util.h84 auto themeStyle = themeConstants->GetThemeStyle(); in ParseThemeReference() local
85 if (!themeStyle) { in ParseThemeReference()
88 return themeStyle->GetAttr<T>(parseResult.refAttr, errorValue); in ParseThemeReference()
/foundation/arkui/ace_engine/frameworks/core/components/drag_bar/
H A Ddrag_bar_theme.h43 auto themeStyle = themeConstants->GetThemeStyle(); in Build() local
44 if (!themeStyle) { in Build()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/linear_indicator/
H A Dlinear_indicator_theme.h48 void ParsePattern(const RefPtr<ThemeConstants>& themeStyle, const RefPtr<LinearIndicatorTheme>& theme) const in ParsePattern() argument
50 if (!themeStyle) { in ParsePattern()
53 auto pattern = themeStyle->GetPatternByName(THEME_PATTERN_LINEAR_INDICATOR); in ParsePattern()
/foundation/arkui/ace_engine/frameworks/core/common/agingadapation/
H A Daging_adapation_dialog_theme.h54 auto themeStyle = themeConstants->GetThemeStyle(); in Build() local
55 if (!themeStyle) { in Build()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/container_modal/
H A Dcontainer_modal_theme.h91 void ParsePattern(const RefPtr<ThemeStyle>& themeStyle, const RefPtr<ContainerModalTheme>& theme) const in ParsePattern() argument
93 if (!themeStyle) { in ParsePattern()
96 auto pattern = themeStyle->GetAttr<RefPtr<ThemeStyle>>(THEME_PATTERN_CONTAINER_MODAL, nullptr); in ParsePattern()
/foundation/arkui/ace_engine/frameworks/core/components/list/
H A Dlist_item_theme.h58 void ParsePattern(const RefPtr<ThemeStyle>& themeStyle, const RefPtr<ListItemTheme>& theme) const in ParsePattern() argument
60 if (!themeStyle) { in ParsePattern()
63 auto pattern = themeStyle->GetAttr<RefPtr<ThemeStyle>>("list_item_pattern", nullptr); in ParsePattern()
/foundation/arkui/ace_engine/frameworks/core/components/text_overlay/
H A Dtext_overlay_theme.h58 void ParsePattern(const RefPtr<ThemeStyle>& themeStyle, const RefPtr<TextOverlayTheme>& theme) const in ParsePattern() argument
60 if (!themeStyle || !theme) { in ParsePattern()
63 auto pattern = themeStyle->GetAttr<RefPtr<ThemeStyle>>("text_overlay_pattern", nullptr); in ParsePattern()
/foundation/arkui/ace_engine/frameworks/core/components/stepper/
H A Dstepper_theme.h52 auto themeStyle = themeConstants->GetThemeStyle(); in Build() local
53 if (themeStyle) { in Build()
54 auto pattern = themeStyle->GetAttr<RefPtr<ThemeStyle>>("stepper_pattern", nullptr); in Build()
/foundation/arkui/ace_engine/frameworks/core/components/image/
H A Dimage_theme.h46 auto themeStyle = themeConstants->GetThemeStyle(); in Build() local
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/
H A Dmenu_theme.h66 void ParsePattern(const RefPtr<ThemeStyle>& themeStyle, const RefPtr<MenuTheme>& theme) const in ParsePattern() argument
68 if (!themeStyle) { in ParsePattern()
71 auto pattern = themeStyle->GetAttr<RefPtr<ThemeStyle>>(THEME_PATTERN_SELECT, nullptr); in ParsePattern()
/foundation/arkui/ace_engine/frameworks/core/components/progress/
H A Dprogress_theme.h52 void ParsePattern(const RefPtr<ThemeStyle>& themeStyle, const RefPtr<ProgressTheme>& theme) const in ParsePattern() argument
54 if (!themeStyle) { in ParsePattern()
57 auto pattern = themeStyle->GetAttr<RefPtr<ThemeStyle>>("progress_pattern", nullptr); in ParsePattern()
/foundation/arkui/ace_engine/frameworks/core/components/dialog/
H A Ddialog_theme.cpp22 auto themeStyle = themeConstants->GetThemeStyle(); in ParsePattern() local
23 if (!themeStyle) { in ParsePattern()
115 theme->contentTextStyle_.SetFontSize(themeStyle->GetAttr<Dimension>("content_text_font_size", 16.0_vp)); in ParsePattern()
116 theme->contentMinFontSize_ = themeStyle->GetAttr<Dimension>("content_text_font_size_min", 16.0_vp); in ParsePattern()
/foundation/arkui/ace_engine/frameworks/core/components/declaration/common/
H A Ddeclaration.h523 auto themeStyle = themeConstants->GetThemeStyle(); in ParseThemeReference() local
524 if (!themeStyle) { in ParseThemeReference()
527 return themeStyle->GetAttr<T>(parseResult.refAttr, errorValue); in ParseThemeReference()
/foundation/arkui/ace_engine/frameworks/core/components/text_field/
H A Dtextfield_theme.h60 void ParsePattern(const RefPtr<ThemeStyle>& themeStyle, const RefPtr<TextFieldTheme>& theme) const in ParsePattern() argument
62 if (!themeStyle || !theme) { in ParsePattern()
65 auto pattern = themeStyle->GetAttr<RefPtr<ThemeStyle>>("textfield_pattern", nullptr); in ParsePattern()
/foundation/arkui/ace_engine/adapter/ohos/osal/
H A Dresource_adapter_impl_v2.cpp249 auto themeStyle = resourceThemeStyle.Upgrade(); in PreloadTheme()
250 CHECK_NULL_VOID(themeStyle); in PreloadTheme()
255 themeStyle->PushBackCheckThemeStyleVector(patternName); in PreloadTheme()
259 themeStyle->SetAttr(patternName, value); in PreloadTheme()
263 themeStyle->SetPromiseValue(); in PreloadTheme()
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_node.h963 auto themeStyle = themeConstants->GetThemeStyle(); in ParseThemeReference() local
964 if (!themeStyle) { in ParseThemeReference()
967 return themeStyle->GetAttr<T>(parseResult.refAttr, errorValue); in ParseThemeReference()
/foundation/arkui/ace_engine/test/unittest/core/event/
H A Ddrag_event_test_ng.cpp1749 auto themeStyle = AceType::MakeRefPtr<ThemeStyle>(); in HWTEST_F() local
1750 shadowTheme->SetThemeStyle(themeStyle); in HWTEST_F()
1782 auto themeStyle = AceType::MakeRefPtr<ThemeStyle>(); in HWTEST_F() local
1783 shadowTheme->SetThemeStyle(themeStyle); in HWTEST_F()

Completed in 18 milliseconds

12