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

<modify select color>

Signed-off-by: Nqinliwen <qinliwen3@huawei.com>
上级 0b7f3061
...@@ -174,6 +174,7 @@ struct cameraOrientation { ...@@ -174,6 +174,7 @@ struct cameraOrientation {
CameraService.initCamera(this.surfaceId, this.cameraDeviceIndex, obj) CameraService.initCamera(this.surfaceId, this.cameraDeviceIndex, obj)
Logger.info(this.tag, `onSelect Rotation index: ${index}, value: ${value}, obj: ${obj}`) Logger.info(this.tag, `onSelect Rotation index: ${index}, value: ${value}, obj: ${obj}`)
}) })
.backgroundColor(Color.Black)
Select(this.cameraList) Select(this.cameraList)
.selected(this.cameraDeviceIndex) .selected(this.cameraDeviceIndex)
.value(this.cameraDeviceIndex ? 'Camera 1' : 'Camera 0') .value(this.cameraDeviceIndex ? 'Camera 1' : 'Camera 0')
...@@ -189,6 +190,7 @@ struct cameraOrientation { ...@@ -189,6 +190,7 @@ struct cameraOrientation {
this.cameraListFn() this.cameraListFn()
}) })
}) })
.backgroundColor(Color.Black)
}.justifyContent(FlexAlign.SpaceEvenly) }.justifyContent(FlexAlign.SpaceEvenly)
Text(`提示:不同拍照分辨率下进行拍摄,图片拍摄成功且与预览画面一致则选择pass,否则选择fail`) Text(`提示:不同拍照分辨率下进行拍摄,图片拍摄成功且与预览画面一致则选择pass,否则选择fail`)
......
...@@ -173,6 +173,7 @@ struct cameraFormat { ...@@ -173,6 +173,7 @@ struct cameraFormat {
CameraService.initCamera(this.surfaceId, this.cameraDeviceIndex, obj) CameraService.initCamera(this.surfaceId, this.cameraDeviceIndex, obj)
Logger.info(this.tag, `onSelect Rotation index: ${index}, value: ${value}, obj: ${obj}`) Logger.info(this.tag, `onSelect Rotation index: ${index}, value: ${value}, obj: ${obj}`)
}) })
.backgroundColor(Color.Black)
Select(this.cameraList) Select(this.cameraList)
.selected(this.cameraDeviceIndex) .selected(this.cameraDeviceIndex)
.value(this.cameraDeviceIndex ? 'Camera 1' : 'Camera 0') .value(this.cameraDeviceIndex ? 'Camera 1' : 'Camera 0')
...@@ -186,6 +187,7 @@ struct cameraFormat { ...@@ -186,6 +187,7 @@ struct cameraFormat {
this.cameraDeviceIndex = index this.cameraDeviceIndex = index
this.cameraInit() this.cameraInit()
}) })
.backgroundColor(Color.Black)
}.size({ width: '100%', height: '50%' }).justifyContent(FlexAlign.SpaceEvenly) }.size({ width: '100%', height: '50%' }).justifyContent(FlexAlign.SpaceEvenly)
Row() { Row() {
...@@ -201,6 +203,7 @@ struct cameraFormat { ...@@ -201,6 +203,7 @@ struct cameraFormat {
.onSelect((index: number, value) => { .onSelect((index: number, value) => {
Logger.info(this.tag, `onSelect format index: ${index}, value: ${value}`) Logger.info(this.tag, `onSelect format index: ${index}, value: ${value}`)
}) })
.backgroundColor(Color.Black)
Button('下一个') Button('下一个')
.borderRadius(8) .borderRadius(8)
.backgroundColor(0x317aff) .backgroundColor(0x317aff)
......
...@@ -158,6 +158,7 @@ struct cameraOrientation { ...@@ -158,6 +158,7 @@ struct cameraOrientation {
this.cameraListFn() this.cameraListFn()
}) })
}) })
.backgroundColor(Color.Black)
Text(`提示:`).fontSize('16fp').fontColor(Color.White) Text(`提示:`).fontSize('16fp').fontColor(Color.White)
Text(`期望拍摄${this.cameraListLength*10}张照片,实际拍摄${this.clickSerialPhotoVal}张,如果一致请选择pass,否则选择fail`) Text(`期望拍摄${this.cameraListLength*10}张照片,实际拍摄${this.clickSerialPhotoVal}张,如果一致请选择pass,否则选择fail`)
.fontSize('16fp').fontColor(Color.White) .fontSize('16fp').fontColor(Color.White)
......
...@@ -202,6 +202,7 @@ struct cameraOrientation { ...@@ -202,6 +202,7 @@ struct cameraOrientation {
CameraService.initCamera(this.surfaceId, this.cameraDeviceIndex, obj) CameraService.initCamera(this.surfaceId, this.cameraDeviceIndex, obj)
Logger.info(this.tag, `onSelect Rotation index: ${index}, value: ${value}, obj: ${obj}`) Logger.info(this.tag, `onSelect Rotation index: ${index}, value: ${value}, obj: ${obj}`)
}) })
.backgroundColor(Color.Black)
Select(this.cameraList) Select(this.cameraList)
.selected(this.cameraDeviceIndex) .selected(this.cameraDeviceIndex)
.value(this.cameraDeviceIndex ? 'Camera 1' : 'Camera 0') .value(this.cameraDeviceIndex ? 'Camera 1' : 'Camera 0')
...@@ -216,6 +217,7 @@ struct cameraOrientation { ...@@ -216,6 +217,7 @@ struct cameraOrientation {
this.cameraDeviceIndex = index this.cameraDeviceIndex = index
this.cameraInit() this.cameraInit()
}) })
.backgroundColor(Color.Black)
Select([{ value: 'YUV' }]) Select([{ value: 'YUV' }])
.selected(0) .selected(0)
.value('YUV') .value('YUV')
...@@ -229,6 +231,7 @@ struct cameraOrientation { ...@@ -229,6 +231,7 @@ struct cameraOrientation {
.onSelect((index: number, value) => { .onSelect((index: number, value) => {
Logger.info(this.tag, `onSelect format index: ${index}, value: ${value}`) Logger.info(this.tag, `onSelect format index: ${index}, value: ${value}`)
}) })
.backgroundColor(Color.Black)
}.size({ width: '100%', height: '50%' }) }.size({ width: '100%', height: '50%' })
Row() { Row() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部