mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-12-22 15:49:15 +08:00
[feat] use DrawToggleSwitch to request permission
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -75,8 +75,8 @@
|
||||
#define SELF_HOSTED_SERVER_CONFIG_OK_BUTTON_PADDING_EN 91
|
||||
#define UPDATE_NOTIFICATION_OK_BUTTON_PADDING_CN 162
|
||||
#define UPDATE_NOTIFICATION_OK_BUTTON_PADDING_EN 146
|
||||
#define REQUEST_PERMISSION_WINDOW_WIDTH_CN 180
|
||||
#define REQUEST_PERMISSION_WINDOW_WIDTH_CN 130
|
||||
#define REQUEST_PERMISSION_WINDOW_HEIGHT_CN 128
|
||||
#define REQUEST_PERMISSION_WINDOW_WIDTH_EN 380
|
||||
#define REQUEST_PERMISSION_WINDOW_HEIGHT_EN 122
|
||||
#define REQUEST_PERMISSION_WINDOW_WIDTH_EN 260
|
||||
#define REQUEST_PERMISSION_WINDOW_HEIGHT_EN 128
|
||||
#endif
|
||||
@@ -195,19 +195,9 @@ static std::vector<std::string> screen_recording_permission = {
|
||||
reinterpret_cast<const char*>(u8"录屏权限"), "Screen Recording Permission"};
|
||||
static std::vector<std::string> accessibility_permission = {
|
||||
reinterpret_cast<const char*>(u8"键鼠权限"), "Keyboard & Mouse Permission"};
|
||||
static std::vector<std::string> permission_granted = {
|
||||
reinterpret_cast<const char*>(u8"已授权"), "Granted"};
|
||||
static std::vector<std::string> permission_denied = {
|
||||
reinterpret_cast<const char*>(u8"未授权"), "Denied"};
|
||||
static std::vector<std::string> open_screen_recording_settings = {
|
||||
reinterpret_cast<const char*>(u8"打开录屏设置"),
|
||||
"Open Screen Recording Settings"};
|
||||
static std::vector<std::string> open_keyboard_mouse_settings = {
|
||||
reinterpret_cast<const char*>(u8"打开键鼠设置"),
|
||||
"Open Keyboard & Mouse Settings"};
|
||||
static std::vector<std::string> permission_required_message = {
|
||||
reinterpret_cast<const char*>(u8"应用需要以下权限才能正常工作:"),
|
||||
"The application requires the following permissions to work properly:"};
|
||||
reinterpret_cast<const char*>(u8"应用需要授权以下权限:"),
|
||||
"The application requires the following permissions:"};
|
||||
#endif
|
||||
} // namespace localization
|
||||
} // namespace crossdesk
|
||||
|
||||
Reference in New Issue
Block a user