diff --git a/permissionmanager/src/main/ets/common/components/dialog.ets b/permissionmanager/src/main/ets/common/components/dialog.ets index df940fd91396887c97647e3af64c8be4d94d3c55..2a1770a28bef65ed2c40a1b88b9b528fdb6c9f6e 100644 --- a/permissionmanager/src/main/ets/common/components/dialog.ets +++ b/permissionmanager/src/main/ets/common/components/dialog.ets @@ -59,6 +59,7 @@ export struct globalDialog { Text(globalThis.currentPermissionGroup == 'CAMERA' ? $r('app.string.close_camera') : $r('app.string.close_microphone')) .fontSize(Constants.TEXT_BIG_FONT_SIZE) .fontColor($r('app.color.label_color')) + .fontWeight(FontWeight.Medium) .lineHeight(Constants.TEXT_BIG_LINE_HEIGHT) .height(Constants.ROW_HEIGHT) .width(Constants.FULL_WIDTH) diff --git a/permissionmanager/src/main/ets/pages/authority-tertiary-groups.ets b/permissionmanager/src/main/ets/pages/authority-tertiary-groups.ets index f38ad6568ff06fa3cbfbf1d96f8fde337bfbcbd3..77903cfe20f7bcb01e262a4cb99dce3c2f3694c4 100644 --- a/permissionmanager/src/main/ets/pages/authority-tertiary-groups.ets +++ b/permissionmanager/src/main/ets/pages/authority-tertiary-groups.ets @@ -188,10 +188,11 @@ struct applicationItem { Text(item.labelId) .fontSize(Constants.TEXT_MIDDLE_FONT_SIZE) .fontColor($r('app.color.text_color')) + .fontWeight(FontWeight.Medium) .flexGrow(Constants.FLEX_GROW) if (polymorphismGroup.indexOf(globalThis.currentPermissionGroup) == -1) { Toggle({ type: ToggleType.Switch, isOn: this.toggleIsOn[item.index] }) - .selectedColor($r('app.color.toggle_color')) + .selectedColor($r('app.color.button_color')) .width(Constants.AUTHORITY_TOGGLE_WIDTH) .height(Constants.AUTHORITY_TOGGLE_HEIGHT) .onChange((isOn: boolean) => { @@ -440,6 +441,7 @@ struct applicationItem { Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }) { Text(globalThis.currentPermissionGroup == "CAMERA" ? $r('app.string.camera') : $r('app.string.microphone')) .fontSize(Constants.TEXT_MIDDLE_FONT_SIZE).fontColor($r('app.color.label_color')) + .fontWeight(FontWeight.Medium) Row() { Toggle({ type: ToggleType.Switch, isOn: this.globalIsOn }) .selectedColor($r('app.color.button_color')) diff --git a/permissionmanager/src/main/ets/pages/authority-tertiary.ets b/permissionmanager/src/main/ets/pages/authority-tertiary.ets index fdb1d01a5a5902242fce500399967a246d53f5ae..800b32952290784554f2349af9b18566da1eaad2 100644 --- a/permissionmanager/src/main/ets/pages/authority-tertiary.ets +++ b/permissionmanager/src/main/ets/pages/authority-tertiary.ets @@ -139,7 +139,7 @@ struct applicationItem { .fontColor($r('app.color.label_color')) .flexGrow(Constants.FLEX_GROW) Toggle({ type: ToggleType.Switch, isOn: this.toggleIsOn[item.index] }) - .selectedColor($r('app.color.toggle_color')) + .selectedColor($r('app.color.button_color')) .width(Constants.AUTHORITY_TOGGLE_WIDTH) .height(Constants.AUTHORITY_TOGGLE_HEIGHT) .onChange((isOn: boolean) => { diff --git a/permissionmanager/src/main/ets/pages/globalSwitch.ets b/permissionmanager/src/main/ets/pages/globalSwitch.ets index b0c85d5cf0756e35bf5cb9e217c94b7b8bc52f85..1a53b4ddd5306504af936caf30b8dc83cd200308 100644 --- a/permissionmanager/src/main/ets/pages/globalSwitch.ets +++ b/permissionmanager/src/main/ets/pages/globalSwitch.ets @@ -31,7 +31,7 @@ const CAMERA = 'camera' @Entry @Component -export struct globalSwitch { +struct globalSwitch { privacyDialogController: CustomDialogController = new CustomDialogController({ builder: globalDialog(), autoCancel: false, @@ -58,6 +58,7 @@ struct globalDialog { $r('app.string.global_title_camera_and_microphone')) .fontSize(Constants.TEXT_BIG_FONT_SIZE) .fontColor($r('app.color.label_color')) + .fontWeight(FontWeight.Medium) .lineHeight(Constants.TEXT_BIG_LINE_HEIGHT) .height(Constants.ROW_HEIGHT) .width(Constants.FULL_WIDTH) diff --git a/permissionmanager/src/main/resources/zh_CN/element/string.json b/permissionmanager/src/main/resources/zh_CN/element/string.json index 3e85ef9bffeabb6701ae2ec5d4d83ed8f3110495..ee41e2f36ec72c757261297da58834967a519fb9 100644 --- a/permissionmanager/src/main/resources/zh_CN/element/string.json +++ b/permissionmanager/src/main/resources/zh_CN/element/string.json @@ -194,11 +194,11 @@ }, { "name": "close_microphone_desc", - "value": "关闭后,所有应用服务都将无法正常使用麦克风通话、录制音频或进行语音唤醒。如需恢复,请打开麦克风开关。" + "value": "关闭后,所有应用服务都将无法正常使用麦克风通话、录制音频或进行语音唤醒。若需恢复,请打开麦克风开关。" }, { "name": "close_camera_desc", - "value": "关闭后,所有应用服务都将无法正常使用摄像头拍摄照片、视频或进行人脸识别。如需恢复,请打开摄像头开关。" + "value": "关闭后,所有应用服务都将无法正常使用摄像头拍摄照片、视频或进行人脸识别。若需恢复,请打开摄像头开关。" } ] } \ No newline at end of file