ui: increase toggle confirmation font size (#26413)

* ui: make toggle confirmation text larger

* center title

* reduce line breaks

* slightly reduce font size
old-commit-hash: f38fe7cfb1b3011ea48a34b0500f352338e05b25
This commit is contained in:
Cameron Clough
2022-11-09 14:53:41 -08:00
committed by GitHub
parent f3fb385a74
commit 07282a9aeb
+2 -2
View File
@@ -142,8 +142,8 @@ public:
ParamControl(const QString &param, const QString &title, const QString &desc, const QString &icon, const bool confirm, QWidget *parent = nullptr) : ToggleControl(title, desc, icon, false, parent) {
key = param.toStdString();
QObject::connect(this, &ParamControl::toggleFlipped, [=](bool state) {
QString content("<body><h2>" + title + "</h2><br><br>"
"<p style=\"text-align: center; margin: 0 128px;\">" + getDescription() + "</p></body>");
QString content("<body><h2 style=\"text-align: center;\">" + title + "</h2><br>"
"<p style=\"text-align: center; margin: 0 128px; font-size: 50px;\">" + getDescription() + "</p></body>");
ConfirmationDialog dialog(content, tr("Ok"), tr("Cancel"), true, this);
if (!confirm || !state || dialog.exec()) {
params.putBool(key, state);