Showing
1 changed file
with
4 additions
and
4 deletions
| @@ -56,7 +56,7 @@ export struct PaperTitleComponent { | @@ -56,7 +56,7 @@ export struct PaperTitleComponent { | ||
| 56 | }) | 56 | }) |
| 57 | 57 | ||
| 58 | Text(this.title ?? "") | 58 | Text(this.title ?? "") |
| 59 | - .margin({ left: 10 }) | 59 | + .margin({ left: 10,top:-3 }) |
| 60 | .fontSize(22) | 60 | .fontSize(22) |
| 61 | .fontColor($r('app.color.white')) | 61 | .fontColor($r('app.color.white')) |
| 62 | .fontFamily('SourceHanSerifSC-Heavy') | 62 | .fontFamily('SourceHanSerifSC-Heavy') |
| @@ -132,9 +132,9 @@ export struct PaperTitleComponent { | @@ -132,9 +132,9 @@ export struct PaperTitleComponent { | ||
| 132 | Row() | 132 | Row() |
| 133 | .width(DisplayUtils.getDeviceWidth() - 265) | 133 | .width(DisplayUtils.getDeviceWidth() - 265) |
| 134 | .height('18vp') | 134 | .height('18vp') |
| 135 | - // .clip(new Path({ | ||
| 136 | - // commands: `M${vp2px(9)} 0 H${vp2px(91)} V${vp2px(18)} L0 ${vp2px(18)} Z` | ||
| 137 | - // })) | 135 | + .clip(new Path({ |
| 136 | + commands: `M${vp2px(9)} 0 H${vp2px(300)} V${vp2px(18)} L0 ${vp2px(18)} Z` | ||
| 137 | + })) | ||
| 138 | .linearGradient({ | 138 | .linearGradient({ |
| 139 | direction: GradientDirection.Right, // 渐变方向 | 139 | direction: GradientDirection.Right, // 渐变方向 |
| 140 | repeating: false, // 渐变颜色是否重复 | 140 | repeating: false, // 渐变颜色是否重复 |
-
Please register or login to post a comment