mirror of
https://gitee.com/openharmony/applications_launcher
synced 2025-02-05 23:27:14 +00:00
update recent ux
Signed-off-by: zhoujing <zhoujing96@huawei.com>
This commit is contained in:
parent
03da832b84
commit
c47b9be790
@ -63,12 +63,13 @@ export class RecentsStyleConstants {
|
||||
static readonly SINGLE_LIST_LAYOUT_MARGIN = 10;
|
||||
static readonly DOUBLE_LIST_APP_INFO_LAYOUT_WEIGHT: number = 2;
|
||||
static readonly DOUBLE_LIST_LAYOUT_MARGIN = 20;
|
||||
static readonly DOUBLE_LIST_LAYOUT_COLUMNSGAP = 20;
|
||||
static readonly DOUBLE_LIST_LAYOUT_COLUMNSGAP = 40;
|
||||
static readonly DOUBLE_LIST_LAYOUT_ROWSGAP = 40;
|
||||
static readonly DOUBLE_LIST_RIGHT_MARGIN = 72;
|
||||
static readonly DOUBLE_LIST_LEFT_MARGIN = 80;
|
||||
static readonly DOUBLE_LIST_TOP_MARGIN = 54;
|
||||
static readonly SINGLE_LIST_LOCKED_IMAGE_RIGHT_MARGIN = 24;
|
||||
static readonly DOUBLE_LIST_LOCKED_IMAGE_RIGHT_MARGIN = 43;
|
||||
static readonly DOUBLE_LIST_LOCKED_IMAGE_RIGHT_MARGIN = 12;
|
||||
static readonly SINGLE_LIST_APP_INFO_TOP_MARGIN = 6;
|
||||
static readonly SINGLE_LIST_APP_INFO_BOTTOM_MARGIN = 10;
|
||||
static readonly DOUBLE_LIST_APP_INFO_BOTTOM_MARGIN = 8;
|
||||
|
@ -167,7 +167,6 @@ export default struct RecentMissionCard {
|
||||
.height(this.mIsSingleLayout ?
|
||||
RecentsStyleConstants.SINGLE_LIST_MISSION_HEIGHT :
|
||||
RecentsStyleConstants.DOUBLE_LIST_MISSION_HEIGHT)
|
||||
.margin({ right: this.mIsSingleLayout ? 0 : this.cardMargin })
|
||||
.backgroundColor(RecentsStyleConstants.DEFAULT_BG_COLOR)
|
||||
.gesture(
|
||||
PanGesture({ fingers: 1, direction: PanDirection.Vertical, distance: 5 })
|
||||
|
@ -57,7 +57,6 @@ export struct RecentMissionsDoubleLayout {
|
||||
snapShotTime: item.snapShotTime
|
||||
})
|
||||
}
|
||||
.height(RecentsStyleConstants.DEFAULT_LAYOUT_PERCENTAGE)
|
||||
.align(Alignment.Center)
|
||||
},(item) => JSON.stringify(item))
|
||||
}
|
||||
@ -67,7 +66,10 @@ export struct RecentMissionsDoubleLayout {
|
||||
.columnsGap(RecentsStyleConstants.DOUBLE_LIST_LAYOUT_COLUMNSGAP)
|
||||
.rowsGap(RecentsStyleConstants.DOUBLE_LIST_LAYOUT_ROWSGAP)
|
||||
}
|
||||
.margin({top: RecentsStyleConstants.DOUBLE_LIST_TOP_MARGIN})
|
||||
.margin({
|
||||
top: RecentsStyleConstants.DOUBLE_LIST_TOP_MARGIN,
|
||||
left: RecentsStyleConstants.DOUBLE_LIST_LEFT_MARGIN
|
||||
})
|
||||
.width(RecentsStyleConstants.DEFAULT_LAYOUT_PERCENTAGE)
|
||||
.height(RecentsStyleConstants.DOUBLE_LIST_GRID_HEIGHT_PERCENTAGE)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user