summary refs log tree commit diff
path: root/src/ui/OverlayModal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/OverlayModal.cpp')
-rw-r--r--src/ui/OverlayModal.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/OverlayModal.cpp b/src/ui/OverlayModal.cpp
index 6aa16b07..41e07a91 100644
--- a/src/ui/OverlayModal.cpp
+++ b/src/ui/OverlayModal.cpp
@@ -25,11 +25,11 @@ OverlayModal::OverlayModal(QWidget *parent, QWidget *content)
   , content_{content}
   , color_{QColor(30, 30, 30, 170)}
 {
-        auto layout = new QVBoxLayout();
-        layout->addWidget(content);
-        layout->setAlignment(Qt::AlignCenter);
-
-        setLayout(layout);
+        layout_ = new QVBoxLayout(this);
+        layout_->addWidget(content);
+        layout_->setSpacing(0);
+        layout_->setContentsMargins(10, 40, 10, 20);
+        setContentAlignment(Qt::AlignTop | Qt::AlignHCenter);
 
         content->setFocus();
 }