mirror of
https://gitee.com/openharmony/applications_photos
synced 2024-11-23 15:10:25 +00:00
update common/src/main/ets/default/view/actionbar/ToolBar.ets.
Signed-off-by: liujuan <liujuan76@h-partners.com>
This commit is contained in:
parent
df7ac9d179
commit
eba2aa61d6
@ -39,8 +39,7 @@ export struct ToolBar {
|
||||
@State actionBarProp: ActionBarProp = new ActionBarProp();
|
||||
@Consume @Watch("isNeedHidePopup") hidePopup: boolean;
|
||||
private isFromPhotoBrowser = false;
|
||||
private isFromCamera: boolean;
|
||||
private isFromFACard: boolean;
|
||||
private isFromTrash: boolean;
|
||||
|
||||
aboutToAppear(): void {
|
||||
this.actionBarProp = this.createActionBar();
|
||||
@ -167,7 +166,7 @@ export struct ToolBar {
|
||||
right: $r('app.float.actionbar_margin_horizontal') })
|
||||
}
|
||||
.margin({
|
||||
bottom: this.isFromCamera || this.isFromFACard ? this.leftBlank[3] : Constants.NUMBER_0
|
||||
bottom: this.isFromTrash ? this.leftBlank[3] : Constants.NUMBER_0
|
||||
})
|
||||
.width(Constants.PERCENT_100)
|
||||
.backgroundColor(this.isFromPhotoBrowser ? $r('app.color.transparent') : this.actionBarProp.getBackgroundColor())
|
||||
|
Loading…
Reference in New Issue
Block a user