mirror of
https://github.com/openharmony/accessibility.git
synced 2026-08-25 11:51:38 -04:00
@@ -26,13 +26,13 @@ ohos_shared_library("accessibility") {
|
||||
]
|
||||
|
||||
sources = [
|
||||
"./src/napi_accessibility_config_observer.cpp",
|
||||
"./src/napi_accessibility_element.cpp",
|
||||
"./src/napi_accessibility_event_info.cpp",
|
||||
"./src/napi_accessibility_gesture_path.cpp",
|
||||
"./src/napi_accessibility_gesture_pos.cpp",
|
||||
"./src/napi_accessibility_system_ability_client.cpp",
|
||||
"./src/napi_accessibility_utils.cpp",
|
||||
"./src/napi_accessibility_config_observer.cpp",
|
||||
"./src/native_module.cpp",
|
||||
]
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
#include "napi_accessibility_utils.h"
|
||||
#include "napi_accessibility_config_observer.h"
|
||||
|
||||
#include <vector>
|
||||
#include <uv.h>
|
||||
|
||||
#include "hilog_wrapper.h"
|
||||
|
||||
@@ -477,25 +477,25 @@ void AccessibilitySettingsConfig::SettingInit()
|
||||
}
|
||||
|
||||
std::string strValue = pref_->GetString("ScreenMagnification", "");
|
||||
isScreenMagnificationState_ = std::strcmp(strValue.c_str(), "on") ? false : true;
|
||||
isScreenMagnificationState_ = std::strcmp(strValue.c_str(), "on") ? false : true;
|
||||
|
||||
strValue = pref_->GetString("MouseKey", "");
|
||||
isMouseKeyState_ = std::strcmp(strValue.c_str(), "on") ? false : true;
|
||||
isMouseKeyState_ = std::strcmp(strValue.c_str(), "on") ? false : true;
|
||||
|
||||
strValue = pref_->GetString("ShortKey", "");
|
||||
isShortKeyState_ = std::strcmp(strValue.c_str(), "on") ? false : true;
|
||||
isShortKeyState_ = std::strcmp(strValue.c_str(), "on") ? false : true;
|
||||
|
||||
strValue = pref_->GetString("animationOff", "");
|
||||
animationOffState_ = std::strcmp(strValue.c_str(), "on") ? false : true;
|
||||
animationOffState_ = std::strcmp(strValue.c_str(), "on") ? false : true;
|
||||
|
||||
strValue = pref_->GetString("invertColor", "");
|
||||
invertColorState_ = std::strcmp(strValue.c_str(), "on") ? false : true;
|
||||
invertColorState_ = std::strcmp(strValue.c_str(), "on") ? false : true;
|
||||
|
||||
strValue = pref_->GetString("highContrastText", "");
|
||||
highContrastTextState_ = std::strcmp(strValue.c_str(), "on") ? false : true;
|
||||
highContrastTextState_ = std::strcmp(strValue.c_str(), "on") ? false : true;
|
||||
|
||||
strValue = pref_->GetString("audioMono", "");
|
||||
audioMonoState_ = std::strcmp(strValue.c_str(), "on") ? false : true;
|
||||
audioMonoState_ = std::strcmp(strValue.c_str(), "on") ? false : true;
|
||||
|
||||
shortkeyTarget_ = pref_->GetString("ShortkeyTarget", "none");
|
||||
mouseAutoClick_ = static_cast<int32_t>(pref_->GetInt("MouseAutoClick", -1));
|
||||
|
||||
Reference in New Issue
Block a user