From a5bd0d082e1c9969374ff971bfb96d545ae5345a Mon Sep 17 00:00:00 2001 From: James <91348155+FrogAi@users.noreply.github.com> Date: Mon, 1 Dec 2025 12:00:00 -0700 Subject: [PATCH] "Back" button in settings menu --- selfdrive/ui/qt/offroad/settings.cc | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/selfdrive/ui/qt/offroad/settings.cc b/selfdrive/ui/qt/offroad/settings.cc index e96e2529..f819561c 100644 --- a/selfdrive/ui/qt/offroad/settings.cc +++ b/selfdrive/ui/qt/offroad/settings.cc @@ -471,22 +471,21 @@ SettingsWindow::SettingsWindow(QWidget *parent) : QFrame(parent) { panel_widget = new QStackedWidget(); // close button - QPushButton *close_btn = new QPushButton(tr("×")); + QPushButton *close_btn = new QPushButton(tr("← Back")); close_btn->setStyleSheet(R"( QPushButton { - font-size: 140px; - padding-bottom: 20px; - border-radius: 100px; + font-size: 50px; + border-radius: 25px; background-color: #292929; - font-weight: 400; + font-weight: 500; } QPushButton:pressed { - background-color: #3B3B3B; + background-color: #ADADAD; } )"); - close_btn->setFixedSize(200, 200); - sidebar_layout->addSpacing(45); - sidebar_layout->addWidget(close_btn, 0, Qt::AlignCenter); + close_btn->setFixedSize(300, 125); + sidebar_layout->addSpacing(10); + sidebar_layout->addWidget(close_btn, 0, Qt::AlignRight); QObject::connect(close_btn, &QPushButton::clicked, [this]() { // FrogPilot variables if (subSubSubPanelOpen) {