Showing
1 changed file
with
9 additions
and
2 deletions
| @@ -4,6 +4,7 @@ import { Logger, StringUtils } from 'wdKit/Index' | @@ -4,6 +4,7 @@ import { Logger, StringUtils } from 'wdKit/Index' | ||
| 4 | import { WDRouterRule } from 'wdRouter' | 4 | import { WDRouterRule } from 'wdRouter' |
| 5 | import { ExtraDTO } from 'wdBean/src/main/ets/bean/component/extra/ExtraDTO' | 5 | import { ExtraDTO } from 'wdBean/src/main/ets/bean/component/extra/ExtraDTO' |
| 6 | import { LiveMessageOptType, LiveMessageRole } from 'wdBean/src/main/ets/bean/live/LiveRoomBean' | 6 | import { LiveMessageOptType, LiveMessageRole } from 'wdBean/src/main/ets/bean/live/LiveRoomBean' |
| 7 | +import { LengthMetrics, LengthUnit } from '@kit.ArkUI' | ||
| 7 | 8 | ||
| 8 | const TAG = "TabChatItemComponent" | 9 | const TAG = "TabChatItemComponent" |
| 9 | 10 | ||
| @@ -68,14 +69,20 @@ export struct TabChatItemComponent { | @@ -68,14 +69,20 @@ export struct TabChatItemComponent { | ||
| 68 | Span(' 主持人 ') | 69 | Span(' 主持人 ') |
| 69 | .fontSize(11) | 70 | .fontSize(11) |
| 70 | .lineHeight(20) | 71 | .lineHeight(20) |
| 71 | - .textBackgroundStyle({ color: "#70FFC63F", radius: 2 }) | 72 | + .textBackgroundStyle({ color: "#F1EFEB"}) |
| 73 | + .baselineOffset(new LengthMetrics(5,LengthUnit.PX)) | ||
| 74 | + .fontColor('#968562') | ||
| 75 | + .borderRadius(2) | ||
| 72 | Span(' ') | 76 | Span(' ') |
| 73 | } | 77 | } |
| 74 | if (this.item.role == LiveMessageRole.guest) { | 78 | if (this.item.role == LiveMessageRole.guest) { |
| 75 | Span(' 嘉宾 ') | 79 | Span(' 嘉宾 ') |
| 76 | .fontSize(11) | 80 | .fontSize(11) |
| 77 | .lineHeight(20) | 81 | .lineHeight(20) |
| 78 | - .textBackgroundStyle({ color: "#70FFC63F", radius: 2 }) | 82 | + .textBackgroundStyle({ color: "#F1EFEB"}) |
| 83 | + .baselineOffset(new LengthMetrics(5,LengthUnit.PX)) | ||
| 84 | + .fontColor('#968562') | ||
| 85 | + .borderRadius(2) | ||
| 79 | Span(' ') | 86 | Span(' ') |
| 80 | } | 87 | } |
| 81 | Span("回复了 ").fontColor('#222222') | 88 | Span("回复了 ").fontColor('#222222') |
-
Please register or login to post a comment