!37796 警告弹窗按钮圆角规格修正

Merge pull request !37796 from sunjiakun/dialog0715
This commit is contained in:
openharmony_ci 2024-07-18 03:59:00 +00:00 committed by Gitee
commit bd0534fdba
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -93,6 +93,7 @@ constexpr Dimension ADAPT_SUBTITLE_MIN_FONT_SIZE = 12.0_fp;
constexpr uint32_t ADAPT_TITLE_MAX_LINES = 2;
constexpr int32_t TEXT_ALIGN_TITLE_CENTER = 1;
constexpr int32_t BUTTON_TYPE_NORMAL = 1;
constexpr Dimension DIALOG_BUTTON_BORDER_RADIUS = 20.0_vp;
std::string GetBoolStr(bool isTure)
{
@ -770,6 +771,8 @@ void DialogPattern::UpdateDialogButtonProperty(
if (dialogTheme_->GetButtonType() == BUTTON_TYPE_NORMAL) {
buttonProp->UpdateButtonStyle(ButtonStyleMode::NORMAL);
}
buttonProp->UpdateType(ButtonType::NORMAL);
buttonProp->UpdateBorderRadius(BorderRadiusProperty(DIALOG_BUTTON_BORDER_RADIUS));
PaddingProperty buttonPadding;
buttonPadding.left = CalcLength(SHEET_LIST_PADDING);
buttonPadding.right = CalcLength(SHEET_LIST_PADDING);