/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_theme/theme_apply/ |
H A D | js_theme.h | 92 colors_.push_back(colors->GetValueAt(i)); in SetColors() 98 return ConvertJsValueToColor(colors_[BRAND]); in Brand() 102 return ConvertJsValueToColor(colors_[WARNING]); in Warning() 106 return ConvertJsValueToColor(colors_[ALERT]); in Alert() 110 return ConvertJsValueToColor(colors_[CONFIRM]); in Confirm() 127 return ConvertJsValueToColor(colors_[FONT_FOURTH]); in FontFourth() 165 return ConvertJsValueToColor(colors_[ICON_FOURTH]); in IconFourth() 315 std::vector<JSRef<JSVal>> colors_; variable 325 colors_ = colors; in SetColors() 330 return colors_; in Colors() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | gradient_style_modifier.cpp | 103 if (!colors_) { in SetGradient() 181 colors_[index].GetRed() + value.colors_[index].GetRed(), in Add() 182 colors_[index].GetGreen() + value.colors_[index].GetGreen(), in Add() 183 colors_[index].GetBlue() + value.colors_[index].GetBlue()); in Add() 188 result.colors_.push_back(colors_[index]); in Add() 192 result.colors_.push_back(value.colors_[index]); in Add() 208 colors_[index].GetRed() - value.colors_[index].GetRed(), in Minus() 210 colors_[index].GetBlue() - value.colors_[index].GetBlue()); in Minus() 215 result.colors_.push_back(colors_[index]); in Minus() 219 result.colors_.push_back(value.colors_[index]); in Minus() [all …]
|
H A D | gradient_style_modifier.h | 41 return colors_; in GetColors() 46 auto color = colors_.empty() ? defaultColor : colors_.back(); in PaddingColors() 47 colors_.insert(colors_.end(), size, color); in PaddingColors() 51 std::vector<Color> colors_; 98 std::shared_ptr<Rosen::RSAnimatableProperty<ColorAnimatableArithmetic>> colors_; variable
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/ |
H A D | rs_border.cpp | 57 colors_.clear(); in SetColor() 58 colors_.push_back(color); in SetColor() 87 if (colors_.empty()) { in GetColor() 89 } else if (colors_.size() == 1) { in GetColor() 90 return colors_.front(); in GetColor() 92 return colors_.at(idx); in GetColor() 190 if (colors_.size() == 4) { in GetColorFour() 191 return Vector4<Color>(colors_[0], colors_[1], colors_[2], colors_[3]); in GetColorFour() 292 if (colors_.size() != 1) { in ApplyFillStyle() 916 if (colors_.size() > 0) { in ToString() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/ |
H A D | dom_chart.cpp | 150 chart.colors_.clear(); in SetSpecializedStyle() 151 StringUtils::StringSplitter(val, ',', chart.colors_); in SetSpecializedStyle() 199 if (colors_.empty() || weights_.empty() || colors_.size() != weights_.size()) { in OnSetStyleFinished() 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() 329 progressChild_->GetTrack()->SetSectionsStyle(colors_, weights_); in PrepareSpecializedComponent()
|
H A D | dom_progress.h | 78 std::vector<Color> colors_; variable
|
H A D | dom_chart.h | 210 std::vector<Color> colors_; variable
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/track/ |
H A D | rosen_render_arc_track.cpp | 248 if (colors_.size() == 0 || colors_.size() != weights_.size()) { in Paint() 263 for (int32_t index = static_cast<int32_t>(colors_.size()) - 1; index >= 0; --index) { in Paint() 264 data.color = colors_[index]; in Paint() 276 data.color = colors_[highLightIndex]; in Paint()
|
H A D | track_component.h | 282 colors_ = colors; in SetSectionsStyle() 288 return colors_; in GetSectionsColors() 375 std::vector<Color> colors_; variable
|
H A D | render_track.h | 163 std::vector<Color> colors_; variable
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/render/ |
H A D | rs_color_extract.h | 61 std::shared_ptr<uint32_t> colors_ = nullptr; variable 131 uint32_t *colors = colorExtract_->colors_.get(); in fitBox() 208 uint32_t *colors = colorExtract_->colors_.get(); in FindSplitPoint() 259 uint32_t *colors = colorExtract_->colors_.get(); in GetAverageColor()
|
H A D | rs_border.h | 128 std::vector<Color> colors_; variable
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/effect/color_picker/include/ |
H A D | color_extract.h | 62 std::vector<uint32_t> colors_; variable 145 uint32_t* colors = colorExtract_->colors_.data(); in fitBox() 225 uint32_t *colors = colorExtract_->colors_.data(); in FindSplitPoint() 280 uint32_t* colors = colorExtract_->colors_.data(); in GetAverageColor()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
H A D | gradient_property.h | 289 return IsSweepGradientValid() && colors_.size() > 1; in IsValid() 291 return colors_.size() > 1; in IsValid() 306 return colors_; in GetColors() 481 …return (type_ == other.GetType() && repeat_ == other.GetRepeat() && colors_ == other.GetColors() && 502 std::vector<GradientColor> colors_; variable
|
H A D | gradient_property.cpp | 22 colors_.push_back(color); in AddColor() 27 colors_.clear(); in ClearColors()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | decoration.h | 438 return IsSweepGradientValid() && colors_.size() > 1; in IsValid() 440 return colors_.size() > 1; in IsValid() 455 return colors_; in GetColors() 633 std::vector<GradientColor> colors_; variable
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/drawable/ |
H A D | rs_property_drawable_foreground_test.cpp | 180 border->colors_.emplace_back(RSColor(1.0f, 1.0f, 1.0f, 1.0f)); 192 outline->colors_.emplace_back(RSColor(1.0f, 1.0f, 1.0f, 1.0f)); 461 border->colors_.emplace_back(Color()); 463 EXPECT_EQ(border->colors_.size(), 1);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/platform/ohos/overdraw/ |
H A D | rs_overdraw_controller.h | 75 std::vector<uint32_t> colors_; variable
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/composer/ |
H A D | layer_context.cpp | 257 colorIndex_ = colorIndex_ % colors_.size(); in DrawExtraColor() 258 color_ = colors_[colorIndex_]; in DrawExtraColor()
|
H A D | layer_context.h | 69 …const std::vector<uint32_t> colors_ = {0xff0000ff, 0xffff00ff, 0xaa00ff00, 0xff00ffaa, 0xff0f0f00};
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/effect/color_picker/src/ |
H A D | color_extract.cpp | 302 colors_.resize(distinctColorCount_); in GetNFeatureColors() 303 uint32_t *colors = colors_.data(); in GetNFeatureColors()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/overdraw/ |
H A D | rs_overdraw_controller.cpp | 121 if (ss.eof() && colors != that.colors_ && colors.size() > 0) { in OnColorChange()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/gauge/ |
H A D | gauge_modifier.h | 145 std::vector<RefPtr<AnimatablePropertyColor>> colors_; variable
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/property/ |
H A D | rs_properties_painter_test.cpp | 1029 border->colors_.push_back(color); 1045 border->colors_.clear(); 1047 EXPECT_TRUE(border->colors_.size() == 0); 1066 properties.outline_->colors_.push_back(color); 1089 properties.outline_->colors_.push_back(color); 1429 properties.border_->colors_.push_back(color);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/swiper/ |
H A D | render_swiper.h | 173 return colors_; in GetColor() 634 Color colors_; variable
|