/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/select/ |
H A D | select_theme.h | 64 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() 161 … theme->disabledFontColor_ = theme->fontColor_.BlendOpacity(theme->disabledFontColorAlpha_); in ParsePartOne() 175 … theme->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 D | ArkThemeNativeHelper.ts | 19 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 D | picker_theme.cpp | 24 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 D | picker_theme.h | 50 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() 103 … theme->selectedOptionStyle_.SetAdaptTextSize(theme->selectedOptionStyle_.GetFontSize(), in InitializeItemTextStyles() 113 theme->normalOptionStyle_.SetAdaptTextSize(theme->normalOptionStyle_.GetFontSize(), in InitializeItemTextStyles() 123 … theme->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 D | checkable_theme.h | 236 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 D | checkable_component.cpp | 33 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 D | dialog_theme.cpp | 71 theme->expandDisplay_ = false; in ParsePattern() 82 theme->buttonLandscapeMaxFontScale_ = in ParsePattern() 99 theme->titleMaxLines_ = in ParsePattern() 129 …theme->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 D | calendar_theme.h | 141 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 D | progress_theme.h | 45 return theme; in Build() 49 return theme; in Build() 84 theme->trackCachedColor_ = theme->trackSelectedColor_ in ParsePattern() 103 … theme->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 D | dom_calendar.cpp | 214 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 D | navigation_bar_theme.h | 41 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() 105 … theme->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 D | textfield_theme.h | 49 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() 177 … theme->disabledIconFillColor_ = theme->bgColor_.BlendOpacity(theme->disableOpacityRatio_); in ParsePatternSubThirdPart() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/ |
H A D | security_component_theme.h | 46 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 D | menu_theme.h | 58 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 D | tab_theme.h | 52 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 D | button_theme.h | 44 return theme; in Build() 47 return theme; in Build() 64 theme->disabledColor_ = in ParsePattern() 70 theme->textDisabledColor_ = in ParsePattern() 78 theme->downloadBorderColor_ = in ParsePattern() 108 … theme->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() 153 … theme->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 D | advanced_pattern_theme.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() 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 D | indexer_theme.h | 48 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 D | swiper_indicator_theme.h | 81 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 D | list_item_theme.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() 72 theme->defaultPadding_ = Edge(LISTITEMGROUP_PADDING); in ParsePattern() 74 theme->defaultBorderRadius_.SetRadius(theme->borderRadiusValue_); in ParsePattern() 75 … theme->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 D | calendar_model_impl.cpp | 33 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 D | checkboxgroup_layout_algorithm_test_ng.cpp | 92 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 D | rating_component.cpp | 24 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 D | app_bar_theme.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() 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 D | pattern_lock_theme.h | 57 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 …]
|