From 9579d331fcc86f2588cffd426d8005a9fff1f5a4 Mon Sep 17 00:00:00 2001 From: Nayan Date: Mon, 25 Aug 2025 13:49:49 -0400 Subject: [PATCH] ui: sunnylink panel title & message (#1181) add title & message to clarify sponsorship isn't required for basic functions --- .../qt/offroad/settings/sunnylink_panel.cc | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/selfdrive/ui/sunnypilot/qt/offroad/settings/sunnylink_panel.cc b/selfdrive/ui/sunnypilot/qt/offroad/settings/sunnylink_panel.cc index 3d4e07096..96d945ab5 100644 --- a/selfdrive/ui/sunnypilot/qt/offroad/settings/sunnylink_panel.cc +++ b/selfdrive/ui/sunnypilot/qt/offroad/settings/sunnylink_panel.cc @@ -34,6 +34,27 @@ SunnylinkPanel::SunnylinkPanel(QWidget *parent) : QFrame(parent) { vlayout->setContentsMargins(50, 20, 50, 20); auto *list = new ListWidget(this, false); + + QVBoxLayout *titleLayout = new QVBoxLayout; + QLabel *title = new QLabel(tr("🚀 sunnylink 🚀")); + title->setStyleSheet("font-size: 90px; font-weight: 500; font-family: 'Noto Color Emoji';"); + titleLayout->addWidget(title, 0, Qt::AlignCenter); + + QLabel *sunnylinkDesc = new QLabel("
"+ + tr("For secure backup, restore, and remote configuration")+ "
"); + + QLabel *sponsorMsg = new QLabel("
"+ + tr("Sponsorship isn't required for basic backup/restore") + "
" + + tr("Click the sponsor button for more details")+ "
"); + + sunnylinkDesc->setStyleSheet("font-size: 40px; font-weight: 100; font-family: 'Noto';"); + sponsorMsg->setStyleSheet("font-size: 35px; font-weight: 100; font-family: 'Noto';"); + + titleLayout->addWidget(sunnylinkDesc, 0, Qt::AlignCenter); + titleLayout->addWidget(sponsorMsg, 0, Qt::AlignCenter); + + list->addItem(titleLayout); + QString sunnylinkEnabledBtnDesc = tr("This is the master switch, it will allow you to cutoff any sunnylink requests should you want to do that."); sunnylinkEnabledBtn = new ParamControl( "SunnylinkEnabled",