提交 87ece284 编写于 作者: Q qinliwen

<modify select color>

Signed-off-by: Nqinliwen <qinliwen3@huawei.com>
上级 0b7f3061
......@@ -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`)
......
......@@ -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)
......
......@@ -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)
......
......@@ -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() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册