diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index 889e8126409201fdcd3a4ebc12e2680f0c195af5..50ca607d5067771b2b7531b75cc63e2e456f88d2 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -36,28 +36,13 @@ struct Index { } .padding(16) } - .title(this.CustomTitle()) + .title(this.title) .mode(this.isSplitMode ? NavigationMode.Split : NavigationMode.Stack) .navBarWidth(0.4 * this.windowWidth) .titleMode(NavigationTitleMode.Full) .hideToolBar(true) .width('100%') .height('100%') - .backgroundColor($r("app.color.list_background")) - } - - @Builder - CustomTitle() { - Row() { - Text(this.title) - .fontColor($r("app.color.list_title")) - .fontSize(26) - .fontWeight(FontWeight.Medium) - .padding({ left: 16 }) - .margin({ bottom: 10 }) - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Bottom) + .backgroundColor($r('app.color.list_background')) } } \ No newline at end of file