From f18ddd1526a26900802e1da7174256b7b3dba6a3 Mon Sep 17 00:00:00 2001 From: FrogAi <91348155+FrogAi@users.noreply.github.com> Date: Tue, 27 Feb 2024 16:34:47 -0700 Subject: [PATCH] Back button in settings menu Changed out the "X" in the settings menu with a "Back" button. --- selfdrive/ui/qt/offroad/settings.cc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/selfdrive/ui/qt/offroad/settings.cc b/selfdrive/ui/qt/offroad/settings.cc index 9480ce7e8..946f0dcd7 100644 --- a/selfdrive/ui/qt/offroad/settings.cc +++ b/selfdrive/ui/qt/offroad/settings.cc @@ -402,22 +402,22 @@ 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; - background-color: #292929; - font-weight: 400; + color: white; + border-radius: 25px; + background: #292929; + font-size: 50px; + font-weight: 500; } QPushButton:pressed { - background-color: #3B3B3B; + 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]() { if (subParentToggleOpen) { closeSubParentToggle();