From db0309ade7835ad87e2e2abc011d5969a1ac7afb Mon Sep 17 00:00:00 2001 From: wangsen1994 Date: Wed, 21 May 2025 17:31:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=B4=E5=90=BE=E5=B0=94=E8=AF=AD=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E4=B8=8B=EF=BC=8C=E9=80=9A=E7=9F=A5=E4=BD=BF=E8=83=BD?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E5=85=81=E8=AE=B8=E5=92=8C=E4=B8=8D=E5=85=81?= =?UTF-8?q?=E8=AE=B8=E6=8C=89=E9=92=AE=E6=8C=A8=E5=9C=A8=E4=B8=80=E8=B5=B7?= =?UTF-8?q?=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangsen1994 --- .../entry/src/main/ets/common/constant.ets | 3 ++- .../entry/src/main/ets/pages/tvNotificationDialog.ets | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/common/constant.ets b/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/common/constant.ets index c95968779..144f0a9cb 100644 --- a/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/common/constant.ets +++ b/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/common/constant.ets @@ -93,7 +93,8 @@ export default class Constants { public static CLICK_SHADOW_LENGTH = 48; public static DIVIDER = '1px'; public static DIVIDER_HEIGHT = 24; - public public static DIVIDER_WIDTH = '2px'; + public static DIVIDER_WIDTH = '2px'; + public static DIVIDER_WIDTH_THIN = '1px'; public static DIVIDER_MARGIN_RIGHT_PERMISSION = 52; public static DIVIDER_MARGIN_RIGHT_APPLICATION = 68; diff --git a/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/pages/tvNotificationDialog.ets b/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/pages/tvNotificationDialog.ets index f5c625409..42f24126b 100644 --- a/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/pages/tvNotificationDialog.ets +++ b/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/pages/tvNotificationDialog.ets @@ -130,13 +130,17 @@ struct PermissionDialog { await this.enableNotification(false); }) .customizeButton() - .margin({right: 12}) + Divider() + .color(Color.Transparent) + .vertical(true) + .height(Constants.DIVIDER_HEIGHT) + .strokeWidth(Constants.DIVIDER_WIDTH_THIN) + .margin({left: 12, right: 12}) Button($r('app.string.ALLOW')) .onClick(async (): Promise => { await this.enableNotification(true); }) .customizeButton() - .margin({left: 12}) } .margin({ left: Constants.TV_TITLE_MARGIN_SIDE, -- Gitee