From f38fe7cfb1b3011ea48a34b0500f352338e05b25 Mon Sep 17 00:00:00 2001 From: Cameron Clough Date: Wed, 9 Nov 2022 14:53:41 -0800 Subject: [PATCH] ui: increase toggle confirmation font size (#26413) * ui: make toggle confirmation text larger * center title * reduce line breaks * slightly reduce font size --- selfdrive/ui/qt/widgets/controls.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/qt/widgets/controls.h b/selfdrive/ui/qt/widgets/controls.h index 243c078f85..8679de57b0 100644 --- a/selfdrive/ui/qt/widgets/controls.h +++ b/selfdrive/ui/qt/widgets/controls.h @@ -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("

" + title + "



" - "

" + getDescription() + "

"); + QString content("

" + title + "


" + "

" + getDescription() + "

"); ConfirmationDialog dialog(content, tr("Ok"), tr("Cancel"), true, this); if (!confirm || !state || dialog.exec()) { params.putBool(key, state);