|
|
@@ -219,8 +219,8 @@ export struct ScanFilePage{
|
|
|
this.mainCanvasRenderingContext.imageSmoothingQuality = 'medium'
|
|
|
})
|
|
|
}
|
|
|
- .transition(TransitionEffect.move(TransitionEdge.BOTTOM)
|
|
|
- .animation({ duration: 380, curve: Curve.Ease,delay:30 }))
|
|
|
+ .transition(TransitionEffect.move(TransitionEdge.END)
|
|
|
+ .animation({ duration: 380, curve: Curve.Ease,delay:300 }))
|
|
|
|
|
|
Text(this.strText)
|
|
|
.height(50)
|
|
|
@@ -229,21 +229,35 @@ export struct ScanFilePage{
|
|
|
.fontWeight(480)
|
|
|
.visibility(this.textVisi)
|
|
|
|
|
|
- Button($r('app.string.start_scan'), { type: ButtonType.Capsule, stateEffect: false })
|
|
|
+ Button({ type: ButtonType.Capsule, stateEffect: true }) {
|
|
|
+ Row(){
|
|
|
+ SymbolGlyph($r('sys.symbol.magnifyingglass'))
|
|
|
+ .fontSize(22)
|
|
|
+ .fontColor([Color.White])
|
|
|
+ Text($r('app.string.start_scan'))
|
|
|
+ .margin({ left: 8 })
|
|
|
+ .fontSize(18)
|
|
|
+ .fontColor(Color.White)
|
|
|
+ .fontWeight(480)
|
|
|
+ .textAlign(TextAlign.Center)
|
|
|
+ }
|
|
|
+ .justifyContent(FlexAlign.Center)
|
|
|
+ }
|
|
|
+ .width(180)
|
|
|
+ .height(55)
|
|
|
+ .clickEffect({level:ClickEffectLevel.LIGHT, scale: 0.5})
|
|
|
+ .margin({ top: 10, bottom: 10 })
|
|
|
+ .backgroundColor(this.themeColor)
|
|
|
+ .enabled(this.isStart ?false:true)
|
|
|
+ .onClick(() => {
|
|
|
+ this.doOptimize(false)
|
|
|
+
|
|
|
+ })
|
|
|
+ .alignSelf(ItemAlign.Center)
|
|
|
+ .transition(TransitionEffect.move(TransitionEdge.END)
|
|
|
+ .animation({ duration: 380, curve: Curve.Ease,delay:300 }))
|
|
|
|
|
|
- .width(180)
|
|
|
- .height(55)
|
|
|
- .clickEffect({level:ClickEffectLevel.LIGHT, scale: 0.5})
|
|
|
- .margin({ top: 10, bottom: 10 })
|
|
|
- .backgroundColor(this.themeColor)
|
|
|
- .enabled(this.isStart ?false:true)
|
|
|
- .onClick(() => {
|
|
|
- this.doOptimize(false)
|
|
|
|
|
|
- })
|
|
|
- .alignSelf(ItemAlign.Center)
|
|
|
- .transition(TransitionEffect.move(TransitionEdge.BOTTOM)
|
|
|
- .animation({ duration: 380, curve: Curve.Ease,delay:30 }))
|
|
|
|
|
|
Column() {
|
|
|
Row() {
|
|
|
@@ -314,46 +328,71 @@ export struct ScanFilePage{
|
|
|
.margin({ left:25,right: 25,top:20,bottom:20 })
|
|
|
.borderRadius(20)
|
|
|
.justifyContent(FlexAlign.Center)
|
|
|
- .transition(TransitionEffect.move(TransitionEdge.BOTTOM)
|
|
|
- .animation({ duration: 380, curve: Curve.Ease,delay:60 }))
|
|
|
+ .transition(TransitionEffect.move(TransitionEdge.END)
|
|
|
+ .animation({ duration: 380, curve: Curve.Ease,delay:300 }))
|
|
|
|
|
|
Row() {
|
|
|
|
|
|
+ Button({ type: ButtonType.Capsule, stateEffect: true }) {
|
|
|
+ Row(){
|
|
|
+ SymbolGlyph($r('sys.symbol.picture'))
|
|
|
+ .fontSize(19)
|
|
|
+ .fontColor([Color.White])
|
|
|
+ Text($r('app.string.onekey_cover'))
|
|
|
+ .margin({ left: 4 })
|
|
|
+ .fontSize(15)
|
|
|
+ .fontColor(Color.White)
|
|
|
+ .fontWeight(480)
|
|
|
+ .textAlign(TextAlign.Center)
|
|
|
+ }
|
|
|
+ .justifyContent(FlexAlign.Center)
|
|
|
+ }
|
|
|
+ .width(150)
|
|
|
+ .height(55)
|
|
|
+ .clickEffect({level:ClickEffectLevel.LIGHT, scale: 0.5})
|
|
|
+ .margin({ top: 10, bottom: 10,right:10 })
|
|
|
+ .backgroundColor(this.themeColor)
|
|
|
+ .enabled(this.isStartCover ?false:true)
|
|
|
+ .onClick(() => {
|
|
|
+ if(PreferencesUtil.getStringSync('COVER_API','')===''){
|
|
|
+ this.showTipsDialog()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.doOptimize(true)
|
|
|
|
|
|
- Button($r('app.string.onekey_cover'), { type: ButtonType.Capsule, stateEffect: false })
|
|
|
- .width(150)
|
|
|
- .height(55)
|
|
|
- .clickEffect({level:ClickEffectLevel.LIGHT, scale: 0.5})
|
|
|
- .margin({ top: 10, bottom: 10,right:10 })
|
|
|
- .backgroundColor(this.themeColor)
|
|
|
- .enabled(this.isStartCover ?false:true)
|
|
|
- .onClick(() => {
|
|
|
- if(PreferencesUtil.getStringSync('COVER_API','')===''){
|
|
|
- this.showTipsDialog()
|
|
|
- return
|
|
|
- }
|
|
|
- this.doOptimize(true)
|
|
|
-
|
|
|
- })
|
|
|
- .alignSelf(ItemAlign.Center)
|
|
|
+ })
|
|
|
+ .alignSelf(ItemAlign.Center)
|
|
|
|
|
|
- Button($r('app.string.sync_data'), { type: ButtonType.Capsule, stateEffect: false })
|
|
|
- .width(150)
|
|
|
- .height(55)
|
|
|
- .clickEffect({level:ClickEffectLevel.LIGHT, scale: 0.5})
|
|
|
- .margin({ left:10,top: 10, bottom: 10 })
|
|
|
- .backgroundColor(this.themeColor)
|
|
|
- .enabled(this.isStartSync ?false:true)
|
|
|
- .onClick(() => {
|
|
|
- this.doSyncData()
|
|
|
+ Button({ type: ButtonType.Capsule, stateEffect: true }) {
|
|
|
+ Row(){
|
|
|
+ SymbolGlyph($r('sys.symbol.arrow_counterclockwise'))
|
|
|
+ .fontSize(19)
|
|
|
+ .fontColor([Color.White])
|
|
|
+ Text($r('app.string.sync_data'))
|
|
|
+ .margin({ left: 4 })
|
|
|
+ .fontSize(15)
|
|
|
+ .fontColor(Color.White)
|
|
|
+ .fontWeight(480)
|
|
|
+ .textAlign(TextAlign.Center)
|
|
|
+ }
|
|
|
+ .justifyContent(FlexAlign.Center)
|
|
|
+ }
|
|
|
+ .width(150)
|
|
|
+ .height(55)
|
|
|
+ .clickEffect({level:ClickEffectLevel.LIGHT, scale: 0.5})
|
|
|
+ .margin({ top: 10, bottom: 10,right:10 })
|
|
|
+ .backgroundColor(this.themeColor)
|
|
|
+ .enabled(this.isStartSync ?false:true)
|
|
|
+ .onClick(() => {
|
|
|
+ this.doSyncData()
|
|
|
|
|
|
- })
|
|
|
- .alignSelf(ItemAlign.Center)
|
|
|
+ })
|
|
|
+ .alignSelf(ItemAlign.Center)
|
|
|
|
|
|
|
|
|
}
|
|
|
- .transition(TransitionEffect.move(TransitionEdge.BOTTOM)
|
|
|
- .animation({ duration: 380, curve: Curve.Ease,delay:90 }))
|
|
|
+ .transition(TransitionEffect.move(TransitionEdge.END)
|
|
|
+ .animation({ duration: 380, curve: Curve.Ease,delay:300 }))
|
|
|
|
|
|
}
|
|
|
|