Showing
2 changed files
with
2 additions
and
17 deletions
| @@ -122,12 +122,6 @@ export struct MorningEveningPaperComponent { | @@ -122,12 +122,6 @@ export struct MorningEveningPaperComponent { | ||
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | async aboutToAppear() { | 124 | async aboutToAppear() { |
| 125 | - // let windowHight: window.Window = await window.getLastWindow(getContext(this)); | ||
| 126 | - // await windowHight.setWindowLayoutFullScreen(true); | ||
| 127 | - // WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#ffffff', }) | ||
| 128 | - // this.topSafeHeight = px2vp(windowHight.getWindowAvoidArea(window.AvoidAreaType.TYPE_SYSTEM).topRect.height) | ||
| 129 | - // this.bottomSafeHeight = px2vp(windowHight.getWindowAvoidArea(window.AvoidAreaType.TYPE_SYSTEM).bottomRect.height) | ||
| 130 | - | ||
| 131 | const dailyPaperTopicPageId = await SPHelper.default.getSync('dailyPaperTopicPageId', "") as String | 125 | const dailyPaperTopicPageId = await SPHelper.default.getSync('dailyPaperTopicPageId', "") as String |
| 132 | console.info(TAG, `aboutToAppear = ` + dailyPaperTopicPageId) | 126 | console.info(TAG, `aboutToAppear = ` + dailyPaperTopicPageId) |
| 133 | const currentTime = new Date().getTime() | 127 | const currentTime = new Date().getTime() |
| @@ -238,12 +232,6 @@ export struct MorningEveningPaperComponent { | @@ -238,12 +232,6 @@ export struct MorningEveningPaperComponent { | ||
| 238 | private async pickColor(imageSource: image.ImageSource | undefined) { | 232 | private async pickColor(imageSource: image.ImageSource | undefined) { |
| 239 | if (imageSource) { | 233 | if (imageSource) { |
| 240 | const pixelMap: image.PixelMap = await imageNet2PixelMap(imageSource); | 234 | const pixelMap: image.PixelMap = await imageNet2PixelMap(imageSource); |
| 241 | - // let allPixels: number[] = await traverseAllPixel(pixelMap); | ||
| 242 | - // let maxPixel: number = findMaxPixel(allPixels); | ||
| 243 | - // let rgb: ColorRgb = ColorUtils.numberToRgb(maxPixel); | ||
| 244 | - // let hsv: ColorHsv = ColorUtils.rgb2hsv(rgb); | ||
| 245 | - // rgb = ColorUtils.hsv2rgb(hsv); | ||
| 246 | - // this.mixedBgColor = "#" + rgb.red.toString(16) + rgb.green.toString(16) + rgb.blue.toString(16); | ||
| 247 | effectKit.createColorPicker(pixelMap, (err, colorPicker) => { | 235 | effectKit.createColorPicker(pixelMap, (err, colorPicker) => { |
| 248 | let color = colorPicker.getLargestProportionColor(); | 236 | let color = colorPicker.getLargestProportionColor(); |
| 249 | console.log(TAG, "compInfoBean compStyle = " + color) | 237 | console.log(TAG, "compInfoBean compStyle = " + color) |
| @@ -256,9 +244,6 @@ export struct MorningEveningPaperComponent { | @@ -256,9 +244,6 @@ export struct MorningEveningPaperComponent { | ||
| 256 | } | 244 | } |
| 257 | 245 | ||
| 258 | async aboutToDisappear() { | 246 | async aboutToDisappear() { |
| 259 | - // let windowHight: window.Window = await window.getLastWindow(getContext(this)); | ||
| 260 | - // await windowHight.setWindowLayoutFullScreen(false); | ||
| 261 | - // WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#000000', }) | ||
| 262 | } | 247 | } |
| 263 | 248 | ||
| 264 | onPageHide() { | 249 | onPageHide() { |
| @@ -161,11 +161,11 @@ struct LaunchInterestsHobbiesPage { | @@ -161,11 +161,11 @@ struct LaunchInterestsHobbiesPage { | ||
| 161 | .backgroundColor('#ED2800') | 161 | .backgroundColor('#ED2800') |
| 162 | .type(ButtonType.Normal) | 162 | .type(ButtonType.Normal) |
| 163 | .borderRadius(5) | 163 | .borderRadius(5) |
| 164 | - .width(320) | 164 | + .width('640lpx') |
| 165 | .height(44) | 165 | .height(44) |
| 166 | .margin({top:5}) | 166 | .margin({top:5}) |
| 167 | Image('') | 167 | Image('') |
| 168 | - .width(320) | 168 | + .width('640lpx') |
| 169 | .height(44) | 169 | .height(44) |
| 170 | .margin({top:5}) | 170 | .margin({top:5}) |
| 171 | .backgroundColor(Color.White) | 171 | .backgroundColor(Color.White) |
-
Please register or login to post a comment