From 260f422874d738d16eb1f2d2d030641073bdbb8e Mon Sep 17 00:00:00 2001 From: Pablo Gil Date: Fri, 15 Nov 2024 13:39:00 +0100 Subject: [PATCH 1/2] make buttons of QMessageBox wider and add some padding at left-right --- src/app/friction.qss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/friction.qss b/src/app/friction.qss index 5c3bd0131..87cabeb72 100644 --- a/src/app/friction.qss +++ b/src/app/friction.qss @@ -602,3 +602,9 @@ Friction--Ui--ToolBar::separator:vertical { Friction--Ui--ToolBar::separator:horizontal { width: 1px; } + +QMessageBox QPushButton { + min-width: 50px; + padding-left: 6px; + padding-right: 6px; +} From 45008e542700c4d08f51670a89a83659d51bd142 Mon Sep 17 00:00:00 2001 From: Pablo Gil Date: Fri, 15 Nov 2024 13:39:53 +0100 Subject: [PATCH 2/2] little hack to make more room for QButtons as they are pretty long --- src/app/GUI/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/GUI/mainwindow.cpp b/src/app/GUI/mainwindow.cpp index d393cef5f..63ad4b946 100644 --- a/src/app/GUI/mainwindow.cpp +++ b/src/app/GUI/mainwindow.cpp @@ -1475,7 +1475,7 @@ bool MainWindow::askForSaving() { QString file = info.baseName(); if (file.isEmpty()) { file = tr("Untitled"); } - const QString question = tr("Save changes to document \"%1\"?", + const QString question = tr("Save changes to document \"%1\"? ", // empty spaces at the end of the question to make room for buttons "AskSaveDialog_Question"); const QString questionWithTarget = question.arg(file); const QString closeNoSave = tr("Close without saving",