/foundation/arkui/ace_engine/frameworks/core/components/theme/ |
H A D | app_theme.cpp | 26 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 D | shadow_theme.cpp | 54 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 D | blur_style_theme.cpp | 50 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 D | shadow_theme.h | 45 void SetThemeStyle(const RefPtr<ThemeStyle>& themeStyle); 50 const RefPtr<ThemeStyle>& themeStyle, ShadowStyle shadowStyle, const std::string& name, bool isDark);
|
H A D | blur_style_theme.h | 41 void SetThemeStyle(const RefPtr<ThemeStyle>& themeStyle); 45 BlurParameter ParseBlurParam(const RefPtr<ThemeStyle>& themeStyle, const std::string& name, bool isDark) const;
|
H A D | theme_manager_impl.cpp | 191 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 D | swiper_theme.h | 48 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 D | picker_theme.h | 53 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 D | animation_util.h | 84 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 D | drag_bar_theme.h | 43 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 D | linear_indicator_theme.h | 48 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 D | aging_adapation_dialog_theme.h | 54 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 D | container_modal_theme.h | 91 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 D | list_item_theme.h | 58 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 D | text_overlay_theme.h | 58 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 D | stepper_theme.h | 52 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 D | image_theme.h | 46 auto themeStyle = themeConstants->GetThemeStyle(); in Build() local
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/ |
H A D | menu_theme.h | 66 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 D | progress_theme.h | 52 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 D | dialog_theme.cpp | 22 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 D | declaration.h | 523 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 D | textfield_theme.h | 60 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 D | resource_adapter_impl_v2.cpp | 249 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 D | dom_node.h | 963 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 D | drag_event_test_ng.cpp | 1749 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()
|