Game2048 修复

Signed-off-by: wanghanghui <wanghanghui2@huawei.com>
This commit is contained in:
wanghanghui 2023-05-31 20:06:27 +08:00
parent 61f247e0d8
commit 52776dae8b

View File

@ -230,7 +230,7 @@ struct MyGridItem {
build() {
Text(`${this.gridData.data === 0 ? '' : this.gridData.data}`)
.fontSize(50)
.fontSize(30)
.fontColor(this.gridData.data <= 4 ? '#000' : $r('app.color.score_color'))
.fontWeight(FontWeight.Bolder)
.width('100%')