Home
last modified time | relevance | path

Searched refs:theme (Results 1 - 25 of 526) sorted by relevance

12345678910>>...22

/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Dpicker_theme.cpp22 void PickerTheme::Builder::Parse(const RefPtr<ThemeStyle>& style, const RefPtr<PickerTheme>& theme) const in Parse()
24 if (!style || !theme) { in Parse()
33 theme->popupDecoration_ = AceType::MakeRefPtr<Decoration>(); in Parse()
34 if (!theme->popupDecoration_) { in Parse()
37 theme->popupDecoration_->SetBackgroundColor(pattern->GetAttr<Color>("popup_bg_color", Color())); in Parse()
38 theme->popupDecoration_->SetBorderRadius(Radius(pattern->GetAttr<Dimension>("picker_popup_radius", 0.0_vp))); in Parse()
39 theme->popupEdge_.SetLeft(pattern->GetAttr<Dimension>("picker_popup_padding", 0.0_vp)); in Parse()
40 theme->popupEdge_.SetTop(pattern->GetAttr<Dimension>("picker_popup_padding", 0.0_vp)); in Parse()
41 theme->popupEdge_.SetRight(pattern->GetAttr<Dimension>("picker_popup_padding", 0.0_vp)); in Parse()
42 theme in Parse()
[all...]
H A Dpicker_theme.h28 #include "core/components/theme/theme.h"
29 #include "core/components/theme/theme_constants.h"
30 #include "core/components/theme/theme_constants_defines.h"
48 RefPtr<PickerTheme> theme = AceType::Claim(new PickerTheme()); in Build() local
50 return theme; in Build()
55 return theme; in Build()
58 InitializeTextStyles(theme, themeStyle); in Build()
59 theme->optionSizeUnit_ = DimensionUnit::VP; in Build()
60 theme in Build()
73 InitializeButtonTextStyles(const RefPtr<PickerTheme>& theme, const RefPtr<ThemeStyle>& themeStyle) const InitializeButtonTextStyles() argument
82 InitializeTitleTextStyles(const RefPtr<PickerTheme>& theme, const RefPtr<ThemeStyle>& themeStyle) const InitializeTitleTextStyles() argument
94 InitializeItemTextStyles(const RefPtr<PickerTheme>& theme, const RefPtr<ThemeStyle>& themeStyle) const InitializeItemTextStyles() argument
144 InitializeTextStyles(const RefPtr<PickerTheme>& theme, const RefPtr<ThemeStyle>& themeStyle) const InitializeTextStyles() argument
156 auto theme = AceType::Claim(new PickerTheme()); clone() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/select/
H A Dselect_theme.h24 #include "core/components/theme/theme.h"
25 #include "core/components/theme/theme_constants.h"
26 #include "core/components/theme/theme_constants_defines.h"
63 RefPtr<SelectTheme> theme = AceType::Claim(new SelectTheme()); in Build() local
65 return theme; in Build()
67 ParseNewPattern(themeConstants, theme); in Build()
68 Parse(themeConstants, theme); in Build()
69 return theme; in Build()
72 void Parse(const RefPtr<ThemeConstants>& themeConstants, const RefPtr<SelectTheme>& theme) cons
160 ParsePartOne(const RefPtr<SelectTheme>& theme, const RefPtr<ThemeStyle>& pattern) const ParsePartOne() argument
211 ParsePartTwo(const RefPtr<SelectTheme>& theme, const RefPtr<ThemeStyle>& pattern) const ParsePartTwo() argument
260 ParseAttribute(const RefPtr<SelectTheme>& theme, const RefPtr<ThemeStyle>& pattern) const ParseAttribute() argument
313 RefPtr<SelectTheme> theme = AceType::Claim(new SelectTheme()); clone() local
320 ClonePartOne(RefPtr<SelectTheme>& theme) ClonePartOne() argument
363 ClonePartTwo(RefPtr<SelectTheme>& theme) ClonePartTwo() argument
408 ClonePartThree(RefPtr<SelectTheme>& theme) ClonePartThree() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/checkable/
H A Dcheckable_theme.h21 #include "core/components/theme/theme.h"
22 #include "core/components/theme/theme_constants.h"
23 #include "core/components/theme/theme_constants_defines.h"
218 RefPtr<CheckboxTheme> theme = AceType::Claim(new CheckboxTheme()); in Build() local
221 return theme; in Build()
223 ParsePattern(themeConstants, theme); in Build()
224 return theme; in Build()
228 void ParsePattern(const RefPtr<ThemeConstants>& themeConstants, const RefPtr<CheckboxTheme>& theme) const in ParsePattern()
235 theme in ParsePattern()
320 RefPtr<SwitchTheme> theme = AceType::Claim(new SwitchTheme()); Build() local
422 RefPtr<RadioTheme> theme = AceType::Claim(new RadioTheme()); Build() local
[all...]
H A Dcheckable_component.cpp31 CheckableComponent::CheckableComponent(CheckableType type, const RefPtr<CheckableTheme>& theme) : checkableType_(type) in CheckableComponent() argument
33 ApplyTheme(theme); in CheckableComponent()
36 void CheckableComponent::ApplyTheme(const RefPtr<CheckableTheme>& theme) in ApplyTheme() argument
38 if (theme) { in ApplyTheme()
39 width_ = theme->GetWidth(); in ApplyTheme()
40 height_ = theme->GetHeight(); in ApplyTheme()
41 hotZoneHorizontalPadding_ = theme->GetHotZoneHorizontalPadding(); in ApplyTheme()
42 hotZoneVerticalPadding_ = theme->GetHotZoneVerticalPadding(); in ApplyTheme()
43 aspectRatio_ = theme->GetAspectRatio(); in ApplyTheme()
44 pointColor_ = theme in ApplyTheme()
84 CheckboxComponent(const RefPtr<CheckboxTheme>& theme) CheckboxComponent() argument
88 SwitchComponent(const RefPtr<SwitchTheme>& theme) SwitchComponent() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/dialog/
H A Ddialog_theme.cpp20 const RefPtr<ThemeConstants>& themeConstants, const RefPtr<DialogTheme>& theme) const in ParsePattern()
30 theme->titleTextStyle_.SetTextColor(dialogPattern->GetAttr<Color>("title_text_color", Color::BLACK)); in ParsePattern()
31 theme->titleTextStyle_.SetFontSize(dialogPattern->GetAttr<Dimension>("title_text_font_size", 20.0_fp)); in ParsePattern()
32 theme->titleTextStyle_.SetFontWeight(FontWeight::MEDIUM); in ParsePattern()
33 theme->subtitleTextStyle_.SetTextColor(dialogPattern->GetAttr<Color>("subtitle_text_color", Color::BLACK)); in ParsePattern()
35 theme->subtitleTextStyle_.SetFontSize(dialogPattern->GetAttr<Dimension>("subtitle_text_font_size", 14.0_fp)); in ParsePattern()
36 theme->contentTextStyle_.SetTextColor(dialogPattern->GetAttr<Color>("content_text_color", Color::BLACK)); in ParsePattern()
37 theme->contentTextStyle_.SetFontSize(dialogPattern->GetAttr<Dimension>("content_text_font_size", 16.0_fp)); in ParsePattern()
38 theme->buttonBackgroundColor_ = dialogPattern->GetAttr<Color>("button_bg_color", Color::BLACK); in ParsePattern()
40 theme in ParsePattern()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/rating/
H A Drating_component.cpp22 void RatingComponent::SetResIdFromTheme(const RefPtr<RatingTheme>& theme) in SetResIdFromTheme() argument
24 if (!theme) { in SetResIdFromTheme()
27 foregroundResourceId_ = theme->GetForegroundResourceId(); in SetResIdFromTheme()
28 secondaryResourceId_ = theme->GetSecondaryResourceId(); in SetResIdFromTheme()
29 backgroundResourceId_ = theme->GetBackgroundResourceId(); in SetResIdFromTheme()
32 void RatingComponent::SetMiniResIdFromTheme(const RefPtr<RatingTheme>& theme) in SetMiniResIdFromTheme() argument
34 if (!theme) { in SetMiniResIdFromTheme()
37 foregroundResourceId_ = theme->GetForegroundMiniResourceId(); in SetMiniResIdFromTheme()
38 secondaryResourceId_ = theme->GetSecondaryMiniResourceId(); in SetMiniResIdFromTheme()
39 backgroundResourceId_ = theme in SetMiniResIdFromTheme()
52 SetThemeStyle(const RefPtr<RatingTheme>& theme) SetThemeStyle() argument
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_calendar.cpp213 [](const std::string& value, CalendarThemeStructure& theme, const DomCalendar& node) { in SetSpecializedStyle()
214 theme.boundaryColOffset = node.ParseDimension(value); in SetSpecializedStyle()
217 [](const std::string& value, CalendarThemeStructure& theme, const DomCalendar& node) { in SetSpecializedStyle()
218 theme.boundaryRowOffset = node.ParseDimension(value); in SetSpecializedStyle()
220 { "columnSpace", [](const std::string& value, CalendarThemeStructure& theme, in SetSpecializedStyle()
221 const DomCalendar& node) { theme.colSpace = node.ParseDimension(value); } }, in SetSpecializedStyle()
223 [](const std::string& value, CalendarThemeStructure& theme, const DomCalendar& node) { in SetSpecializedStyle()
224 theme.dailyFiveRowSpace = node.ParseDimension(value); in SetSpecializedStyle()
227 [](const std::string& value, CalendarThemeStructure& theme, const DomCalendar& node) { in SetSpecializedStyle()
228 theme in SetSpecializedStyle()
361 auto theme = calendarComponent_->GetCalendarTheme(); SetSpecializedStyle() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/progress/
H A Dprogress_theme.h22 #include "core/components/theme/theme.h"
23 #include "core/components/theme/theme_constants.h"
24 #include "core/components/theme/theme_constants_defines.h"
43 RefPtr<ProgressTheme> theme = AceType::Claim(new ProgressTheme()); in Build() local
45 return theme; in Build()
48 ParsePattern(themeConstants->GetThemeStyle(), theme); in Build()
49 return theme; in Build()
52 void ParsePattern(const RefPtr<ThemeStyle>& themeStyle, const RefPtr<ProgressTheme>& theme) const in ParsePattern()
65 theme in ParsePattern()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/text_field/
H A Dtextfield_theme.h25 #include "core/components/theme/theme.h"
26 #include "core/components/theme/theme_constants.h"
27 #include "core/components/theme/theme_constants_defines.h"
47 RefPtr<TextFieldTheme> theme = AceType::Claim(new TextFieldTheme()); in Build() local
49 return theme; in Build()
51 theme->height_ = themeConstants->GetDimension(THEME_TEXTFIELD_HEIGHT); in Build()
52 ParsePattern(themeConstants->GetThemeStyle(), theme); in Build()
53 theme->showSymbolId_ = themeConstants->GetSymbolByName("sys.symbol.eye"); in Build()
54 theme in Build()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/declaration/piece/
H A Dpiece_declaration.cpp35 auto theme = GetTheme<PieceTheme>(); in InitializeStyle() local
36 if (!theme) { in InitializeStyle()
44 sizeStyle.height = theme->GetHeight(); in InitializeStyle()
49 paddingStyle.padding.SetLeft(theme->GetPaddingHorizontal()); in InitializeStyle()
50 paddingStyle.padding.SetRight(theme->GetPaddingHorizontal()); in InitializeStyle()
51 paddingStyle.padding.SetTop(theme->GetPaddingVertical()); in InitializeStyle()
52 paddingStyle.padding.SetBottom(theme->GetPaddingVertical()); in InitializeStyle()
57 borderStyle.border.SetBorderRadius(Radius(theme->GetHeight() / 2.0)); in InitializeStyle()
59 GetBackDecoration()->SetBackgroundColor(theme->GetBackgroundColor()); in InitializeStyle()
60 SetTextStyle(theme in InitializeStyle()
67 InitializeStyle(RefPtr<PieceTheme>& theme) InitializeStyle() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/list/
H A Dlist_item_theme.h19 #include "core/components/theme/theme.h"
20 #include "core/components/theme/theme_constants.h"
21 #include "core/components/theme/theme_constants_defines.h"
49 RefPtr<ListItemTheme> theme = AceType::Claim(new ListItemTheme()); in Build() local
51 return theme; in Build()
53 ParsePattern(themeConstants->GetThemeStyle(), theme); in Build()
54 return theme; in Build()
58 void ParsePattern(const RefPtr<ThemeStyle>& themeStyle, const RefPtr<ListItemTheme>& theme) const in ParsePattern()
68 theme in ParsePattern()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/navigation_bar/
H A Dnavigation_bar_theme.h21 #include "core/components/theme/theme.h"
22 #include "core/components/theme/theme_constants.h"
23 #include "core/components/theme/theme_constants_defines.h"
39 RefPtr<NavigationBarTheme> theme = AceType::Claim(new NavigationBarTheme()); in Build() local
41 return theme; in Build()
43 SetSymbolTheme(themeConstants, theme); in Build()
44 theme->backBtnResourceId_ = InternalResource::ResourceId::TITLEBAR_BACK; in Build()
45 theme->backResourceId_ = themeConstants->GetResourceId(THEME_NAVIGATION_BAR_RESOURCE_ID_BACK); in Build()
46 theme in Build()
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dcalendar_model_impl.cpp31 auto theme = pipeline->GetTheme<CalendarTheme>(); in Create() local
32 CHECK_NULL_VOID(theme); in Create()
33 calendarComponent->SetCalendarTheme(theme); in Create()
111 auto& theme = themePtr->GetCalendarTheme(); in SetCurrentDayStyle() local
114 theme.dayColor = CurrentDayStyleDataImpl.dayColor.value(); in SetCurrentDayStyle()
118 theme.lunarColor = CurrentDayStyleDataImpl.lunarColor.value(); in SetCurrentDayStyle()
122 theme.markLunarColor = CurrentDayStyleDataImpl.markLunarColor.value(); in SetCurrentDayStyle()
126 theme.dayFontSize = CurrentDayStyleDataImpl.dayFontSize.value(); in SetCurrentDayStyle()
130 theme.lunarDayFontSize = CurrentDayStyleDataImpl.lunarDayFontSize.value(); in SetCurrentDayStyle()
134 theme in SetCurrentDayStyle()
216 auto& theme = themePtr->GetCalendarTheme(); SetNonCurrentDayStyle() local
241 auto& theme = themePtr->GetCalendarTheme(); SetTodayStyle() local
266 auto& theme = themePtr->GetCalendarTheme(); SetWeekStyle() local
302 auto& theme = themePtr->GetCalendarTheme(); SetWorkStateStyle() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/button/
H A Dbutton_theme.h21 #include "core/components/theme/theme.h"
22 #include "core/components/theme/theme_constants.h"
23 #include "core/components/theme/theme_constants_defines.h"
42 RefPtr<ButtonTheme> theme = AceType::Claim(new ButtonTheme()); in Build() local
44 return theme; in Build()
46 ParsePattern(themeConstants, theme); in Build()
47 return theme; in Build()
51 void ParsePattern(const RefPtr<ThemeConstants>& themeConstants, const RefPtr<ButtonTheme>& theme) const in ParsePattern()
61 theme in ParsePattern()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/
H A Dsecurity_component_theme.h24 #include "core/components/theme/theme.h"
25 #include "core/components/theme/theme_attributes.h"
26 #include "core/components/theme/theme_constants.h"
27 #include "core/components/theme/theme_style.h"
43 RefPtr<SecurityComponentTheme> theme = AceType::Claim(new SecurityComponentTheme()); in Build() local
46 return theme; in Build()
48 ParsePattern(themeConstants, theme); in Build()
49 return theme; in Build()
175 const RefPtr<SecurityComponentTheme>& theme) in ParseLocationDescriptions()
174 ParseLocationDescriptions(RefPtr<ThemeStyle> securityComponentPattern, const RefPtr<SecurityComponentTheme>& theme) ParseLocationDescriptions() argument
201 ParsePasteDescriptions(RefPtr<ThemeStyle> securityComponentPattern, const RefPtr<SecurityComponentTheme>& theme) ParsePasteDescriptions() argument
208 ParseSaveDescriptions(RefPtr<ThemeStyle> securityComponentPattern, const RefPtr<SecurityComponentTheme>& theme) ParseSaveDescriptions() argument
237 ParsePattern(const RefPtr<ThemeConstants>& themeConstants, const RefPtr<SecurityComponentTheme>& theme) ParsePattern() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/calendar/
H A Dcalendar_theme.h21 #include "core/components/theme/theme.h"
22 #include "core/components/theme/theme_constants.h"
23 #include "core/components/theme/theme_constants_defines.h"
139 RefPtr<CalendarTheme> theme = AceType::Claim(new CalendarTheme()); in Build() local
141 return theme; in Build()
143 theme = AceType::Claim(new CalendarTheme()); in Build()
144 ParseNewPattern(themeConstants, theme); in Build()
145 ParsePattern(themeConstants, theme); in Build()
146 return theme; in Build()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/declaration/textarea/
H A Dtextarea_declaration.cpp44 auto theme = GetTheme<TextFieldTheme>(); in InitializeStyle() local
45 if (!theme || !textFieldDeclaration_) { in InitializeStyle()
50 textFieldDeclaration_->SetCursorColor(theme->GetCursorColor()); in InitializeStyle()
51 textFieldDeclaration_->SetPlaceholderColor(theme->GetPlaceholderColor()); in InitializeStyle()
52 textFieldDeclaration_->SetFocusBgColor(theme->GetFocusBgColor()); in InitializeStyle()
53 textFieldDeclaration_->SetFocusPlaceholderColor(theme->GetFocusPlaceholderColor()); in InitializeStyle()
54 textFieldDeclaration_->SetFocusTextColor(theme->GetFocusTextColor()); in InitializeStyle()
55 textFieldDeclaration_->SetBgColor(theme->GetBgColor()); in InitializeStyle()
56 textFieldDeclaration_->SetTextColor(theme->GetTextColor()); in InitializeStyle()
57 textFieldDeclaration_->SetSelectedColor(theme in InitializeStyle()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_v2/pattern_lock/
H A Dpattern_lock_theme.h21 #include "core/components/theme/theme.h"
22 #include "core/components/theme/theme_constants.h"
23 #include "core/components/theme/theme_constants_defines.h"
24 #include "core/components/theme/theme_manager.h"
55 RefPtr<PatternLockTheme> theme = AceType::Claim(new PatternLockTheme()); in Build() local
57 return theme; in Build()
59 theme->wrongColor_ = Color::RED; in Build()
60 theme->correctColor_ = Color::BLUE; in Build()
61 theme in Build()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/theme/
H A Dadvanced_pattern_theme.h21 #include "core/components/theme/theme.h"
22 #include "core/components/theme/theme_constants.h"
23 #include "core/components/theme/theme_constants_defines.h"
43 RefPtr<AdvancedPatternTheme> theme = AceType::Claim(new AdvancedPatternTheme()); in Build() local
45 return theme; in Build()
47 ParseColorPattern(themeConstants, theme); in Build()
48 ParseDimensionPattern(themeConstants, theme); in Build()
49 return theme; in Build()
54 const RefPtr<ThemeConstants>& themeConstants, const RefPtr<AdvancedPatternTheme>& theme) cons in ParseColorPattern()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/search/
H A Dsearch_theme.h24 #include "core/components/theme/theme.h"
25 #include "core/components/theme/theme_constants.h"
26 #include "core/components/theme/theme_constants_defines.h"
46 RefPtr<SearchTheme> theme = AceType::Claim(new SearchTheme()); in Build() local
48 return theme; in Build()
50 ParsePattern(themeConstants, theme); in Build()
51 return theme; in Build()
55 void ParsePattern(const RefPtr<ThemeConstants>& themeConstants, const RefPtr<SearchTheme>& theme) const in ParsePattern()
57 if (!theme) { in ParsePattern()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/
H A Dtab_theme.h21 #include "core/components/theme/theme.h"
22 #include "core/components/theme/theme_constants.h"
23 #include "core/components/theme/theme_constants_defines.h"
50 RefPtr<TabTheme> theme = AceType::Claim(new TabTheme()); in Build() local
52 return theme; in Build()
56 theme->backgroundColor_ = pattern->GetAttr<Color>(PATTERN_BG_COLOR, Color::WHITE); in Build()
57 theme->activeIndicatorColor_ = pattern->GetAttr<Color>("active_indicator_color", Color::WHITE); in Build()
58 theme->focusIndicatorColor_ = pattern->GetAttr<Color>("focus_indicator_color", Color::WHITE); in Build()
59 theme in Build()
116 ParseAttribute(const RefPtr<TabTheme>& theme, const RefPtr<ThemeStyle>& pattern) const ParseAttribute() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/app_bar/
H A Dapp_bar_theme.h27 #include "core/components/theme/theme.h"
28 #include "core/components/theme/theme_attributes.h"
29 #include "core/components/theme/theme_constants.h"
30 #include "core/components/theme/theme_style.h"
46 RefPtr<AppBarTheme> theme = AceType::Claim(new AppBarTheme()); in Build() local
49 return theme; in Build()
51 ParsePattern(themeConstants, theme); in Build()
52 return theme; in Build()
273 static void ParsePattern(const RefPtr<ThemeConstants>& themeConstants, const RefPtr<AppBarTheme>& theme) in ParsePattern() argument
308 initColorParameters(const RefPtr<AppBarTheme>& theme, const RefPtr<ThemeStyle>& appBarPattern) initColorParameters() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/slider/
H A Dslider_component.cpp32 void SliderComponent::SetThemeStyle(const RefPtr<SliderTheme>& theme) in SetThemeStyle() argument
34 if (!theme) { in SetThemeStyle()
37 theme_ = theme; in SetThemeStyle()
38 block_->SetBlockColor(theme->GetBlockColor()); in SetThemeStyle()
39 track_->SetBackgroundColor(theme->GetTrackBgColor()); in SetThemeStyle()
40 track_->SetSelectColor(theme->GetTrackSelectedColor()); in SetThemeStyle()
41 InitStyle(theme); in SetThemeStyle()
44 void SliderComponent::InitStyle(const RefPtr<SliderTheme>& theme) in InitStyle() argument
46 if (!theme) { in InitStyle()
49 block_->SetHoverColor(theme in InitStyle()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/
H A Dmenu_theme.h21 #include "core/components/theme/theme.h"
56 RefPtr<MenuTheme> theme = AceType::Claim(new MenuTheme()); in Build() local
58 return theme; in Build()
60 theme->symbolId_ = themeConstants->GetSymbolByName("sys.symbol.checkmark"); in Build()
61 ParsePattern(themeConstants->GetThemeStyle(), theme); in Build()
62 return theme; in Build()
66 void ParsePattern(const RefPtr<ThemeStyle>& themeStyle, const RefPtr<MenuTheme>& theme) const in ParsePattern()
76 theme->previewMenuMaskColor_ = pattern->GetAttr<Color>("preview_menu_mask_color", Color(0x33182431)); in ParsePattern()
77 theme in ParsePattern()
[all...]

Completed in 17 milliseconds

12345678910>>...22