Lines Matching defs:mode
391 int32_t UiAppearanceAbility::OnSetDarkMode(const int32_t userId, DarkMode mode)
396 switch (mode) {
413 LOGE("AddItem failed, mode = %{public}d", mode);
423 usersParam_[userId].darkMode = mode;
426 tmpParam.darkMode = mode;
441 int32_t UiAppearanceAbility::SetDarkMode(DarkMode mode)
453 if (mode != it->second.darkMode) {
454 return OnSetDarkMode(userId, mode);
456 LOGW("current color mode is %{public}d, no need to change", mode);
459 return OnSetDarkMode(userId, mode);
475 LOGI("current color mode is dark.");
478 LOGI("current color mode is light.");