沉浸式频道(P0)
1、 全屏图标距离左侧间距偏小改为16 2、 关注图标偏大改为24(已经是24了) 3、 间距改为 8(改) 4、 标题字号改为16 行高 22(改) 5、 间距偏大改为 8(改) 6、 间距改为 8(改) 7、 滑块和进度条没有垂直居中(改) 8、 头部缺少背景蒙层(设计图没有) 9、 底部缺少背景蒙层(改) 10、 未选中文字颜色不对(改) 11、 搜索图标颜色不对(改) 12、 进度拖拽颜色不对(改) 13、 全文按钮颜色不对,点击范围太小(改) 14、 评论弹窗推起视频区域缩小动效有问题(设置动画无效,已提issue) 15、 评论弹窗去掉圆角(bindSheet导致) 16、 缺省文案颜色不对改为#999999(改) 17、 数字标签和图标位置关系不对(没明白)
Showing
5 changed files
with
21 additions
and
11 deletions
| @@ -62,7 +62,6 @@ export struct EmptyComponent { | @@ -62,7 +62,6 @@ export struct EmptyComponent { | ||
| 62 | @State emptyButton: boolean = false | 62 | @State emptyButton: boolean = false |
| 63 | @State isBlack: boolean = false // 背景是否为黑色 默认白色 | 63 | @State isBlack: boolean = false // 背景是否为黑色 默认白色 |
| 64 | @State timeNum: number = 10 | 64 | @State timeNum: number = 10 |
| 65 | - | ||
| 66 | /** | 65 | /** |
| 67 | * The empty image width percentage setting. | 66 | * The empty image width percentage setting. |
| 68 | */ | 67 | */ |
| @@ -100,12 +99,10 @@ export struct EmptyComponent { | @@ -100,12 +99,10 @@ export struct EmptyComponent { | ||
| 100 | } | 99 | } |
| 101 | } | 100 | } |
| 102 | 101 | ||
| 103 | - | ||
| 104 | aboutToAppear(): void { | 102 | aboutToAppear(): void { |
| 105 | this.createTimer() | 103 | this.createTimer() |
| 106 | } | 104 | } |
| 107 | 105 | ||
| 108 | - | ||
| 109 | aboutToDisappear() { | 106 | aboutToDisappear() { |
| 110 | this.destroyTimer() | 107 | this.destroyTimer() |
| 111 | } | 108 | } |
| @@ -133,7 +130,7 @@ export struct EmptyComponent { | @@ -133,7 +130,7 @@ export struct EmptyComponent { | ||
| 133 | .fontWeight(FontWeight.Normal) | 130 | .fontWeight(FontWeight.Normal) |
| 134 | .opacity(this.TEXT_OPACITY) | 131 | .opacity(this.TEXT_OPACITY) |
| 135 | .margin({ top: this.EMPTY_TIP_TEXT_MARGIN_TOP }) | 132 | .margin({ top: this.EMPTY_TIP_TEXT_MARGIN_TOP }) |
| 136 | - .fontColor('#666666') | 133 | + .fontColor(this.emptyType === WDViewDefaultType.WDViewDefaultType_NoComment1 ? '#999999' : '#666666') |
| 137 | .onClick((event: ClickEvent) => { | 134 | .onClick((event: ClickEvent) => { |
| 138 | Logger.info(TAG, `noProgrammeData onClick event?.source: ${event.source}`); | 135 | Logger.info(TAG, `noProgrammeData onClick event?.source: ${event.source}`); |
| 139 | }) | 136 | }) |
| @@ -216,7 +213,7 @@ export struct EmptyComponent { | @@ -216,7 +213,7 @@ export struct EmptyComponent { | ||
| 216 | contentString = '暂无评论,快来抢沙发' | 213 | contentString = '暂无评论,快来抢沙发' |
| 217 | } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoContent2) { | 214 | } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoContent2) { |
| 218 | contentString = '内容找不到了' | 215 | contentString = '内容找不到了' |
| 219 | - } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoUserHomepage){ | 216 | + } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoUserHomepage) { |
| 220 | contentString = '暂时无法查看该创作者主页' | 217 | contentString = '暂时无法查看该创作者主页' |
| 221 | } | 218 | } |
| 222 | 219 | ||
| @@ -253,9 +250,9 @@ export struct EmptyComponent { | @@ -253,9 +250,9 @@ export struct EmptyComponent { | ||
| 253 | } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoContent1 || | 250 | } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoContent1 || |
| 254 | this.emptyType === WDViewDefaultType.WDViewDefaultType_NoFollow) { | 251 | this.emptyType === WDViewDefaultType.WDViewDefaultType_NoFollow) { |
| 255 | imageString = $r('app.media.icon_no_appointmentMade1') | 252 | imageString = $r('app.media.icon_no_appointmentMade1') |
| 256 | - }else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoUserHomepage){ | 253 | + } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoUserHomepage) { |
| 257 | imageString = $r('app.media.icon_no_master1') | 254 | imageString = $r('app.media.icon_no_master1') |
| 258 | - }else if(this.emptyType === WDViewDefaultType.WDViewDefaultType_NoContent2){ | 255 | + } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoContent2) { |
| 259 | imageString = $r('app.media.icon_no_content1') | 256 | imageString = $r('app.media.icon_no_content1') |
| 260 | } | 257 | } |
| 261 | return imageString | 258 | return imageString |
| @@ -27,6 +27,11 @@ export struct PlayerBottomView { | @@ -27,6 +27,11 @@ export struct PlayerBottomView { | ||
| 27 | .alignItems(HorizontalAlign.Start) | 27 | .alignItems(HorizontalAlign.Start) |
| 28 | .position({ x: 0, y: '100%' }) | 28 | .position({ x: 0, y: '100%' }) |
| 29 | .markAnchor({ y: '100%' }) | 29 | .markAnchor({ y: '100%' }) |
| 30 | + .linearGradient({ | ||
| 31 | + colors: [ | ||
| 32 | + ['rgba(0, 0, 0, 0.0)', 0.0], ['rgba(0, 0, 0, 0.4)', 1.0] | ||
| 33 | + ] | ||
| 34 | + }) | ||
| 30 | .visibility(this.displayDirection === DisplayDirection.VERTICAL ? | 35 | .visibility(this.displayDirection === DisplayDirection.VERTICAL ? |
| 31 | Visibility.Visible : Visibility.None) | 36 | Visibility.Visible : Visibility.None) |
| 32 | } | 37 | } |
| @@ -134,7 +134,7 @@ export struct PlayerFullScreenView { | @@ -134,7 +134,7 @@ export struct PlayerFullScreenView { | ||
| 134 | Span(' / ') | 134 | Span(' / ') |
| 135 | .fontColor(Color.White) | 135 | .fontColor(Color.White) |
| 136 | Span(this.duration) | 136 | Span(this.duration) |
| 137 | - .fontColor('#888888') | 137 | + .fontColor('#99FFFFFF') |
| 138 | 138 | ||
| 139 | } | 139 | } |
| 140 | .fontSize(24) | 140 | .fontSize(24) |
| @@ -87,7 +87,7 @@ export struct PlayerProgressView { | @@ -87,7 +87,7 @@ export struct PlayerProgressView { | ||
| 87 | Span(' / ') | 87 | Span(' / ') |
| 88 | .fontColor(Color.White) | 88 | .fontColor(Color.White) |
| 89 | Span(DateTimeUtils.secondToTime(this.videoDuration)) | 89 | Span(DateTimeUtils.secondToTime(this.videoDuration)) |
| 90 | - .fontColor('#888888') | 90 | + .fontColor('#99FFFFFF') |
| 91 | } | 91 | } |
| 92 | .fontSize(24) | 92 | .fontSize(24) |
| 93 | 93 |
| @@ -88,11 +88,12 @@ export struct VideoChannelPage { | @@ -88,11 +88,12 @@ export struct VideoChannelPage { | ||
| 88 | * @returns | 88 | * @returns |
| 89 | */ | 89 | */ |
| 90 | tabSelectedColor(selected: boolean): string { | 90 | tabSelectedColor(selected: boolean): string { |
| 91 | + console.info(`cj2024 selected this.navItem.channelChooseColor=${this.navItem.channelChooseColor}`) | ||
| 91 | if (selected) { | 92 | if (selected) { |
| 92 | return this.navItem.channelChooseColor ? this.navItem.channelChooseColor : '#222222' | 93 | return this.navItem.channelChooseColor ? this.navItem.channelChooseColor : '#222222' |
| 93 | } else { | 94 | } else { |
| 94 | let ccolor = this.navItem.channelChooseCColor.replace('#', '#B3') | 95 | let ccolor = this.navItem.channelChooseCColor.replace('#', '#B3') |
| 95 | - return this.navItem.channelChooseCColor ? ccolor : '#B3999999' | 96 | + return this.navItem.channelChooseCColor ? ccolor : '#B3FFFFFF' |
| 96 | } | 97 | } |
| 97 | 98 | ||
| 98 | } | 99 | } |
| @@ -171,12 +172,13 @@ export struct VideoChannelPage { | @@ -171,12 +172,13 @@ export struct VideoChannelPage { | ||
| 171 | 172 | ||
| 172 | // 搜索按钮 | 173 | // 搜索按钮 |
| 173 | Row() { | 174 | Row() { |
| 174 | - Image($r(this.isImmerseChannel() ? 'app.media.icon_search_gray_svg' : | 175 | + Image($r(this.isImmerseChannel() ? 'app.media.icon_search' : |
| 175 | 'app.media.icon_search')) | 176 | 'app.media.icon_search')) |
| 176 | .colorFilter(this.isImmerseChannel() ? undefined : | 177 | .colorFilter(this.isImmerseChannel() ? undefined : |
| 177 | ColorUtils.getDrawingColorFilter(this.getBothColor(""))) | 178 | ColorUtils.getDrawingColorFilter(this.getBothColor(""))) |
| 178 | .width('24vp') | 179 | .width('24vp') |
| 179 | .height('24vp') | 180 | .height('24vp') |
| 181 | + .opacity(this.isImmerseChannel() ? 0.8 : 1.0) | ||
| 180 | } | 182 | } |
| 181 | .width('40vp') | 183 | .width('40vp') |
| 182 | .margin({ | 184 | .margin({ |
| @@ -193,6 +195,12 @@ export struct VideoChannelPage { | @@ -193,6 +195,12 @@ export struct VideoChannelPage { | ||
| 193 | .backgroundColor(Color.Transparent) | 195 | .backgroundColor(Color.Transparent) |
| 194 | 196 | ||
| 195 | } | 197 | } |
| 198 | + //顶部渐变遮罩 | ||
| 199 | + // .linearGradient({ | ||
| 200 | + // colors: [ | ||
| 201 | + // ['rgba(0, 0, 0, 0.0)', 0.0], ['rgba(0, 0, 0, 0.3)', 1.0] | ||
| 202 | + // ] | ||
| 203 | + // }) | ||
| 196 | .zIndex(20) | 204 | .zIndex(20) |
| 197 | .height($r('app.float.top_tab_bar_height_common')) | 205 | .height($r('app.float.top_tab_bar_height_common')) |
| 198 | .margin({ | 206 | .margin({ |
-
Please register or login to post a comment