mirror of
https://gitee.com/openharmony/applications_permission_manager
synced 2024-11-26 20:50:48 +00:00
安全控件弹窗icon非同时显示问题
Signed-off-by: fanchenxuan <fanchenxuan@huawei.com>
This commit is contained in:
parent
2df92ef351
commit
5910ddebb3
@ -71,6 +71,7 @@ export default class Constants {
|
||||
public static TEXT_MIDDLE_FONT_SIZE = 16;
|
||||
public static TEXT_SMALL_FONT_SIZE = 14;
|
||||
public static TEXT_SMALLER_FONT_SIZE = 12;
|
||||
public static FONT_SIZE_12 = '12vp';
|
||||
public static FONT_SIZE_28 = '28vp';
|
||||
public static TEXT_LINE_HEIGHT = 22;
|
||||
public static TEXT_LINE_HEIGHT_24 = 24;
|
||||
@ -110,6 +111,7 @@ export default class Constants {
|
||||
public static MARGIN_8 = 8;
|
||||
public static MARGIN_16 = 16;
|
||||
public static MARGIN_24 = 24;
|
||||
public static PADDING_4 = 4;
|
||||
public static PADDING_8 = 8;
|
||||
public static PADDING_10 = 10;
|
||||
public static PADDING_14 = 14;
|
||||
|
@ -112,15 +112,32 @@ struct SecurityDialog {
|
||||
radius: $r('sys.float.ohos_id_corner_radius_default_m')
|
||||
})
|
||||
.padding(Constants.PADDING_10)
|
||||
Image(this.securityParams[this.index].icon)
|
||||
.width(Constants.IMAGE_LENGTH_20)
|
||||
.height(Constants.IMAGE_LENGTH_20)
|
||||
.position({ x: Constants.IMAGE_POSITION_28, y: Constants.IMAGE_POSITION_28 })
|
||||
.border({
|
||||
width: Constants.BORDER_WIDTH_1,
|
||||
color: $r('app.color.icon_border'),
|
||||
radius: Constants.RADIUS_5
|
||||
})
|
||||
if(this.index === 1) {
|
||||
Image(this.securityParams[this.index].icon)
|
||||
.width(Constants.IMAGE_LENGTH_20)
|
||||
.height(Constants.IMAGE_LENGTH_20)
|
||||
.syncLoad(true)
|
||||
.position({ x: Constants.IMAGE_POSITION_28, y: Constants.IMAGE_POSITION_28 })
|
||||
.border({
|
||||
width: Constants.BORDER_WIDTH_1,
|
||||
color: $r('app.color.icon_border'),
|
||||
radius: Constants.RADIUS_5
|
||||
})
|
||||
} else {
|
||||
SymbolGlyph($r('sys.symbol.local_fill'))
|
||||
.width(Constants.IMAGE_LENGTH_20)
|
||||
.height(Constants.IMAGE_LENGTH_20)
|
||||
.fontSize(Constants.FONT_SIZE_12)
|
||||
.fontColor([Color.White])
|
||||
.backgroundColor($r('app.color.local_background_color'))
|
||||
.padding(Constants.PADDING_4)
|
||||
.position({ x: Constants.IMAGE_POSITION_28, y: Constants.IMAGE_POSITION_28 })
|
||||
.border({
|
||||
width: Constants.BORDER_WIDTH_1,
|
||||
color: $r('app.color.icon_border'),
|
||||
radius: Constants.RADIUS_5
|
||||
})
|
||||
}
|
||||
}
|
||||
.backgroundColor($r('app.color.icon_bg'))
|
||||
.borderRadius($r('sys.float.ohos_id_corner_radius_default_m'))
|
||||
|
@ -23,6 +23,10 @@
|
||||
{
|
||||
"name": "start_window_background",
|
||||
"value": "#FFFFFF"
|
||||
},
|
||||
{
|
||||
"name": "local_background_color",
|
||||
"value": "#3194F7"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user