wangliang_wd

feat:优化早晚报渐变线条展示

... ... @@ -56,7 +56,7 @@ export struct PaperTitleComponent {
})
Text(this.title ?? "")
.margin({ left: 10 })
.margin({ left: 10,top:-3 })
.fontSize(22)
.fontColor($r('app.color.white'))
.fontFamily('SourceHanSerifSC-Heavy')
... ... @@ -132,9 +132,9 @@ export struct PaperTitleComponent {
Row()
.width(DisplayUtils.getDeviceWidth() - 265)
.height('18vp')
// .clip(new Path({
// commands: `M${vp2px(9)} 0 H${vp2px(91)} V${vp2px(18)} L0 ${vp2px(18)} Z`
// }))
.clip(new Path({
commands: `M${vp2px(9)} 0 H${vp2px(300)} V${vp2px(18)} L0 ${vp2px(18)} Z`
}))
.linearGradient({
direction: GradientDirection.Right, // 渐变方向
repeating: false, // 渐变颜色是否重复
... ...