Home
last modified time | relevance | path

Searched refs:ThemeColorMode (Results 1 - 25 of 25) sorted by relevance

/foundation/arkui/ace_engine/frameworks/core/common/rosen/
H A Drosen_convert_helper.cpp21 ThemeColorMode colorMode = option.colorMode; in GetRosenBlurStyleValue()
22 if (option.colorMode == ThemeColorMode::SYSTEM) { in GetRosenBlurStyleValue()
23 colorMode = SystemProperties::GetColorMode() == ColorMode::DARK ? ThemeColorMode::DARK : ThemeColorMode::LIGHT; in GetRosenBlurStyleValue()
25 const static std::map<std::pair<BlurStyle, ThemeColorMode>, MATERIAL_BLUR_STYLE> mp = { in GetRosenBlurStyleValue()
26 { { BlurStyle::THIN, ThemeColorMode::LIGHT }, MATERIAL_BLUR_STYLE::STYLE_CARD_THIN_LIGHT }, in GetRosenBlurStyleValue()
27 { { BlurStyle::THIN, ThemeColorMode::DARK }, MATERIAL_BLUR_STYLE::STYLE_CARD_THIN_DARK }, in GetRosenBlurStyleValue()
28 { { BlurStyle::REGULAR, ThemeColorMode::LIGHT }, MATERIAL_BLUR_STYLE::STYLE_CARD_LIGHT }, in GetRosenBlurStyleValue()
29 { { BlurStyle::REGULAR, ThemeColorMode::DARK }, MATERIAL_BLUR_STYLE::STYLE_CARD_DARK }, in GetRosenBlurStyleValue()
30 { { BlurStyle::THICK, ThemeColorMode in GetRosenBlurStyleValue()
[all...]
H A Drosen_convert_helper.h25 std::optional<BlurParameter> GetBlurParameter(BlurStyle style, ThemeColorMode colorMode);
/foundation/arkui/ace_engine/test/unittest/core/common/rosen/
H A Drosen_test.cpp170 blurStyleOption.colorMode = ThemeColorMode::DARK; in HWTEST_F()
179 blurStyleOption.colorMode = ThemeColorMode::DARK; in HWTEST_F()
188 blurStyleOption.colorMode = ThemeColorMode::DARK; in HWTEST_F()
197 blurStyleOption.colorMode = ThemeColorMode::DARK; in HWTEST_F()
206 blurStyleOption.colorMode = ThemeColorMode::DARK; in HWTEST_F()
215 blurStyleOption.colorMode = ThemeColorMode::DARK; in HWTEST_F()
224 blurStyleOption.colorMode = ThemeColorMode::DARK; in HWTEST_F()
242 blurStyleOption.colorMode = ThemeColorMode::LIGHT; in HWTEST_F()
251 blurStyleOption.colorMode = ThemeColorMode::LIGHT; in HWTEST_F()
260 blurStyleOption.colorMode = ThemeColorMode in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/theme/
H A Dblur_style_theme.h26 enum class ThemeColorMode;
40 std::optional<BlurParameter> GetBlurParameter(BlurStyle style, ThemeColorMode colorMode);
44 static uint32_t GetKeyOfBlurStyle(BlurStyle style, ThemeColorMode colorMode);
H A Dblur_style_theme.cpp82 uint32_t BlurStyleTheme::GetKeyOfBlurStyle(BlurStyle style, ThemeColorMode colorMode) in GetKeyOfBlurStyle()
87 std::optional<BlurParameter> BlurStyleTheme::GetBlurParameter(BlurStyle style, ThemeColorMode colorMode) in GetBlurParameter()
98 auto blur = ParseBlurParam(themeStyle_, blurIter->second, colorMode == ThemeColorMode::DARK); in GetBlurParameter()
H A Dshadow_theme.h30 enum class ThemeColorMode;
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DjsEnumStyle.js1468 var ThemeColorMode; variable
1469 (function (ThemeColorMode) {
1470 ThemeColorMode[ThemeColorMode["System"] = 0] = "System";
1471 ThemeColorMode[ThemeColorMode["Light"] = 1] = "Light";
1472 ThemeColorMode[ThemeColorMode["Dark"] = 2] = "Dark";
1473 ThemeColorMode[ThemeColorMode["SYSTE
[all...]
H A DarkTheme.js354 if (colorMode && colorMode !== ThemeColorMode.SYSTEM) {
358 if (colorMode && colorMode !== ThemeColorMode.SYSTEM) {
687 return (_a = this.withThemeOptions.colorMode) !== null && _a !== void 0 ? _a : ThemeColorMode.SYSTEM;
746 if (this.handledColorMode === ThemeColorMode.LIGHT || this.handledColorMode === ThemeColorMode.DARK) {
754 if (this.handledColorMode === ThemeColorMode.LIGHT || this.handledColorMode === ThemeColorMode.DARK) {
/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/drag_drop/
H A Ddrag_drop_func_wrapper.cpp459 ThemeColorMode colorMode = blurStyleOp->colorMode; in BrulStyleToEffection()
460 if (blurStyleOp->colorMode == ThemeColorMode::SYSTEM) { in BrulStyleToEffection()
461 colorMode = SystemProperties::GetColorMode() == ColorMode::DARK ? ThemeColorMode::DARK : ThemeColorMode::LIGHT; in BrulStyleToEffection()
/foundation/arkui/ace_engine/test/unittest/core/manager/
H A Ddrag_drop_func_wrapper_test_ng_coverage.cpp251 blurStyleOp.colorMode = ThemeColorMode::LIGHT; in HWTEST_F()
395 blurStyleOp.colorMode = ThemeColorMode::LIGHT; in HWTEST_F()
635 styleOption.colorMode = ThemeColorMode::LIGHT; in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Ddecoration.h95 enum class ThemeColorMode { class
129 ThemeColorMode colorMode = ThemeColorMode::SYSTEM;
155 static const char* COLOR_MODE[] = { "ThemeColorMode.System", "ThemeColorMode.Light", "ThemeColorMode.Dark" }; in ToJsonValue()
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dtabs_modifier.cpp114 if (colorMode >= static_cast<int32_t>(ThemeColorMode::SYSTEM) && in SetBarBackgroundBlurStyle()
115 colorMode <= static_cast<int32_t>(ThemeColorMode::DARK)) { in SetBarBackgroundBlurStyle()
116 bgBlurStyle.colorMode = static_cast<ThemeColorMode>(colorMode); in SetBarBackgroundBlurStyle()
H A Dnode_common_modifier.cpp1597 if (colorMode >= static_cast<int32_t>(ThemeColorMode::SYSTEM) && in SetForegroundBlurStyle()
1598 colorMode <= static_cast<int32_t>(ThemeColorMode::DARK)) { in SetForegroundBlurStyle()
1599 fgBlurStyle.colorMode = static_cast<ThemeColorMode>(colorMode); in SetForegroundBlurStyle()
1720 if (colorMode >= static_cast<int32_t>(ThemeColorMode::SYSTEM) && in SetBackgroundBlurStyle()
1721 colorMode <= static_cast<int32_t>(ThemeColorMode::DARK)) { in SetBackgroundBlurStyle()
1722 bgBlurStyle.colorMode = static_cast<ThemeColorMode>(colorMode); in SetBackgroundBlurStyle()
/foundation/arkui/ace_engine/advanced_ui_component/dialog/interfaces/
H A Ddialog.js104 this.themeColorMode = ThemeColorMode.SYSTEM;
840 this.themeColorMode = ThemeColorMode.SYSTEM;
1508 this.themeColorMode = ThemeColorMode.SYSTEM;
1946 this.themeColorMode = ThemeColorMode.SYSTEM;
2207 this.themeColorMode = ThemeColorMode.SYSTEM;
2491 this.themeColorMode = ThemeColorMode.SYSTEM;
2812 Scroll.backgroundColor(this.themeColorMode === ThemeColorMode.SYSTEM || undefined ?
3850 this.themeColorMode = ThemeColorMode.SYSTEM;
/foundation/arkui/ace_engine/frameworks/core/components_ng/event/
H A Ddrag_event.cpp924 styleOption.colorMode = static_cast<ThemeColorMode>(static_cast<int32_t>(ThemeColorMode::SYSTEM)); in SetFilter()
1357 ThemeColorMode colorMode = blurStyleOp->colorMode; in BrulStyleToEffection()
1358 if (blurStyleOp->colorMode == ThemeColorMode::SYSTEM) { in BrulStyleToEffection()
1359 colorMode = SystemProperties::GetColorMode() == ColorMode::DARK ? ThemeColorMode::DARK : ThemeColorMode::LIGHT; in BrulStyleToEffection()
/foundation/arkui/ace_engine/test/unittest/core/event/
H A Ddrag_event_test_ng_property_config.cpp319 blurstyletmp->colorMode = ThemeColorMode::DARK; in HWTEST_F()
321 ASSERT_NE(blurstyletmp->colorMode, ThemeColorMode::SYSTEM); in HWTEST_F()
1386 BlurStyleOption blurStyleInfo = { BlurStyle::NO_MATERIAL, ThemeColorMode::SYSTEM, AdaptiveColor::DEFAULT, 1.0, in HWTEST_F()
1411 optBlurStyleInfo->colorMode = ThemeColorMode::LIGHT; in HWTEST_F()
1651 styleOption.colorMode = ThemeColorMode::LIGHT; in HWTEST_F()
H A Ddrag_event_test_ng.cpp1823 BlurStyleOption blurStyleInfo = {BlurStyle::NO_MATERIAL, ThemeColorMode::SYSTEM, in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_view_abstract_ffi.cpp443 if (colorMode >= static_cast<int32_t>(ThemeColorMode::SYSTEM) && in FfiOHOSAceFrameworkViewAbstractSetForegroundBlurStyleOption()
444 colorMode <= static_cast<int32_t>(ThemeColorMode::DARK)) { in FfiOHOSAceFrameworkViewAbstractSetForegroundBlurStyleOption()
445 styleOption.colorMode = static_cast<ThemeColorMode>(colorMode); in FfiOHOSAceFrameworkViewAbstractSetForegroundBlurStyleOption()
/foundation/arkui/ace_engine/test/unittest/core/base/
H A Dview_abstract_test_ng.cpp193 blurStyleOption.colorMode = ThemeColorMode::SYSTEM; in HWTEST_F()
283 blurStyleOption.colorMode = ThemeColorMode::SYSTEM; in HWTEST_F()
1596 blurStyleOption.colorMode = ThemeColorMode::SYSTEM; in HWTEST_F()
/foundation/arkui/ace_engine/test/unittest/core/pattern/tabs/
H A Dtab_bar_test_ng.cpp1441 styleOption.colorMode = ThemeColorMode::LIGHT; in HWTEST_F()
1452 EXPECT_EQ(tabBarRenderContext->GetBackBlurStyle()->colorMode, ThemeColorMode::LIGHT); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Drosen_render_context.cpp162 ThemeColorMode colorMode = blurStyleOption.colorMode; in CreateRSMaterialFilter()
163 if (blurStyleOption.colorMode == ThemeColorMode::SYSTEM) { in CreateRSMaterialFilter()
164 colorMode = GetResourceColorMode(pipeline) == ColorMode::DARK ? ThemeColorMode::DARK : ThemeColorMode::LIGHT; in CreateRSMaterialFilter()
1002 if (bgBlurStyle->colorMode != ThemeColorMode::SYSTEM) { in UpdateBackBlurStyle()
1064 if (fgBlurStyle->colorMode != ThemeColorMode::SYSTEM) { in UpdateFrontBlurStyle()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_view_abstract.cpp2797 auto colorMode = static_cast<int32_t>(ThemeColorMode::SYSTEM); in ParseBlurStyleOption()
2799 if (colorMode >= static_cast<int32_t>(ThemeColorMode::SYSTEM) && in ParseBlurStyleOption()
2800 colorMode <= static_cast<int32_t>(ThemeColorMode::DARK)) { in ParseBlurStyleOption()
2801 styleOption.colorMode = static_cast<ThemeColorMode>(colorMode); in ParseBlurStyleOption()
3021 auto colorMode = static_cast<int32_t>(ThemeColorMode::SYSTEM); in JsForegroundBlurStyle()
3023 if (colorMode >= static_cast<int32_t>(ThemeColorMode::SYSTEM) && in JsForegroundBlurStyle()
3024 colorMode <= static_cast<int32_t>(ThemeColorMode::DARK)) { in JsForegroundBlurStyle()
3025 styleOption.colorMode = static_cast<ThemeColorMode>(colorMode); in JsForegroundBlurStyle()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_tabs_bridge.cpp368 static_cast<int32_t>(ThemeColorMode::SYSTEM), static_cast<int32_t>(AdaptiveColor::DEFAULT), in SetBarBackgroundBlurStyle()
H A Darkts_native_common_bridge.cpp2755 int32_t colorMode = static_cast<int32_t>(ThemeColorMode::SYSTEM); in SetForegroundBlurStyle()
2877 colorMode = static_cast<int32_t>(ThemeColorMode::SYSTEM); in SetBackgroundBlurStyle()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/
H A Doverlay_manager.cpp6655 styleOption.colorMode = ThemeColorMode::SYSTEM; in ShowFilterAnimation()

Completed in 106 milliseconds