/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/ |
H A D | dom_calendar.cpp | 231 … const DomCalendar& node) { theme.dayColor = node.ParseColor(value); } }, in SetSpecializedStyle() 242 theme.focusedAreaBackgroundColor = node.ParseColor(value); in SetSpecializedStyle() 257 … const DomCalendar& node) { theme.lunarColor = node.ParseColor(value); } }, in SetSpecializedStyle() 269 … const DomCalendar& node) { theme.markLunarColor = node.ParseColor(value); } }, in SetSpecializedStyle() 272 theme.nonCurrentMonthDayColor = node.ParseColor(value); in SetSpecializedStyle() 276 theme.nonCurrentMonthLunarColor = node.ParseColor(value); in SetSpecializedStyle() 280 theme.nonCurrentMonthOffDayMarkColor = node.ParseColor(value); in SetSpecializedStyle() 284 theme.nonCurrentMonthWorkDayMarkColor = node.ParseColor(value); in SetSpecializedStyle() 304 theme.simpleOffTextColor = node.ParseColor(value); in SetSpecializedStyle() 308 theme.simpleWorkTextColor = node.ParseColor(value); in SetSpecializedStyle() [all …]
|
H A D | dom_chart.cpp | 128 auto backgroundColor = chart.ParseColor(val); in SetSpecializedStyle() 135 chart.backgroundColor_ = chart.ParseColor(val); in SetSpecializedStyle() 200 colors_.push_back(ParseColor(LIGHT_RED_COLOR)); in OnSetStyleFinished() 201 colors_.push_back(ParseColor(LIGHT_GREEN_COLOR)); in OnSetStyleFinished() 202 colors_.push_back(ParseColor(LIGHT_BLUE_COLOR)); in OnSetStyleFinished() 222 getPointInfo.SetFillColor(ParseColor(getPointInfo.GetFillColorString())); in SetPoint() 226 getPointInfo.SetStrokeColor(ParseColor(getPointInfo.GetStrokeColorString())); in SetPoint() 255 pointInfo.SetStrokeColor(ParseColor(pointInfo.GetStrokeColorString())); in SetChart() 258 pointInfo.SetFillColor(ParseColor(pointInfo.GetFillColorString())); in SetChart() 262 segment.SetSegmentColor(ParseColor(segment.GetColorString())); in SetChart() [all …]
|
H A D | dom_textarea.cpp | 160 textarea.textAreaChild_->SetBgColor(textarea.ParseColor(val)); in SetSpecializedStyle() 161 textarea.textAreaChild_->SetFocusBgColor(textarea.ParseColor(val)); in SetSpecializedStyle() 165 textarea.textStyle_.SetTextColor(textarea.ParseColor(val)); in SetSpecializedStyle() 166 textarea.textAreaChild_->SetFocusTextColor(textarea.ParseColor(val)); in SetSpecializedStyle() 178 textarea.textAreaChild_->SetPlaceholderColor(textarea.ParseColor(val)); in SetSpecializedStyle() 179 textarea.textAreaChild_->SetFocusPlaceholderColor(textarea.ParseColor(val)); in SetSpecializedStyle() 189 textarea.textAreaChild_->SetCursorColor(textarea.ParseColor(val)); in SetSpecializedStyle() 193 textarea.textAreaChild_->SetCursorColor(textarea.ParseColor(val)); in SetSpecializedStyle()
|
H A D | dom_toggle.cpp | 80 toggle.toggleChild_->SetCheckedColor(toggle.ParseColor(value)); in SetSpecializedStyle() 82 toggle.toggleChild_->SetBackgroundColor(toggle.ParseColor(value)); in SetSpecializedStyle() 87 toggle.toggleChild_->SetCheckedColor(toggle.ParseColor(value)); in SetSpecializedStyle() 112 toggle.textStyle_.SetTextColor(toggle.ParseColor(value)); in SetSpecializedStyle()
|
H A D | dom_slider.cpp | 116 … [](const std::string& val, DOMSlider& slider) { slider.blockColor_ = slider.ParseColor(val); } }, in SetSpecializedStyle() 117 …COLOR, [](const std::string& val, DOMSlider& slider) { slider.color_ = slider.ParseColor(val); } }, in SetSpecializedStyle() 123 … [](const std::string& val, DOMSlider& slider) { slider.selectColor_ = slider.ParseColor(val); } }, in SetSpecializedStyle()
|
H A D | dom_search.cpp | 152 holder.textField->SetBgColor(holder.node.ParseColor(val)); in SetSpecializedStyle() 153 holder.textField->SetFocusBgColor(holder.node.ParseColor(val)); in SetSpecializedStyle() 157 holder.textField->SetCursorColor(holder.node.ParseColor(val)); in SetSpecializedStyle() 161 auto color = holder.node.ParseColor(val); in SetSpecializedStyle() 234 auto color = holder.node.ParseColor(val); in SetSpecializedStyle()
|
H A D | dom_progress.cpp | 52 …gradient.AddColor(GradientColor(progress.ParseColor(colors->GetArrayItem(index)->ToString().substr( in ParseGradient() 134 progress.backgroundColor_.first = progress.ParseColor(val); in SetSpecializedStyle() 156 progress.color_.first = progress.ParseColor(val); in SetSpecializedStyle() 183 progress.cachedColor_.first = progress.ParseColor(val); in SetSpecializedStyle()
|
H A D | dom_refresh.cpp | 85 progressColor_.first = ParseColor(style.second); in SetSpecializedStyle() 90 backgroundColor_ = ParseColor(style.second); in SetSpecializedStyle()
|
H A D | dom_picker_base.cpp | 240 … TextStyle&, TextStyle&) { normal.SetTextColor(node.ParseColor(val)); } }, in SetOptionStyleOperators() 242 …tStyle&, TextStyle&, TextStyle&, TextStyle& style) { style.SetTextColor(node.ParseColor(val)); } }, in SetOptionStyleOperators() 248 … TextStyle& focus, TextStyle&) { focus.SetTextColor(node.ParseColor(val)); } }, in SetOptionStyleOperators() 271 … TextStyle&, TextStyle&) { select.SetTextColor(node.ParseColor(val)); } }, in SetOptionStyleOperators() 310 decoration->SetBackgroundColor(ParseColor(style.second)); in SetTextBackgroundColor() 394 normal.SetTextColor(node.ParseColor(val)); in SetTextStyleOperators() 395 focus.SetTextColor(node.ParseColor(val)); in SetTextStyleOperators()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/test/unittest/color/ |
H A D | color_test.cpp | 39 Color ParseColor(const std::string& id) in ParseColor() function 74 Color color = ParseColor(COLOR_ID_NORMAL); 91 Color color = ParseColor(COLOR_ID_NOT_FOUND); 107 Color color = ParseColor(COLOR_ID_ERROR[0]); 110 Color color = ParseColor(COLOR_ID_ERROR[i]);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/declaration/button/ |
H A D | button_declaration.cpp | 124 buttonStyle.backgroundColor = button.ParseColor(value); in SetSpecializedStyle() 129 buttonStyle.borderEdge.SetColor(button.ParseColor(value)); in SetSpecializedStyle() 141 buttonStyle.clickedColor = button.ParseColor(value); in SetSpecializedStyle() 149 buttonStyle.disabledColor = button.ParseColor(value); in SetSpecializedStyle() 153 buttonStyle.disabledTextColor = button.ParseColor(value); in SetSpecializedStyle() 157 buttonStyle.focusColor = button.ParseColor(value); in SetSpecializedStyle() 199 buttonStyle.progressColor = button.ParseColor(value); in SetSpecializedStyle() 203 buttonStyle.progressFocusColor = button.ParseColor(value); in SetSpecializedStyle() 212 buttonStyle.textStyle.SetTextColor(button.ParseColor(value)); in SetSpecializedStyle()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/declaration/textfield/ |
H A D | textfield_declaration.cpp | 181 declaration.SetBgColor(declaration.ParseColor(value)); in SetSpecializedStyle() 182 declaration.SetFocusBgColor(declaration.ParseColor(value)); in SetSpecializedStyle() 186 declaration.SetCursorColor(declaration.ParseColor(value)); in SetSpecializedStyle() 190 declaration.GetTextStyle().SetTextColor(declaration.ParseColor(value)); in SetSpecializedStyle() 191 declaration.SetFocusTextColor(declaration.ParseColor(value)); in SetSpecializedStyle() 195 declaration.SetCursorColor(declaration.ParseColor(value)); in SetSpecializedStyle() 262 declaration.SetPlaceholderColor(declaration.ParseColor(value)); in SetSpecializedStyle() 263 declaration.SetFocusPlaceholderColor(declaration.ParseColor(value)); in SetSpecializedStyle()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/input/ |
H A D | dom_textfield_util.cpp | 223 component->SetBgColor(node.ParseColor(value)); in SetChildStyle() 224 component->SetFocusBgColor(node.ParseColor(value)); in SetChildStyle() 228 const DOMInput& node) { component->SetCursorColor(node.ParseColor(value)); } }, in SetChildStyle() 232 style.SetTextColor(node.ParseColor(value)); in SetChildStyle() 233 component->SetFocusTextColor(node.ParseColor(value)); in SetChildStyle() 237 const DOMInput& node) { component->SetCursorColor(node.ParseColor(value)); } }, in SetChildStyle() 310 component->SetPlaceholderColor(node.ParseColor(value)); in SetChildStyle() 311 component->SetFocusPlaceholderColor(node.ParseColor(value)); in SetChildStyle()
|
H A D | dom_button_util.cpp | 153 TextStyle& style) { component->SetBackgroundColor(node.ParseColor(value)); } }, in SetChildStyle() 156 TextStyle& style) { component->SetClickedColor(node.ParseColor(value)); } }, in SetChildStyle() 159 TextStyle& style) { style.SetTextColor(node.ParseColor(value)); } }, in SetChildStyle() 162 TextStyle& style) { component->SetDisabledColor(node.ParseColor(value)); } }, in SetChildStyle() 165 TextStyle& style) { component->SetFocusColor(node.ParseColor(value)); } }, in SetChildStyle()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/declaration/text/ |
H A D | text_declaration.cpp | 91 const auto& color = val.empty() ? Color::BLACK : declaration.ParseColor(val); in SetSpecializedStyle() 219 specializedStyle.textStyle.SetTextDecorationColor(declaration.ParseColor(val)); in SetSpecializedStyle() 319 textShadow.SetColor(declaration.ParseColor(textShadowProps[pos])); in ParseTextShadow() 323 textShadow.SetColor(declaration.ParseColor(textShadowProps[pos++])); in ParseTextShadow() 334 textShadow.SetColor(declaration.ParseColor(textShadowProps[pos])); in ParseTextShadow() 337 textShadow.SetColor(declaration.ParseColor(textShadowProps[pos++])); in ParseTextShadow()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/declaration/search/ |
H A D | search_declaration.cpp | 169 textFieldDeclaration.SetBgColor(searchDeclaration.ParseColor(val)); in SetSpecializedStyle() 170 textFieldDeclaration.SetFocusBgColor(searchDeclaration.ParseColor(val)); in SetSpecializedStyle() 175 textFieldDeclaration.SetCursorColor(searchDeclaration.ParseColor(val)); in SetSpecializedStyle() 180 textFieldDeclaration.SetFocusTextColor(searchDeclaration.ParseColor(val)); in SetSpecializedStyle() 259 textFieldDeclaration.SetPlaceholderColor(searchDeclaration.ParseColor(val)); in SetSpecializedStyle()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/declaration/qrcode/ |
H A D | qrcode_declaration.cpp | 68 declaration.SetBackgroundColor(declaration.ParseColor(value)); in SetSpecializedStyle() 72 declaration.SetQrcodeColor(declaration.ParseColor(value)); in SetSpecializedStyle()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/declaration/clock/ |
H A D | clock_declaration.cpp | 105 digitColor_ = ParseColor(clockConfig.digitColor_); in SetClockConfig() 111 digitColorNight_ = ParseColor(clockConfig.digitColorNight_); in SetClockConfig()
|
H A D | clock_declaration.h | 168 digitColor_ = ParseColor(digitColor); in SetDigitColor() 178 digitColorNight_ = ParseColor(digitColorNight); in SetDigitColorNight()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/animation/ |
H A D | animation_util.cpp | 140 … util.AddAnimatable(util.ParseColor(value), time, AnimatableType::PROPERTY_BG_COLOR); in KeyframesAddKeyFrame() 328 auto color = util.ParseColor(value); in KeyframesAddKeyFrame() 333 auto color = util.ParseColor(value); in KeyframesAddKeyFrame() 338 auto color = util.ParseColor(value); in KeyframesAddKeyFrame() 343 auto color = util.ParseColor(value); in KeyframesAddKeyFrame() 348 auto color = util.ParseColor(value); in KeyframesAddKeyFrame() 438 shadow.SetColor(util.ParseColor(value)); in KeyframesAddKeyFrame() 545 Color AnimationUtil::ParseColor(const std::string& value, uint32_t maskAlpha) const in ParseColor() function in OHOS::Ace::AnimationUtil
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/declaration/badge/ |
H A D | badge_declaration.cpp | 83 declaration.SetBadgeColor(declaration.ParseColor(value)); in SetSpecializedStyle() 91 declaration.SetBadgeTextColor(declaration.ParseColor(value)); in SetSpecializedStyle()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/qrcode/ |
H A D | qrcode_napi.cpp | 83 if (!CommonNapiUtils::ParseColor(env, argv[0], qrcodeColor)) { in JsColor() 101 if (!CommonNapiUtils::ParseColor(env, argv[0], backgroundColor)) { in JsBackgroundColor()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/declaration/swiper/ |
H A D | swiper_declaration.cpp | 126 swiper.SetFadeColor(swiper.ParseColor(val)); in SetSpecializedStyle() 134 swiper.indicator_->SetColor(swiper.ParseColor(val)); in SetSpecializedStyle() 146 swiper.indicator_->SetSelectedColor(swiper.ParseColor(val)); in SetSpecializedStyle()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/patternlock/ |
H A D | patternlock_napi.cpp | 153 if (!CommonNapiUtils::ParseColor(env, argv[0], activeColor)) { in ActiveColor() 171 if (!CommonNapiUtils::ParseColor(env, argv[0], selectedColor)) { in SelectedColor() 189 if (!CommonNapiUtils::ParseColor(env, argv[0], pathColor)) { in PathColor() 206 if (!CommonNapiUtils::ParseColor(env, argv[0], regularColor)) { in RegularColor()
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/ |
H A D | circle_progress_component.cpp | 46 if (ParseColor(defaultBackgroundColor, color, alpha)) { in CreateNativeViews() 56 if (ParseColor(defaultColor, color, alpha)) { in CreateNativeViews()
|