diff --git a/permissionmanager/src/main/ets/pages/securityDialog.ets b/permissionmanager/src/main/ets/pages/securityDialog.ets index 40c747499441f67c439af48420c2b2010566051f..08b8992e417adcf146a620f5ad848918ff885635 100644 --- a/permissionmanager/src/main/ets/pages/securityDialog.ets +++ b/permissionmanager/src/main/ets/pages/securityDialog.ets @@ -86,9 +86,20 @@ function dialogTitle(index: number, securityParams: Array, isWearable: bo function dialogContentsArea(params: DialogInfo) { Column() { Column() { - SymbolGlyph($r('sys.symbol.person_shield_fill')) - .fontSize(Constants.FONT_SIZE_28) - .fontColor([$r('sys.color.brand')]) + Column() { + SymbolGlyph($r('sys.symbol.person_shield_fill')) + .fontSize(Constants.FONT_SIZE_28) + .fontColor([$r('sys.color.brand')]) + } + .width(Constants.SECURITY_ICON_WIDTH) + .height(Constants.SECURITY_ICON_HEIGHT) + .justifyContent(FlexAlign.Center) + .pixelRound({ start: PixelRoundCalcPolicy.NO_FORCE_ROUND, end: PixelRoundCalcPolicy.NO_FORCE_ROUND }) + .border({ + width: Constants.BORDER_WIDTH_1, + color: $r('app.color.icon_border'), + radius: Constants.SECURITY_ICON_WIDTH * 14 / 54 + }) if (params.index === 1) { Image(params.securityParams[params.index].icon) .width(Constants.IMAGE_LENGTH_20) @@ -116,18 +127,10 @@ function dialogContentsArea(params: DialogInfo) { }) } } - .width(Constants.SECURITY_ICON_WIDTH) - .height(Constants.SECURITY_ICON_HEIGHT) - .justifyContent(FlexAlign.Center) .pixelRound({ start: PixelRoundCalcPolicy.NO_FORCE_ROUND, end: PixelRoundCalcPolicy.NO_FORCE_ROUND }) .backgroundColor($r('app.color.icon_bg')) .borderRadius(Constants.SECURITY_ICON_WIDTH * 14 / 54) .margin(params.isWearable ? { top: Constants.MARGIN_12 } : {}) - .border({ - width: Constants.BORDER_WIDTH_1, - color: $r('app.color.icon_border'), - radius: Constants.SECURITY_ICON_WIDTH * 14 / 54 - }) Column() { // content dialogTitle(params.index, params.securityParams, params.isWearable); Text($r(