FrogPilot features - Back button in settings menu

This commit is contained in:
FrogAi 2024-05-09 22:10:39 -07:00
parent 37265f8241
commit 12f807007a

View File

@ -384,22 +384,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 (subSubParentToggleOpen) {
closeSubSubParentToggle();