Back button in settings menu

Changed out the "X" in the settings menu with a "Back" button.
This commit is contained in:
FrogAi
2024-01-12 22:39:30 -07:00
parent 9ded0c1c3a
commit 8baf713117

View File

@@ -360,23 +360,23 @@ 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;
font-size: 50px;
padding-bottom: 0px;
border 1px grey solid;
border-radius: 100px;
border-radius: 25px;
background-color: #292929;
font-weight: 400;
font-weight: 500;
}
QPushButton:pressed {
background-color: #3B3B3B;
}
)");
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 (frogPilotTogglesOpen) {
frogPilotTogglesOpen = false;