Home
last modified time | relevance | path

Searched refs:ParseColor (Results 1 – 25 of 58) sorted by relevance

123

/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_calendar.cpp231 … 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 Ddom_chart.cpp128 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 Ddom_textarea.cpp160 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 Ddom_toggle.cpp80 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 Ddom_slider.cpp116 … [](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 Ddom_search.cpp152 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 Ddom_progress.cpp52 …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 Ddom_refresh.cpp85 progressColor_.first = ParseColor(style.second); in SetSpecializedStyle()
90 backgroundColor_ = ParseColor(style.second); in SetSpecializedStyle()
H A Ddom_picker_base.cpp240 … 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 Dcolor_test.cpp39 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 Dbutton_declaration.cpp124 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 Dtextfield_declaration.cpp181 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 Ddom_textfield_util.cpp223 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 Ddom_button_util.cpp153 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 Dtext_declaration.cpp91 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 Dsearch_declaration.cpp169 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 Dqrcode_declaration.cpp68 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 Dclock_declaration.cpp105 digitColor_ = ParseColor(clockConfig.digitColor_); in SetClockConfig()
111 digitColorNight_ = ParseColor(clockConfig.digitColorNight_); in SetClockConfig()
H A Dclock_declaration.h168 digitColor_ = ParseColor(digitColor); in SetDigitColor()
178 digitColorNight_ = ParseColor(digitColorNight); in SetDigitColorNight()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/animation/
H A Danimation_util.cpp140 … 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 Dbadge_declaration.cpp83 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 Dqrcode_napi.cpp83 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 Dswiper_declaration.cpp126 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 Dpatternlock_napi.cpp153 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 Dcircle_progress_component.cpp46 if (ParseColor(defaultBackgroundColor, color, alpha)) { in CreateNativeViews()
56 if (ParseColor(defaultColor, color, alpha)) { in CreateNativeViews()

123