Home
last modified time | relevance | path

Searched refs:colors (Results 1 – 25 of 441) sorted by relevance

12345678910>>...18

/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/bridge/declarative_frontend/ark_theme/theme_manager/src/theme/
H A DArkColorsImpl.ts77 colors: CustomColors = {},
81 for (let attribute in colors) {
82 customAttribute[attribute] = colors[attribute];
84 this.brand = colors?.brand ?? baselineColors.brand;
87 this.warning = colors?.warning ?? baselineColors.warning;
88 this.alert = colors?.alert ?? baselineColors.alert;
89 this.confirm = colors?.confirm ?? baselineColors.confirm;
91 this.fontPrimary = colors?.fontPrimary ?? baselineColors.fontPrimary;
94 this.fontFourth = colors?.fontFourth ?? baselineColors.fontFourth;
102 this.iconPrimary = colors?.iconPrimary ?? baselineColors.iconPrimary;
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DarkTheme.js38 theme.colors.brand,
39 theme.colors.warning,
40 theme.colors.alert,
41 theme.colors.confirm,
45 theme.colors.fontFourth,
379 …this.brand = (_a = colors === null || colors === void 0 ? void 0 : colors.brand) !== null && _a !=…
380 …onst brandColors = ArkColorsImpl.makeBrandColors(colors === null || colors === void 0 ? void 0 : c…
381 …this.warning = (_b = colors === null || colors === void 0 ? void 0 : colors.warning) !== null && _…
382 …this.alert = (_c = colors === null || colors === void 0 ? void 0 : colors.alert) !== null && _c !=…
383 …this.confirm = (_d = colors === null || colors === void 0 ? void 0 : colors.confirm) !== null && _…
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkshadereffect_fuzzer/
H A Dshadereffect_fuzzer.cpp73 if (colors != nullptr) { in NativeShaderEffectTest001()
74 delete[] colors; in NativeShaderEffectTest001()
75 colors = nullptr; in NativeShaderEffectTest001()
120 delete[] colors; in NativeShaderEffectTest002()
121 colors = nullptr; in NativeShaderEffectTest002()
165 delete[] colors; in NativeShaderEffectTest003()
166 colors = nullptr; in NativeShaderEffectTest003()
222 delete[] colors; in NativeShaderEffectTest004()
223 colors = nullptr; in NativeShaderEffectTest004()
271 delete[] colors; in NativeShaderEffectTest005()
[all …]
/ohos5.0/foundation/arkui/ui_lite/frameworks/render/
H A Drender_pixfmt_rgba_blend.cpp42 colors->green, colors->blue, in CopyHLine()
43 colors->alpha); in CopyHLine()
44 pixelPtr = pixelPtr->colors + step; in CopyHLine()
65 pixelPtr = pixelPtr->colors + step; in BlendHLine()
104 pixelPtr = pixelPtr->colors + step; in BlendSolidHSpan()
156 pixelPtr = pixelPtr->colors + step; in CopyColorHSpan()
157 colors += NEON_STEP_8; in CopyColorHSpan()
162 pixelPtr->SetPixelColor(*colors++); in CopyColorHSpan()
196 pixelPtr = pixelPtr->colors + step; in BlendColorHSpan()
197 colors += NEON_STEP_8; in BlendColorHSpan()
[all …]
H A Drender_pixfmt_rgba_blend.h109 uint8_t colors[NUM_COMPONENTS]; member
119 colors[OrderBgra::RED] = red; in SetPixelColor()
120 colors[OrderBgra::GREEN] = green; in SetPixelColor()
121 colors[OrderBgra::BLUE] = blue; in SetPixelColor()
122 colors[OrderBgra::ALPHA] = alpha; in SetPixelColor()
144 red = colors[OrderBgra::RED]; in GetPixelColor()
145 green = colors[OrderBgra::GREEN]; in GetPixelColor()
146 blue = colors[OrderBgra::BLUE]; in GetPixelColor()
147 alpha = colors[OrderBgra::ALPHA]; in GetPixelColor()
158 return Rgba8T(colors[OrderBgra::RED], colors[OrderBgra::GREEN], in GetPixelColor()
[all …]
/ohos5.0/docs/zh-cn/application-dev/ui/
H A Dtheme_skinning.md19 public colors: AppColors = new AppColors()
42 this.menuItemColor = theme.colors.backgroundPrimary;
168 ThemeControl.setDefaultTheme({ colors: abilityThemeColors })
201 public colors: AppColors = new AppColors()
205 public colors: AppColors = new AppColorsSec()
311 | theme.colors.brand | 品牌色 |#ff0a59f7| ![](figures/ff0a59f7.png "#ff0a59f7"…
312 | theme.colors.warning | 一级警示色 |#ffe84026| ![](figures/ffe84026.png "#ffe8402…
313 | theme.colors.alert | 二级警示色 |#ffed6f21| ![](figures/ffed6f21.png "#ffed6f2…
314 | theme.colors.confirm | 确认色 |#ff64bb5c| ![](figures/ff64bb5c.png "#ff64bb5c"…
315 | theme.colors.fontPrimary | 一级文本 | #e5000000 | ![](figures/e5000000.png "#e50000…
[all …]
H A Darkts-color-effect.md35 colors: [
53 colors: [
71 colors: [
88 colors: [
131 colors: [
157 colors: [
180 colors: [
202 colors: [
245 colors: [
269 colors: [
[all …]
/ohos5.0/docs/en/application-dev/ui/
H A Dtheme_skinning.md8colors. Use [CustomTheme](../reference/apis-arkui/js-apis-arkui-theme.md#customtheme) to specify t…
14 // Custom theme colors
19 public colors: AppColors = new AppColors()
42 this.menuItemColor = theme.colors.backgroundPrimary;
168 ThemeControl.setDefaultTheme({ colors: abilityThemeColors })
201 public colors: AppColors = new AppColors()
205 public colors: AppColors = new AppColorsSec()
311 | theme.colors.brand | Brand color.|#ff0a59f7| ![](figures/ff0a59f7.png "#f…
312 | theme.colors.warning | Alert color.|#ffe84026| ![](figures/ffe84026.png "#f…
313 | theme.colors.alert | Warning color.|#ffed6f21| ![](figures/ffed6f21.png "…
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/effect/
H A Dshader_effect_test.cpp175 std::vector<ColorQuad> colors; variable
192 std::vector<ColorQuad> colors; variable
209 std::vector<ColorQuad> colors; variable
227 std::vector<ColorQuad> colors; variable
247 std::vector<ColorQuad> colors; variable
269 std::vector<ColorQuad> colors; variable
288 std::vector<ColorQuad> colors; variable
308 std::vector<ColorQuad> colors; variable
493 std::vector<ColorQuad> colors; variable
511 std::vector<ColorQuad> colors; variable
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/overdraw/
H A Drs_overdraw_controller.cpp115 std::vector<uint32_t> colors; in OnColorChange() local
118 colors.push_back(color); in OnColorChange()
121 if (ss.eof() && colors != that.colors_ && colors.size() > 0) { in OnColorChange()
125 for (size_t i = 0; i < colors.size() && i + 1 < colorNumber; i++) { in OnColorChange()
126 colorArray[i + 1] = colors[i]; in OnColorChange()
128 for (size_t i = colors.size(); i + 1 < colorNumber; i++) { in OnColorChange()
129 colorArray[i + 1] = colors.back(); in OnColorChange()
134 for (size_t i = 0; i < colors.size(); i++) { in OnColorChange()
135 colorMap[i + 1] = colors[i]; in OnColorChange()
137 colorMap[0] = colors.back(); in OnColorChange()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/
H A Ddrawing_shader_effect.cpp65 if (cStartPt == nullptr || cEndPt == nullptr || colors == nullptr) { in OH_Drawing_ShaderEffectCreateLinearGradient()
76 colorsVector.emplace_back(colors[i]); in OH_Drawing_ShaderEffectCreateLinearGradient()
91 if (startPt == nullptr || endPt == nullptr || colors == nullptr) { in OH_Drawing_ShaderEffectCreateLinearGradientWithLocalMatrix()
102 colorsVector.emplace_back(colors[i]); in OH_Drawing_ShaderEffectCreateLinearGradientWithLocalMatrix()
117 if (cCenterPt == nullptr || colors == nullptr) { in OH_Drawing_ShaderEffectCreateRadialGradient()
128 colorsVector.emplace_back(colors[i]); in OH_Drawing_ShaderEffectCreateRadialGradient()
141 if (centerPt == nullptr || colors == nullptr) { in OH_Drawing_ShaderEffectCreateRadialGradientWithLocalMatrix()
152 colorsVector.emplace_back(colors[i]); in OH_Drawing_ShaderEffectCreateRadialGradientWithLocalMatrix()
165 if (cCenterPt == nullptr || colors == nullptr) { in OH_Drawing_ShaderEffectCreateSweepGradient()
176 colorsVector.emplace_back(colors[i]); in OH_Drawing_ShaderEffectCreateSweepGradient()
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-universal-attributes-gradient-color.md15 linearGradient(value: {angle?: number | string; direction?: GradientDirection; colors: Array\<[Reso…
33 …rt?: number | string; end?: number | string; rotation?: number | string; colors: Array\<[ResourceC…
51 radialGradient(value: { center: [Length, Length]; radius: number | string; colors: Array\<[Resource…
66colors:&nbsp;Array&lt;[[ResourceColor](ts-types.md#resourcecolor),&nbsp;number]&gt;,<br/>repeating…
70 > colors参数的约束:
94 colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]]
103 colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 0.5]] // 数组末尾元素占比小于1时满足重复着色效果
132 colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]]
145 colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 0.5]] // 数组末尾元素占比小于1时满足重复着色效果
174 colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]]
[all …]
/ohos5.0/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/slider/index/
H A Dindex.js42 colors:[0xFAEBD7,0xFFFF00,0xD4F2E7,0x8A2BE2,0x00FFFF,
105 if(this.bkgcorlorIndex >= this.colors.length){
108 this.bkgcor = this.colors[this.bkgcorlorIndex];
113 if(this.colorIndex >= this.colors.length){
116 this.color = this.colors[this.colorIndex];
121 if(this.selectedColorIndex >= this.colors.length){
124 this.selectedColor = this.colors[this.selectedColorIndex];
129 if(this.blockColorIndex >= this.colors.length){
132 this.blockColor = this.colors[this.blockColorIndex];
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-universal-attributes-gradient-color.md11 linearGradient(value: {angle?: number | string; direction?: GradientDirection; colors: Array\<[Reso…
47 radialGradient(value: { center: [Length, Length]; radius: number | string; colors: Array\<[Resource…
66 > When using the **colors** parameter, take note of the following:
86 colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]]
94 repeating: true, // Whether the gradient colors are repeated.
95colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 0.5]] // The gradient colors are repeated be…
120 colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]]
132 repeating: true, // Whether the gradient colors are repeated.
133colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 0.5]] // The gradient colors are repeated be…
158 colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]]
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_gauge_ffi.cpp103 for (auto& colorStopArray : colors) { in SortColorStopOffset()
129 std::vector<Color> colors; in FfiOHOSAceFrameworkGaugeSetColors() local
131 colors.push_back(Color(vecColor[i])); in FfiOHOSAceFrameworkGaugeSetColors()
139 std::vector<NG::ColorStopArray> colors; in FfiOHOSAceFrameworkGaugeSetColorsV2() local
155 colors.emplace_back(colorStopArray); in FfiOHOSAceFrameworkGaugeSetColorsV2()
163 colors.emplace_back(colorStopArray); in FfiOHOSAceFrameworkGaugeSetColorsV2()
170 std::vector<NG::ColorStopArray> colors; in FfiOHOSAceFrameworkGaugeSetLinearGradientColors() local
197 colors.emplace_back(colorStopArray); in FfiOHOSAceFrameworkGaugeSetLinearGradientColors()
199 SortColorStopOffset(colors); in FfiOHOSAceFrameworkGaugeSetLinearGradientColors()
210 colors.emplace_back(colorStopArray); in FfiOHOSAceFrameworkGaugeSetLinearGradientColors()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_gauge_bridge.cpp46 for (auto& colorStopArray : colors) { in SortColorStopOffset()
68 colors.emplace_back(colorStopArray); in ConvertResourceColor()
89 colors.emplace_back(colorStopArray); in ConvertGradientColor()
99 ConvertGradientColor(vm, info, colors, type); in SetGradientColorsObject()
123 for (uint32_t i = 0; i < colors.size(); i++) { in SetGradientColorsArray()
124 linearLengths[i] = colors[i].size(); in SetGradientColorsArray()
125 totalLength += colors[i].size(); in SetGradientColorsArray()
142 gradient.length = colors.size(); in SetGradientColorsArray()
153 std::vector<NG::ColorStopArray> colors; in SetGradientColors() local
186 SortColorStopOffset(colors); in SetGradientColors()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/effect/
H A Dshader_effect.cpp64 impl_->InitWithLinearGradient(startPt, endPt, colors, pos, mode, matrix); in ShaderEffect()
72 impl_->InitWithRadialGradient(centerPt, radius, colors, pos, mode, matrix); in ShaderEffect()
77 …scalar endRadius, const std::vector<ColorQuad>& colors, const std::vector<scalar>& pos, TileMode m… in ShaderEffect() argument
81 … impl_->InitWithTwoPointConical(startPt, startRadius, endPt, endRadius, colors, pos, mode, matrix); in ShaderEffect()
85 …fect::ShaderEffect(ShaderEffectType t, const Point& centerPt, const std::vector<ColorQuad>& colors, in ShaderEffect() argument
89 impl_->InitWithSweepGradient(centerPt, colors, pos, mode, startAngle, endAngle, matrix); in ShaderEffect()
144 …const std::vector<ColorQuad>& colors, const std::vector<scalar>& pos, TileMode mode, const Matrix … in CreateLinearGradient() argument
147 ShaderEffect::ShaderEffectType::LINEAR_GRADIENT, startPt, endPt, colors, pos, mode, matrix); in CreateLinearGradient()
151 …const std::vector<ColorQuad>& colors, const std::vector<scalar>& pos, TileMode mode, const Matrix … in CreateRadialGradient() argument
154 … ShaderEffect::ShaderEffectType::RADIAL_GRADIENT, centerPt, radius, colors, pos, mode, matrix); in CreateRadialGradient()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/
H A Ddrawing_shader_effect_test.cpp56 uint32_t colors[] = { 0xFFFFFFFF }; variable
62 …OH_Drawing_ShaderEffectCreateLinearGradient(nullptr, endPt, colors, pos, 1, OH_Drawing_TileMode::C…
64 …OH_Drawing_ShaderEffectCreateLinearGradient(startPt, nullptr, colors, pos, 1, OH_Drawing_TileMode:…
134 uint32_t colors[POINT_NUM] = {0xFF00FFFF, 0xFFFF00FF, 0xFFFFFF00}; variable
136 &start, nullptr, colors, pos, POINT_NUM, OH_Drawing_TileMode::CLAMP, nullptr), nullptr);
138 &start, &end, colors, pos, POINT_NUM, OH_Drawing_TileMode::CLAMP, nullptr), nullptr);
157 uint32_t colors[POINT_NUM] = {0xFF00FFFF, 0xFFFF00FF, 0xFFFFFF00}; variable
159 nullptr, radius, colors, pos, POINT_NUM, OH_Drawing_TileMode::CLAMP, nullptr), nullptr);
161 &start, radius, colors, pos, POINT_NUM, OH_Drawing_TileMode::CLAMP, nullptr), nullptr);
175 uint32_t colors[POINT_NUM] = {0xFF00FFFF, 0xFFFF00FF, 0xFFFFFF00}; variable
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/effect/color_picker/include/
H A Dcolor_extract.h145 uint32_t* colors = colorExtract_->colors_.data(); in fitBox() local
147 if (colors == nullptr || hist == nullptr) { in fitBox()
161 uint32_t color = colors[i]; in fitBox()
225 uint32_t *colors = colorExtract_->colors_.data(); in FindSplitPoint() local
230 std::sort(colors + lowerIndex_, colors + upperIndex_ + 1); in FindSplitPoint()
236 count += static_cast<int>(hist[colors[i]]); in FindSplitPoint()
256 uint32_t color = colors[i]; in ModifySignificantOctet()
264 uint32_t color = colors[i]; in ModifySignificantOctet()
280 uint32_t* colors = colorExtract_->colors_.data(); in GetAverageColor() local
282 if (colors == nullptr || hist == nullptr) { in GetAverageColor()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/utils/vertices_fuzzer/
H A Dvertices_fuzzer.cpp51 ColorQuad* colors = new ColorQuad[arr_size]; in VerticesFuzzTest000() local
56 colors[i] = GetObject<ColorQuad>(); in VerticesFuzzTest000()
59 …ver.MakeCopy(static_cast<VertexMode>(mode % MATH_THREE), MATH_TWO, positions, texs, colors, arr_si… in VerticesFuzzTest000()
60 …ver1.MakeCopy(static_cast<VertexMode>(mode % MATH_THREE), MATH_TWO, positions, texs, colors, arr_s… in VerticesFuzzTest000()
61 ver.MakeCopy(static_cast<VertexMode>(mode % MATH_THREE), MATH_TWO, positions, texs, colors); in VerticesFuzzTest000()
62 ver1.MakeCopy(static_cast<VertexMode>(mode % MATH_THREE), MATH_TWO, positions, texs, colors); in VerticesFuzzTest000()
74 if (colors != nullptr) { in VerticesFuzzTest000()
75 delete [] colors; in VerticesFuzzTest000()
76 colors = nullptr; in VerticesFuzzTest000()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/render/
H A Drs_color_extract.h131 uint32_t *colors = colorExtract_->colors_.get(); in fitBox() local
144 uint32_t color = colors[i]; in fitBox()
208 uint32_t *colors = colorExtract_->colors_.get(); in FindSplitPoint() local
212 ModifySignificantOctet(colors, longestDimension, lowerIndex_, upperIndex_); in FindSplitPoint()
213 std::sort(colors + lowerIndex_, colors + upperIndex_ + 1); in FindSplitPoint()
215 ModifySignificantOctet(colors, longestDimension, lowerIndex_, upperIndex_); in FindSplitPoint()
219 count += static_cast<int>(hist[colors[i]]); in FindSplitPoint()
239 uint32_t color = colors[i]; in ModifySignificantOctet()
247 uint32_t color = colors[i]; in ModifySignificantOctet()
259 uint32_t *colors = colorExtract_->colors_.get(); in GetAverageColor() local
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/data_panel/
H A Ddata_panel_paint_property.h33 std::vector<Gradient> colors; member
36 …radius == rhs.radius && offsetX == rhs.offsetX && offsetY == rhs.offsetY && colors == rhs.colors &&
124 auto colors = theme->GetColorsArray(); in ToJsonValueColors() local
125 for (const auto& item : colors) { in ToJsonValueColors()
162 trackShadow.colors = propShadowOption_.value().colors; in ToJsonTrackShadow()
175 if (trackShadow.colors.size() == 0) { in ToJsonTrackShadow()
177 trackShadow.colors = propValueColors_.value(); in ToJsonTrackShadow()
179 auto colors = theme->GetColorsArray(); in ToJsonTrackShadow() local
180 for (const auto& item : colors) { in ToJsonTrackShadow()
183 trackShadow.colors.emplace_back(gradient); in ToJsonTrackShadow()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/track/
H A Drosen_render_circular_track.cpp49 SkColor colors[trackInfo.gradient.GetColors().size() + 1]; in DrawArc() local
52 colors[index] = trackInfo.gradient.GetColors()[index].GetColor().GetValue(); in DrawArc()
54colors[trackInfo.gradient.GetColors().size()] = trackInfo.gradient.GetColors()[0].GetColor().GetVa… in DrawArc()
57 …der(SkGradientShader::MakeSweep(trackInfo.center.GetX(), trackInfo.center.GetY(), colors, position, in DrawArc()
78 RSColorQuad colors[trackInfo.gradient.GetColors().size() + 1]; in DrawArc() local
81 colors[index] = trackInfo.gradient.GetColors()[index].GetColor().GetValue(); in DrawArc()
83colors[trackInfo.gradient.GetColors().size()] = trackInfo.gradient.GetColors()[0].GetColor().GetVa… in DrawArc()
86 std::vector<RSColorQuad> vecColor(colors, colors + sizeof(colors) / sizeof(RSColorQuad)); in DrawArc()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_shader_effect.cpp120 if (colors.empty()) { in InitWithLinearGradient()
123 size_t colorsCount = colors.size(); in InitWithLinearGradient()
128 c.emplace_back(colors[i]); in InitWithLinearGradient()
147 if (colors.empty()) { in InitWithRadialGradient()
150 size_t colorsCount = colors.size(); in InitWithRadialGradient()
155 c.emplace_back(colors[i]); in InitWithRadialGradient()
177 if (colors.empty()) { in InitWithTwoPointConical()
180 size_t colorsCount = colors.size(); in InitWithTwoPointConical()
185 c.emplace_back(colors[i]); in InitWithTwoPointConical()
202 if (colors.empty()) { in InitWithSweepGradient()
[all …]

12345678910>>...18