Home
last modified time | relevance | path

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

1234

/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_environment.cpp32 JSClass<JSEnvironment>::CustomMethod("getColorMode", &JSEnvironment::GetColorMode); in JSBind()
75 void JSEnvironment::GetColorMode(const JSCallbackInfo& args) in GetColorMode() function in OHOS::Ace::Framework::JSEnvironment
78 auto colorMode = SystemProperties::GetColorMode(); in GetColorMode()
H A Djs_environment.h28 void GetColorMode(const JSCallbackInfo& args);
/foundation/arkui/ace_engine/frameworks/core/common/resource/
H A Dresource_wrapper.cpp31 resourceAdapter_->UpdateColorMode(SystemProperties::GetColorMode()); in ~ResourceWrapper()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/render/
H A Drs_maskcolor_shader_filter.h34 int GetColorMode() const;
H A Drs_material_filter.h86 BLUR_COLOR_MODE GetColorMode() const;
/foundation/ability/ability_runtime/test/unittest/frameworks_kits_appkit_native_test/
H A Dcontext_deal_test.cpp494 * @tc.name: GetColorMode
495 * @tc.desc: Verify that the GetColorMode return value is AUTO.
499 EXPECT_EQ(context_->GetColorMode(), static_cast<int32_t>(AppExecFwk::ModuleColorMode::AUTO)); in HWTEST_F()
504 * @tc.name: GetColorMode
505 * @tc.desc: Verify that the GetColorMode return value is not DARK.
511 EXPECT_EQ(context_->GetColorMode(), static_cast<int32_t>(AppExecFwk::ModuleColorMode::DARK)); in HWTEST_F()
522 EXPECT_NE(context_->GetColorMode(), static_cast<int32_t>(AppExecFwk::ModuleColorMode::DARK)); in HWTEST_F()
534 EXPECT_EQ(context_->GetColorMode(), static_cast<int32_t>(AppExecFwk::ModuleColorMode::DARK)); in HWTEST_F()
536 EXPECT_EQ(context_->GetColorMode(), static_cast<int32_t>(AppExecFwk::ModuleColorMode::LIGHT)); in HWTEST_F()
538 EXPECT_EQ(context_->GetColorMode(), static_cas in HWTEST_F()
[all...]
H A Dcontext_deal_interface1_test.cpp67 EXPECT_EQ(testValue, contextDeal->GetColorMode()); in HWTEST_F()
82 EXPECT_GT(testValue, contextDeal->GetColorMode()); in HWTEST_F()
88 * @tc.name: GetColorMode
89 * @tc.desc: Test the attachbasecontext call to verify that the return value of GetColorMode is correct.
99 EXPECT_EQ(testValue, contextDeal->GetColorMode()); in HWTEST_F()
105 * @tc.name: GetColorMode
106 * @tc.desc: Test the attachbasecontext call to verify that the return value of GetColorMode is correct.
114 EXPECT_GT(testValue, contextDeal->GetColorMode()); in HWTEST_F()
/foundation/arkui/ace_engine/adapter/preview/osal/
H A Dstage_card_parser.h34 const std::string& GetColorMode() const;
H A Dstage_card_parser.cpp73 const std::string& StageCardParser::GetColorMode() const in GetColorMode() function in OHOS::Ace::StageCardParser
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/container_modal/
H A Dcontainer_modal_theme.h104 auto isLightMode = SystemProperties::GetColorMode() == ColorMode::LIGHT; in ParsePattern()
138 auto isLightMode = SystemProperties::GetColorMode() == ColorMode::LIGHT; in GetControlBtnColor()
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dshadow.cpp35 auto colorMode = SystemProperties::GetColorMode(); in CreateShadow()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/state_manage/
H A Dcj_environment.cpp50 .value = static_cast<int32_t>(SystemProperties::GetColorMode()) in FfiOHOSAceFrameworkEnvironmentGetColorMode()
/foundation/arkui/ace_engine/frameworks/core/common/rosen/
H A Drosen_convert_helper.cpp23 colorMode = SystemProperties::GetColorMode() == ColorMode::DARK ? ThemeColorMode::DARK : ThemeColorMode::LIGHT; in GetRosenBlurStyleValue()
/foundation/arkui/ace_engine/frameworks/bridge/common/media_query/
H A Dmedia_query_info.cpp98 json->Put("dark-mode", SystemProperties::GetColorMode() == ColorMode::DARK); in GetMediaQueryJsonInfo()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/
H A Drs_maskcolor_shader_filter.cpp33 int RSMaskColorShaderFilter::GetColorMode() const in GetColorMode() function in OHOS::Rosen::RSMaskColorShaderFilter
/foundation/ability/ability_runtime/test/unittest/frameworks_kits_ability_native_test/
H A Dability_context_interface1_test.cpp68 EXPECT_EQ(testValue, abilityContext->GetColorMode()); in HWTEST_F()
83 EXPECT_GT(testValue, abilityContext->GetColorMode()); in HWTEST_F()
89 * @tc.name: GetColorMode
90 * @tc.desc: Test the attachbasecontext call to verify that the return value of GetColorMode is correct.
100 EXPECT_EQ(testValue, abilityContext->GetColorMode()); in HWTEST_F()
106 * @tc.name: GetColorMode
107 * @tc.desc: Test the attachbasecontext call to verify that the return value of GetColorMode is correct.
115 EXPECT_GT(testValue, abilityContext->GetColorMode()); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/app_bar/
H A Datomic_service_pattern.cpp51 UpdateMenuBarColor(theme, menuBar, SystemProperties::GetColorMode() != ColorMode::DARK); in BeforeCreateLayoutWrapper()
132 UpdateColor(SystemProperties::GetColorMode() != ColorMode::DARK); in OnColorConfigurationUpdate()
198 isLight = SystemProperties::GetColorMode() != ColorMode::DARK; in UpdateColor()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/window_scene/scene/
H A Dwindow_pattern.cpp201 auto backgroundColor = SystemProperties::GetColorMode() == ColorMode::DARK ? COLOR_BLACK : COLOR_WHITE; in CreateBlankWindow()
363 SystemProperties::GetColorMode() == ColorMode::DARK ? Color::BLACK : Color::WHITE); in CreateASStartingWindow()
415 auto backgroundColor = SystemProperties::GetColorMode() == ColorMode::DARK ? COLOR_BLACK : COLOR_WHITE; in CreateStartingWindow()
445 SystemProperties::GetColorMode() == ColorMode::DARK ? COLOR_TRANSLUCENT_BLACK : COLOR_TRANSLUCENT_WHITE; in UpdateSnapshotWindowProperty()
518 auto backgroundColor = SystemProperties::GetColorMode() == ColorMode::DARK ? COLOR_BLACK : COLOR_WHITE; in CreateSnapshotWindow()
/foundation/ability/ability_runtime/interfaces/kits/native/appkit/app/
H A Dcontext_container.h326 int GetColorMode() override;
H A Dfa_context.h481 virtual int GetColorMode() = 0;
/foundation/arkui/ace_engine/frameworks/core/components/text/
H A Dtext_theme.h72 if (SystemProperties::GetColorMode() == ColorMode::DARK) { in ParsePattern()
/foundation/arkui/ace_engine/frameworks/base/utils/
H A Dresource_configuration.h83 ColorMode GetColorMode() const in GetColorMode() function in OHOS::Ace::ResourceConfiguration
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_resource_bridge.cpp74 auto colorModeValue = SystemProperties::GetColorMode(); in Restore()
/foundation/ability/ability_runtime/test/moduletest/mock/include/
H A Dmock_context.h79 virtual int GetColorMode() = 0;
/foundation/ability/ability_runtime/frameworks/native/ability/native/
H A Dresource_config_helper.cpp110 resConfig->GetColorMode(), resConfig->GetInputDevice()); in UpdateResConfig()

Completed in 13 milliseconds

1234