Home
last modified time | relevance | path

Searched refs:theme (Results 1 – 25 of 640) sorted by relevance

12345678910>>...26

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/select/
H A Dselect_theme.h64 return theme; in Build()
68 return theme; in Build()
73 if (!theme) { in Parse()
87 theme->fontColor_ = in Parse()
95 theme->disabledMenuFontColor_ = theme->menuFontColor_.BlendOpacity( in Parse()
119 if (!theme) { in ParseNewPattern()
161theme->disabledFontColor_ = theme->fontColor_.BlendOpacity(theme->disabledFontColorAlpha_); in ParsePartOne()
175theme->disabledSpinnerColor_ = theme->spinnerColor_.BlendOpacity(theme->disabledFontColorAlpha_); in ParsePartOne()
178 theme->spinnerSymbolColor_.BlendOpacity(theme->disabledFontColorAlpha_); in ParsePartOne()
317 ClonePartOne(theme); in clone()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_theme/theme_manager/src/utility/
H A DArkThemeNativeHelper.ts19 theme.colors.brand,
20 theme.colors.warning,
21 theme.colors.alert,
22 theme.colors.confirm,
23 theme.colors.fontPrimary,
25 theme.colors.fontTertiary,
26 theme.colors.fontFourth,
31 theme.colors.fontOnFourth,
32 theme.colors.iconPrimary,
34 theme.colors.iconTertiary,
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Dpicker_theme.cpp24 if (!style || !theme) { in Parse()
34 if (!theme->popupDecoration_) { in Parse()
87 theme->hoverColor_ = pattern->GetAttr<Color>(PATTERN_BG_COLOR_HOVERED, theme->hoverColor_); in Parse()
88 theme->pressColor_ = pattern->GetAttr<Color>(PATTERN_BG_COLOR_PRESSED, theme->pressColor_); in Parse()
92 theme->focusColor_ = pattern->GetAttr<Color>(PATTERN_BG_COLOR_FOCUSED, theme->focusColor_); in Parse()
95 theme->focusOptionStyle_.SetTextColor(theme->selectedOptionStyle_.GetTextColor()); in Parse()
98 theme->disappearOptionStyle_.SetTextColor(theme->normalOptionStyle_.GetTextColor()); in Parse()
99 theme->titleStyle_.SetTextColor(theme->normalOptionStyle_.GetTextColor()); in Parse()
100 theme->dividerColor_ = pattern->GetAttr<Color>("divider_color", theme->dividerColor_); in Parse()
106 theme->showCountLandscape_ = in Parse()
[all …]
H A Dpicker_theme.h50 return theme; in Build()
55 return theme; in Build()
60 theme->lunarWidth_ = in Build()
62 theme->lunarHeight_ = in Build()
66 Parse(themeStyle, theme); in Build()
67 return theme; in Build()
103theme->selectedOptionStyle_.SetAdaptTextSize(theme->selectedOptionStyle_.GetFontSize(), in InitializeItemTextStyles()
113 theme->normalOptionStyle_.SetAdaptTextSize(theme->normalOptionStyle_.GetFontSize(), in InitializeItemTextStyles()
123theme->disappearOptionStyle_.SetAdaptTextSize(theme->disappearOptionStyle_.GetFontSize(), in InitializeItemTextStyles()
133 theme->focusOptionStyle_.SetAdaptTextSize(theme->focusOptionStyle_.GetFontSize(), in InitializeItemTextStyles()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/checkable/
H A Dcheckable_theme.h236 theme->height_ = theme->width_; in ParsePattern()
244 theme->hotZoneVerticalPadding_ = theme->hotZoneHorizontalPadding_; in ParsePattern()
245 theme->defaultHeight_ = theme->defaultWidth_; in ParsePattern()
280 theme->height_ = theme->width_; in SetCheckboxSize()
284 theme->hotZoneVerticalPadding_ = theme->hotZoneHorizontalPadding_; in SetCheckboxSize()
439 theme->height_ = theme->width_; in ParsePattern()
443 theme->defaultHeight_ = theme->defaultWidth_; in ParsePattern()
446 theme->height_ = theme->width_; in ParsePattern()
449 theme->defaultHeight_ = theme->defaultWidth_; in ParsePattern()
473 theme->height_ = theme->width_; in ParsePattern()
[all …]
H A Dcheckable_component.cpp33 ApplyTheme(theme); in CheckableComponent()
38 if (theme) { in ApplyTheme()
39 width_ = theme->GetWidth(); in ApplyTheme()
40 height_ = theme->GetHeight(); in ApplyTheme()
43 aspectRatio_ = theme->GetAspectRatio(); in ApplyTheme()
44 pointColor_ = theme->GetPointColor(); in ApplyTheme()
45 activeColor_ = theme->GetActiveColor(); in ApplyTheme()
47 focusColor_ = theme->GetFocusColor(); in ApplyTheme()
51 needFocus_ = theme->GetNeedFocus(); in ApplyTheme()
53 hoverColor_ = theme->GetHoverColor(); in ApplyTheme()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/dialog/
H A Ddialog_theme.cpp71 theme->expandDisplay_ = false; in ParsePattern()
82 theme->buttonLandscapeMaxFontScale_ = in ParsePattern()
99 theme->titleMaxLines_ = in ParsePattern()
129theme->titleMaxLines_ = titleMaxLines < 0 ? theme->titleMaxLines_ : static_cast<uint32_t>(titleMax… in ParseNewPattern()
150 theme->buttonPaddingLeft_ = in ParseNewPattern()
152 theme->buttonPaddingRight_ = in ParseNewPattern()
170 theme->animationDurationIn_ = in ParseNewPattern()
172 theme->animationDurationOut_ = in ParseNewPattern()
194 theme->alignment_ = in ParseNewPattern()
196 theme->maxSizeScaleLandscape_ = in ParseNewPattern()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/calendar/
H A Dcalendar_theme.h141 return theme; in Build()
145 ParsePattern(themeConstants, theme); in Build()
146 return theme; in Build()
159 theme->cardCalendarTheme_.dayColor = in ParseCardTheme()
161 theme->cardCalendarTheme_.weekColor = in ParseCardTheme()
171 theme->cardCalendarTheme_.todayColor = in ParseCardTheme()
193 theme->calendarTheme_.dayColor = in ParseNormalTheme()
195 theme->calendarTheme_.weekColor = in ParseNormalTheme()
197 theme->calendarTheme_.lunarColor = in ParseNormalTheme()
207 theme->calendarTheme_.todayColor = in ParseNormalTheme()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/progress/
H A Dprogress_theme.h45 return theme; in Build()
49 return theme; in Build()
84 theme->trackCachedColor_ = theme->trackSelectedColor_ in ParsePattern()
103theme->capsuleSelectColor_ = theme->capsuleSelectColor_.BlendOpacity(theme->selectColorAlpha_); in ParsePattern()
116 theme->capsuleBgColor_ = theme->trackBgColor_; in ParsePattern()
117 theme->capsuleSelectColor_ = theme->trackSelectedColor_; in ParsePattern()
118 theme->ringProgressBackgroundColor_ = theme->trackBgColor_; in ParsePattern()
119 theme->ringProgressBeginSideColor_ = theme->trackSelectedColor_; in ParsePattern()
120 theme->ringProgressEndSideColor_ = theme->trackSelectedColor_; in ParsePattern()
124 theme->borderColor_ = theme->capsuleSelectColor_; in ParsePattern()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_calendar.cpp214 theme.boundaryColOffset = node.ParseDimension(value); in SetSpecializedStyle()
218 theme.boundaryRowOffset = node.ParseDimension(value); in SetSpecializedStyle()
228 theme.dailySixRowSpace = node.ParseDimension(value); in SetSpecializedStyle()
260 theme.lunarDayFontSize = node.ParseDimension(value); in SetSpecializedStyle()
304 theme.simpleOffTextColor = node.ParseColor(value); in SetSpecializedStyle()
308 theme.simpleWorkTextColor = node.ParseColor(value); in SetSpecializedStyle()
361 auto theme = calendarComponent_->GetCalendarTheme(); in SetSpecializedStyle() local
362 if (!theme) { in SetSpecializedStyle()
363 theme = GetTheme<CalendarTheme>(); in SetSpecializedStyle()
364 calendarComponent_->SetCalendarTheme(theme); in SetSpecializedStyle()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/navigation_bar/
H A Dnavigation_bar_theme.h41 return theme; in Build()
43 SetSymbolTheme(themeConstants, theme); in Build()
60 theme->mostMenuItemCountInBar_ = in Build()
88 ParsePattern(themeConstants, theme); in Build()
89 return theme; in Build()
105theme->toolbarBgColorWithOpacity_ = theme->toolbarBgColor_.BlendOpacity(theme->toolbarBgAlpha_); in ParsePattern()
108 theme->toolbarItemFocusBorderColor_ = in ParsePattern()
112 theme->toolbarItemBorderRadius_.SetRadius(theme->toolbarItemBorderRadiusValue_); in ParsePattern()
116 theme->toolbarActiveIconColor_ = in ParsePattern()
118 theme->toolbarActiveTextColor_ = in ParsePattern()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text_field/
H A Dtextfield_theme.h49 return theme; in Build()
53 return theme; in Build()
59 if (!themeStyle || !theme) { in ParsePattern()
78 theme->underlinePadding_ = in ParsePatternSubFirstPart()
83 theme->fontWeight_ = in ParsePatternSubFirstPart()
132 theme->errorBorderColor_ = in ParsePatternSubSecondPart()
137 theme->disableUnderlineColor_ = in ParsePatternSubSecondPart()
160 theme->underlineActivedColor_ = in ParsePatternSubSecondPart()
163 theme->underlineTypingColor_ = in ParsePatternSubSecondPart()
177theme->disabledIconFillColor_ = theme->bgColor_.BlendOpacity(theme->disableOpacityRatio_); in ParsePatternSubThirdPart()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/
H A Dsecurity_component_theme.h46 return theme; in Build()
48 ParsePattern(themeConstants, theme); in Build()
49 return theme; in Build()
211 theme->saveDescriptions_.emplace_back( in ParseSaveDescriptions()
213 theme->saveDescriptions_.emplace_back( in ParseSaveDescriptions()
215 theme->saveDescriptions_.emplace_back( in ParseSaveDescriptions()
217 theme->saveDescriptions_.emplace_back( in ParseSaveDescriptions()
248 theme->backgroundTopPadding_ = in ParsePattern()
250 theme->backgroundRightPadding_ = in ParsePattern()
252 theme->backgroundBottomPadding_ = in ParsePattern()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/
H A Dmenu_theme.h58 return theme; in Build()
62 return theme; in Build()
77 theme->bgBlurEffectEnable_ = in ParsePattern()
83 theme->doubleBorderEnable_ = in ParsePattern()
91 theme->filterAnimationDuration_ = 250; in ParsePattern()
92 theme->previewAnimationDuration_ = 300; in ParsePattern()
99 theme->menuAnimationScale_ = 0.4f; in ParsePattern()
100 theme->menuDragAnimationScale_ = 0.95f; in ParsePattern()
101 theme->springMotionResponse_ = 0.416f; in ParsePattern()
104 theme->disappearDuration_ = 250; in ParsePattern()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/
H A Dtab_theme.h52 return theme; in Build()
71 theme->subtabTextDefaultFontSize_ = in Build()
75 theme->bottomTabHorizontalPadding_ = in Build()
93 theme->subTabBarBigFontSizeScale_ = in Build()
97 theme->subTabBarMaxFontSizeScale_ = in Build()
101 theme->subTabBarLeftRightMargin_ = in Build()
108 ParseAttribute(theme, pattern); in Build()
115 return theme; in Build()
123 theme->tabContentAnimationDuration_ = in ParseAttribute()
126 theme->bottomTabBarDefaultHeight_ = in ParseAttribute()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/button/
H A Dbutton_theme.h44 return theme; in Build()
47 return theme; in Build()
64 theme->disabledColor_ = in ParsePattern()
70 theme->textDisabledColor_ = in ParsePattern()
78 theme->downloadBorderColor_ = in ParsePattern()
108theme->textMaxLines_ = maxlines < 0 ? theme->textMaxLines_ : static_cast<uint32_t>(maxlines); in ParseAdditionalStylePattern()
126 theme->agingTextMaxLines_ = in ParseAdditionalStylePattern()
145 theme->textColorMap_.insert( in ParseSubStylePattern()
147 theme->textColorMap_.insert( in ParseSubStylePattern()
153theme->heightMap_.insert(std::pair<ControlSize, Dimension>(ControlSize::NORMAL, theme->height_)); in ParseSubStylePattern()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/theme/
H A Dadvanced_pattern_theme.h43 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()
64 theme->primaryColor_ = advancedPattern->GetAttr<Color>("color_primary", Color()); in ParseColorPattern()
65 theme->clickColor_ = advancedPattern->GetAttr<Color>("color_click_effect", Color()); in ParseColorPattern()
67 theme->hoverColor_ = advancedPattern->GetAttr<Color>("color_hover", Color()); in ParseColorPattern()
72 theme->tertiaryColor_ = advancedPattern->GetAttr<Color>("color_tertiary", Color()); in ParseColorPattern()
73 theme->fourthColor_ = advancedPattern->GetAttr<Color>("color_fourth", Color()); in ParseColorPattern()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/indexer/
H A Dindexer_theme.h48 return theme; in Build()
51 return theme; in Build()
203 theme->popupSeparateColor_ = in ParseColorAttributes()
212 theme->focusBgOutlineColor_ = in ParseColorAttributes()
214 theme->pressedBgAreaColor_ = in ParseColorAttributes()
229 theme->popupTextSize_ = in ParseDimensionAttributes()
231 theme->popupAreaSize_ = in ParseDimensionAttributes()
233 theme->hoverRadiusSize_ = in ParseDimensionAttributes()
235 theme->hoverBgAreaSize_ = in ParseDimensionAttributes()
237 theme->hoverTextAlpha_ = in ParseDimensionAttributes()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/swiper/
H A Dswiper_indicator_theme.h81 return theme; in Build()
88 return theme; in Build()
104 theme->pressPointPadding_ = in ParsePattern()
109 theme->isIndicatorDisabled_ = in ParsePattern()
111 theme->animationCurve_ = in ParsePattern()
113 theme->animationOpacity_ = in ParsePattern()
117 theme->indicatorTextFocusColor_ = in ParsePattern()
141 theme->arrowDisabledAlpha_ = in ParsePattern2()
144 theme->arrowHorizontalMargin_ = in ParsePattern2()
146 theme->arrowVerticalMargin_ = in ParsePattern2()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/list/
H A Dlist_item_theme.h49 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()
72 theme->defaultPadding_ = Edge(LISTITEMGROUP_PADDING); in ParsePattern()
74 theme->defaultBorderRadius_.SetRadius(theme->borderRadiusValue_); in ParsePattern()
75theme->itemBorderRadius_.SetRadius(theme->borderRadiusValue_ - LISTITEM_LISTITEMGROUP_INTERVAL); in ParsePattern()
76 theme->itemLeftPadding_ = LISTITEM_PADDING; in ParsePattern()
77 theme->itemRightPadding_ = LISTITEM_PADDING; in ParsePattern()
84 theme->selectedColorWithAlpha_ = in ParsePattern()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dcalendar_model_impl.cpp33 auto theme = pipeline->GetTheme<CalendarTheme>(); in Create() local
34 CHECK_NULL_VOID(theme); in Create()
35 calendarComponent->SetCalendarTheme(theme); in Create()
113 auto& theme = themePtr->GetCalendarTheme(); in SetCurrentDayStyle() local
218 auto& theme = themePtr->GetCalendarTheme(); in SetNonCurrentDayStyle() local
243 auto& theme = themePtr->GetCalendarTheme(); in SetTodayStyle() local
268 auto& theme = themePtr->GetCalendarTheme(); in SetWeekStyle() local
271 theme.weekColor = style.weekColor.value(); in SetWeekStyle()
286 theme.weekHeight = style.weekHeight.value(); in SetWeekStyle()
290 theme.weekWidth = style.weekWidth.value(); in SetWeekStyle()
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/checkboxgroup/
H A Dcheckboxgroup_layout_algorithm_test_ng.cpp92 auto theme = AceType::MakeRefPtr<CheckboxTheme>(); variable
93 theme->defaultPaddingSize_ = DEFAULT_PADDING_SIZE;
95 theme->hotZoneVerticalPadding_ = VERTICAL_PADDING;
122 auto theme = AceType::MakeRefPtr<CheckboxTheme>(); variable
123 theme->defaultPaddingSize_ = DEFAULT_PADDING_SIZE;
125 theme->hotZoneVerticalPadding_ = VERTICAL_PADDING;
154 auto theme = AceType::MakeRefPtr<CheckboxTheme>(); variable
155 theme->defaultWidth_ = DEFAULT_WIDTH;
156 theme->defaultHeight_ = DEFAULT_HEIGHT;
189 theme->defaultWidth_ = DEFAULT_WIDTH;
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/rating/
H A Drating_component.cpp24 if (!theme) { in SetResIdFromTheme()
34 if (!theme) { in SetMiniResIdFromTheme()
54 if (!theme) { in SetThemeStyle()
57 SetStarNum(theme->GetStarNum()); in SetThemeStyle()
58 SetStepSize(theme->GetStepSize()); in SetThemeStyle()
59 SetDefaultHeight(theme->GetRatingHeight()); in SetThemeStyle()
61 SetFocusBorderWidth(theme->GetFocusBorderWidth()); in SetThemeStyle()
62 SetFocusBorderRadius(theme->GetFocusBorderRadius()); in SetThemeStyle()
63 SetHoverColor(theme->GetHoverColor()); in SetThemeStyle()
64 SetStarColorActive(theme->GetStarColorActive()); in SetThemeStyle()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/app_bar/
H A Dapp_bar_theme.h46 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()
280 initColorParameters(theme, appBarPattern); in ParsePattern()
282 theme->iconSize_ = appBarPattern->GetAttr<Dimension>("icon_size", 0.0_vp); in ParsePattern()
288 theme->bentRadius_ = appBarPattern->GetAttr<Dimension>("bent_radius", 18.0_vp); in ParsePattern()
289 theme->rightAngle_ = appBarPattern->GetAttr<Dimension>("right_angle", 0.0_vp); in ParsePattern()
305 theme->blurRadius_ = appBarPattern->GetAttr<Dimension>("blur_radius", 5.0_vp); in ParsePattern()
315 theme->borderColor_ = appBarPattern->GetAttr<Color>("border_color", Color()); in initColorParameters()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/pattern_lock/
H A Dpattern_lock_theme.h57 return theme; in Build()
59 theme->wrongColor_ = Color::RED; in Build()
60 theme->correctColor_ = Color::BLUE; in Build()
61 theme->hoverColor_ = Color::BLACK; in Build()
62 theme->focusColor_ = Color::BLACK; in Build()
70 theme->regularColor_ = Color::BLACK; in Build()
71 theme->activeColor_ = Color::BLACK; in Build()
73 theme->pathColor_ = Color::BLUE; in Build()
85 ParsePattern(themeConstants, theme); in Build()
87 return theme; in Build()
[all …]

12345678910>>...26