mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-30 19:12:07 +08:00
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:
@@ -142,8 +142,8 @@ public:
|
||||
ParamControl(const QString ¶m, 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);
|
||||
|
||||
Reference in New Issue
Block a user