FrogPilot features - Back button in settings menu
This commit is contained in:
parent
37265f8241
commit
12f807007a
@ -384,22 +384,22 @@ SettingsWindow::SettingsWindow(QWidget *parent) : QFrame(parent) {
|
|||||||
panel_widget = new QStackedWidget();
|
panel_widget = new QStackedWidget();
|
||||||
|
|
||||||
// close button
|
// close button
|
||||||
QPushButton *close_btn = new QPushButton(tr("×"));
|
QPushButton *close_btn = new QPushButton(tr("← Back"));
|
||||||
close_btn->setStyleSheet(R"(
|
close_btn->setStyleSheet(R"(
|
||||||
QPushButton {
|
QPushButton {
|
||||||
font-size: 140px;
|
color: white;
|
||||||
padding-bottom: 20px;
|
border-radius: 25px;
|
||||||
border-radius: 100px;
|
background: #292929;
|
||||||
background-color: #292929;
|
font-size: 50px;
|
||||||
font-weight: 400;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
QPushButton:pressed {
|
QPushButton:pressed {
|
||||||
background-color: #3B3B3B;
|
color: #ADADAD;
|
||||||
}
|
}
|
||||||
)");
|
)");
|
||||||
close_btn->setFixedSize(200, 200);
|
close_btn->setFixedSize(300, 125);
|
||||||
sidebar_layout->addSpacing(45);
|
sidebar_layout->addSpacing(10);
|
||||||
sidebar_layout->addWidget(close_btn, 0, Qt::AlignCenter);
|
sidebar_layout->addWidget(close_btn, 0, Qt::AlignRight);
|
||||||
QObject::connect(close_btn, &QPushButton::clicked, [this]() {
|
QObject::connect(close_btn, &QPushButton::clicked, [this]() {
|
||||||
if (subSubParentToggleOpen) {
|
if (subSubParentToggleOpen) {
|
||||||
closeSubSubParentToggle();
|
closeSubSubParentToggle();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user