diff --git a/src/widgets/dabstractdialog.cpp b/src/widgets/dabstractdialog.cpp index 57c29921..4a5c5e1c 100644 --- a/src/widgets/dabstractdialog.cpp +++ b/src/widgets/dabstractdialog.cpp @@ -68,6 +68,11 @@ void DAbstractDialogPrivate::init(bool blurIfPossible) q->setAttribute(Qt::WA_TranslucentBackground, blurIfPossible); } else if (noTitlebarEnabled()) { handle = new DPlatformWindowHandle(q, q); + + if (!handle->enableBlurWindow()) { + handle->setEnableBlurWindow(true); + } + // fix wayland no titlebar //q->setWindowFlags(q->windowFlags() | Qt::FramelessWindowHint); } diff --git a/src/widgets/ddialog.cpp b/src/widgets/ddialog.cpp index dd0f4a1a..815f1682 100644 --- a/src/widgets/ddialog.cpp +++ b/src/widgets/ddialog.cpp @@ -125,12 +125,14 @@ void DDialogPrivate::init() spacer = new QSpacerItem(1, 0); // MainLayout--TopLayout + mainLayout->setSpacing(0); mainLayout->addWidget(titleBar, 0, Qt::AlignTop); mainLayout->addWidget(contentWidget); mainLayout->setContentsMargins(QMargins(0, 0, 0, 0)); // MainLayout--ButtonLayout buttonLayout = new QHBoxLayout; + buttonLayout->setSpacing(5); buttonLayout->setContentsMargins(DIALOG::BUTTON_LAYOUT_LEFT_MARGIN, DIALOG::BUTTON_LAYOUT_TOP_MARGIN, DIALOG::BUTTON_LAYOUT_RIGHT_MARGIN,