Showing
2 changed files
with
11 additions
and
6 deletions
| 1 | // import { FrontLinkObject, MorningEveningPaperDTO, PageInfoBean } from 'wdBean'; | 1 | // import { FrontLinkObject, MorningEveningPaperDTO, PageInfoBean } from 'wdBean'; |
| 2 | import { CompList, PageInfoBean } from 'wdBean'; | 2 | import { CompList, PageInfoBean } from 'wdBean'; |
| 3 | -import { DateTimeUtils, Logger, SPHelper } from 'wdKit/Index'; | 3 | +import { DateTimeUtils, Logger, SPHelper, WindowModel } from 'wdKit/Index'; |
| 4 | import { PaperReaderSimpleDialog } from '../../dialog/PaperReaderDialog'; | 4 | import { PaperReaderSimpleDialog } from '../../dialog/PaperReaderDialog'; |
| 5 | import { MorningEveningViewModel } from '../../viewmodel/MorningEveningViewModel'; | 5 | import { MorningEveningViewModel } from '../../viewmodel/MorningEveningViewModel'; |
| 6 | // import { AudioBarView } from './AudioBarView'; | 6 | // import { AudioBarView } from './AudioBarView'; |
| @@ -102,6 +102,7 @@ export struct MorningEveningPaperComponent { | @@ -102,6 +102,7 @@ export struct MorningEveningPaperComponent { | ||
| 102 | async aboutToAppear() { | 102 | async aboutToAppear() { |
| 103 | let windowHight: window.Window = await window.getLastWindow(getContext(this)); | 103 | let windowHight: window.Window = await window.getLastWindow(getContext(this)); |
| 104 | await windowHight.setWindowLayoutFullScreen(true); | 104 | await windowHight.setWindowLayoutFullScreen(true); |
| 105 | + WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#ffffff', }) | ||
| 105 | this.topSafeHeight = px2vp(windowHight.getWindowAvoidArea(window.AvoidAreaType.TYPE_SYSTEM).topRect.height) | 106 | this.topSafeHeight = px2vp(windowHight.getWindowAvoidArea(window.AvoidAreaType.TYPE_SYSTEM).topRect.height) |
| 106 | 107 | ||
| 107 | let dailyPaperTopicPageId = await SPHelper.default.getSync('dailyPaperTopicPageId', "") as String | 108 | let dailyPaperTopicPageId = await SPHelper.default.getSync('dailyPaperTopicPageId', "") as String |
| @@ -173,6 +174,7 @@ export struct MorningEveningPaperComponent { | @@ -173,6 +174,7 @@ export struct MorningEveningPaperComponent { | ||
| 173 | async aboutToDisappear() { | 174 | async aboutToDisappear() { |
| 174 | let windowHight: window.Window = await window.getLastWindow(getContext(this)); | 175 | let windowHight: window.Window = await window.getLastWindow(getContext(this)); |
| 175 | await windowHight.setWindowLayoutFullScreen(false); | 176 | await windowHight.setWindowLayoutFullScreen(false); |
| 177 | + WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#000000', }) | ||
| 176 | } | 178 | } |
| 177 | 179 | ||
| 178 | onPageHide() { | 180 | onPageHide() { |
| @@ -34,7 +34,7 @@ export struct PaperTitleComponent { | @@ -34,7 +34,7 @@ export struct PaperTitleComponent { | ||
| 34 | Text(this.subTitle ?? '')// Text('2024年\n1月16日') | 34 | Text(this.subTitle ?? '')// Text('2024年\n1月16日') |
| 35 | // .width(50) | 35 | // .width(50) |
| 36 | .margin({ left: 5 }) | 36 | .margin({ left: 5 }) |
| 37 | - .fontSize(12) | 37 | + .fontSize(8) |
| 38 | .fontColor($r('app.color.white')) | 38 | .fontColor($r('app.color.white')) |
| 39 | .maxLines(2) | 39 | .maxLines(2) |
| 40 | 40 | ||
| @@ -47,7 +47,8 @@ export struct PaperTitleComponent { | @@ -47,7 +47,8 @@ export struct PaperTitleComponent { | ||
| 47 | .alignItems(VerticalAlign.Center) | 47 | .alignItems(VerticalAlign.Center) |
| 48 | .alignRules({ | 48 | .alignRules({ |
| 49 | left: { anchor: "img_logo1", align: HorizontalAlign.End }, | 49 | left: { anchor: "img_logo1", align: HorizontalAlign.End }, |
| 50 | - center: { anchor: "__container__", align: VerticalAlign.Center } }) | 50 | + center: { anchor: "__container__", align: VerticalAlign.Center } |
| 51 | + }) | ||
| 51 | .id('row_paper_date') | 52 | .id('row_paper_date') |
| 52 | 53 | ||
| 53 | Image($r('app.media.icon_close')) | 54 | Image($r('app.media.icon_close')) |
| @@ -55,7 +56,8 @@ export struct PaperTitleComponent { | @@ -55,7 +56,8 @@ export struct PaperTitleComponent { | ||
| 55 | .width($r('app.float.top_arrow_size')) | 56 | .width($r('app.float.top_arrow_size')) |
| 56 | .alignRules({ | 57 | .alignRules({ |
| 57 | right: { anchor: "__container__", align: HorizontalAlign.End }, | 58 | right: { anchor: "__container__", align: HorizontalAlign.End }, |
| 58 | - center: { anchor: "__container__", align: VerticalAlign.Center } }) | 59 | + center: { anchor: "__container__", align: VerticalAlign.Center } |
| 60 | + }) | ||
| 59 | .id('img_close') | 61 | .id('img_close') |
| 60 | .onClick((event: ClickEvent) => { | 62 | .onClick((event: ClickEvent) => { |
| 61 | // console.info(TAG, "img_close") | 63 | // console.info(TAG, "img_close") |
| @@ -68,11 +70,12 @@ export struct PaperTitleComponent { | @@ -68,11 +70,12 @@ export struct PaperTitleComponent { | ||
| 68 | .width($r('app.float.top_arrow_size')) | 70 | .width($r('app.float.top_arrow_size')) |
| 69 | .alignRules({ | 71 | .alignRules({ |
| 70 | right: { anchor: "img_close", align: HorizontalAlign.Start }, | 72 | right: { anchor: "img_close", align: HorizontalAlign.Start }, |
| 71 | - center: { anchor: "__container__", align: VerticalAlign.Center } }) | 73 | + center: { anchor: "__container__", align: VerticalAlign.Center } |
| 74 | + }) | ||
| 72 | .id('img_share') | 75 | .id('img_share') |
| 73 | .margin({ right: 13 }) | 76 | .margin({ right: 13 }) |
| 74 | } | 77 | } |
| 75 | - // .margin({ left: 14, right: 14 }) | 78 | + .margin({ left: 14, right: 14 }) |
| 76 | .height($r('app.float.top_bar_height')) | 79 | .height($r('app.float.top_bar_height')) |
| 77 | 80 | ||
| 78 | // .backgroundColor(Color.Black) | 81 | // .backgroundColor(Color.Black) |
-
Please register or login to post a comment