!245 remove launcher bg

Merge pull request !245 from qano/master
This commit is contained in:
openharmony_ci 2022-08-12 07:22:01 +00:00 committed by Gitee
commit a5ea8bd667
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
6 changed files with 12 additions and 9 deletions

View File

@ -9,6 +9,7 @@
"distributedNotificationEnabled": true,
"keepAlive": true,
"minAPIVersion": 8,
"targetAPIVersion": 9
"targetAPIVersion": 9,
"userDataClearable": false
}
}

View File

@ -272,7 +272,7 @@ struct settingDialog {
}
}
.backgroundColor(Color.White)
.opacity(0.85)
.opacity(1)
.width('100%')
.padding({
bottom: StyleConstants.DEFAULT_24

View File

@ -21,4 +21,5 @@ export default class StyleConstants {
static readonly DEFAULT_MARGIN_SIZE = 82;
static readonly DEFAULT_NUMBER_0 = 0;
static readonly DEFAULT_APP_TOP_RATIO = 24;
static readonly DEFAULT_BG_COLOR = '#00000000';
}

View File

@ -24,10 +24,10 @@ import { SettingsModel } from '@ohos/common';
import { LayoutViewModel } from '@ohos/common';
import { SmartDock } from '@ohos/smartdock';
import { PageDesktopLayout } from '@ohos/pagedesktop';
import { PageDesktopDragHandler } from '@ohos/pagedesktop';
import { BigFolderConstants } from '@ohos/bigfolder';
import { FolderOpenComponent } from '@ohos/bigfolder';
import PadStage from '../common/PadStage';
import StyleConstants from '../common/constants/StyleConstants';
const RAW_IMAGE_CACHE_SIZE = 20000000;
const TAG = 'EntryView';
@ -56,6 +56,9 @@ struct EntryView {
this.registerPageDesktopNavigatorStatusChangeEvent(this.mLocalEventListener);
this.navigationBarStatus = SettingsModel.getInstance().getValue();
// set window background color transparent
setAppBgColor(StyleConstants.DEFAULT_BG_COLOR);
}
registerPageDesktopNavigatorStatusChangeEvent(listener): void {
@ -178,9 +181,6 @@ struct EntryView {
FolderOpenComponent();
}
.backgroundImage('/common/pics/img_wallpaper_default.jpg')
.backgroundImageSize(ImageSize.Cover)
.backgroundImagePosition(Alignment.Center)
.width('100%')
.height('100%')
}

View File

@ -20,4 +20,5 @@ export default class StyleConstants {
static readonly DEFAULT_APP_NAME_HEIGHT = 95;
static readonly DEFAULT_APP_TOP_RATIO = 0;
static readonly DEFAULT_NUMBER_0 = 0;
static readonly DEFAULT_BG_COLOR = '#00000000';
}

View File

@ -61,6 +61,9 @@ struct EntryView {
this.registerPageDesktopNavigatorStatusChangeEvent(this.mLocalEventListener);
this.navigationBarStatus = SettingsModel.getInstance().getValue();
// set window background color transparent
setAppBgColor(StyleConstants.DEFAULT_BG_COLOR);
}
registerPageDesktopNavigatorStatusChangeEvent(listener): void {
@ -146,9 +149,6 @@ struct EntryView {
}
FolderOpenComponent();
}
.backgroundImage(StyleConstants.DEFAULT_BACKGROUND_IMAGE)
.backgroundImageSize(ImageSize.Cover)
.backgroundImagePosition(Alignment.Center)
.width('100%')
.height('100%')
}