diff --git a/validator/acts_validator/src/main/ets/pages/Camera/CameraPhotoFormat.ets b/validator/acts_validator/src/main/ets/pages/Camera/CameraPhotoFormat.ets index 16c7e68974b7c4b93ae2d5dade290eefd8c40a6b..60bb60a03067149a135c064fd2dd6a4e0391a8b9 100644 --- a/validator/acts_validator/src/main/ets/pages/Camera/CameraPhotoFormat.ets +++ b/validator/acts_validator/src/main/ets/pages/Camera/CameraPhotoFormat.ets @@ -174,6 +174,7 @@ struct cameraOrientation { CameraService.initCamera(this.surfaceId, this.cameraDeviceIndex, obj) Logger.info(this.tag, `onSelect Rotation index: ${index}, value: ${value}, obj: ${obj}`) }) + .backgroundColor(Color.Black) Select(this.cameraList) .selected(this.cameraDeviceIndex) .value(this.cameraDeviceIndex ? 'Camera 1' : 'Camera 0') @@ -189,6 +190,7 @@ struct cameraOrientation { this.cameraListFn() }) }) + .backgroundColor(Color.Black) }.justifyContent(FlexAlign.SpaceEvenly) Text(`提示:不同拍照分辨率下进行拍摄,图片拍摄成功且与预览画面一致则选择pass,否则选择fail`) diff --git a/validator/acts_validator/src/main/ets/pages/Camera/CameraPreviewFormat.ets b/validator/acts_validator/src/main/ets/pages/Camera/CameraPreviewFormat.ets index 915e7d5c9e3e2a4955cd4df714bd18d937a22c0e..ec4358f7a8c640bcd667d3fd6a01557aa03e4e28 100644 --- a/validator/acts_validator/src/main/ets/pages/Camera/CameraPreviewFormat.ets +++ b/validator/acts_validator/src/main/ets/pages/Camera/CameraPreviewFormat.ets @@ -173,6 +173,7 @@ struct cameraFormat { CameraService.initCamera(this.surfaceId, this.cameraDeviceIndex, obj) Logger.info(this.tag, `onSelect Rotation index: ${index}, value: ${value}, obj: ${obj}`) }) + .backgroundColor(Color.Black) Select(this.cameraList) .selected(this.cameraDeviceIndex) .value(this.cameraDeviceIndex ? 'Camera 1' : 'Camera 0') @@ -186,6 +187,7 @@ struct cameraFormat { this.cameraDeviceIndex = index this.cameraInit() }) + .backgroundColor(Color.Black) }.size({ width: '100%', height: '50%' }).justifyContent(FlexAlign.SpaceEvenly) Row() { @@ -201,6 +203,7 @@ struct cameraFormat { .onSelect((index: number, value) => { Logger.info(this.tag, `onSelect format index: ${index}, value: ${value}`) }) + .backgroundColor(Color.Black) Button('下一个') .borderRadius(8) .backgroundColor(0x317aff) diff --git a/validator/acts_validator/src/main/ets/pages/Camera/CameraSerialPhoto.ets b/validator/acts_validator/src/main/ets/pages/Camera/CameraSerialPhoto.ets index 2d7336da2ea620e9843f17ac4d52e95b958ef982..3b7c2d566fba0dcb79253f454da541b8ecbf6867 100644 --- a/validator/acts_validator/src/main/ets/pages/Camera/CameraSerialPhoto.ets +++ b/validator/acts_validator/src/main/ets/pages/Camera/CameraSerialPhoto.ets @@ -158,6 +158,7 @@ struct cameraOrientation { this.cameraListFn() }) }) + .backgroundColor(Color.Black) Text(`提示:`).fontSize('16fp').fontColor(Color.White) Text(`期望拍摄${this.cameraListLength*10}张照片,实际拍摄${this.clickSerialPhotoVal}张,如果一致请选择pass,否则选择fail`) .fontSize('16fp').fontColor(Color.White) diff --git a/validator/acts_validator/src/main/ets/pages/Camera/CameraVideo.ets b/validator/acts_validator/src/main/ets/pages/Camera/CameraVideo.ets index fdb4073da989885bd1b0a85f0eeb6a183ccc8251..de603cb9263eff5456d0a4ed43dd235e708d1236 100644 --- a/validator/acts_validator/src/main/ets/pages/Camera/CameraVideo.ets +++ b/validator/acts_validator/src/main/ets/pages/Camera/CameraVideo.ets @@ -202,6 +202,7 @@ struct cameraOrientation { CameraService.initCamera(this.surfaceId, this.cameraDeviceIndex, obj) Logger.info(this.tag, `onSelect Rotation index: ${index}, value: ${value}, obj: ${obj}`) }) + .backgroundColor(Color.Black) Select(this.cameraList) .selected(this.cameraDeviceIndex) .value(this.cameraDeviceIndex ? 'Camera 1' : 'Camera 0') @@ -216,6 +217,7 @@ struct cameraOrientation { this.cameraDeviceIndex = index this.cameraInit() }) + .backgroundColor(Color.Black) Select([{ value: 'YUV' }]) .selected(0) .value('YUV') @@ -229,6 +231,7 @@ struct cameraOrientation { .onSelect((index: number, value) => { Logger.info(this.tag, `onSelect format index: ${index}, value: ${value}`) }) + .backgroundColor(Color.Black) }.size({ width: '100%', height: '50%' }) Row() {