Back button in settings menu
Changed out the "X" in the settings menu with a "Back" button.
This commit is contained in:
@@ -371,22 +371,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;
|
font-size: 50px;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 0px;
|
||||||
border-radius: 100px;
|
border-radius: 25px;
|
||||||
background-color: #292929;
|
background-color: #292929;
|
||||||
font-weight: 400;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
QPushButton:pressed {
|
QPushButton:pressed {
|
||||||
background-color: #3B3B3B;
|
background-color: #3B3B3B;
|
||||||
}
|
}
|
||||||
)");
|
)");
|
||||||
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 (parentToggleOpen) {
|
if (parentToggleOpen) {
|
||||||
if (subParentToggleOpen) {
|
if (subParentToggleOpen) {
|
||||||
|
|||||||
Reference in New Issue
Block a user