wip
This commit is contained in:
@@ -82,12 +82,12 @@ OscarSettingsWindow::OscarSettingsWindow(QWidget *parent) : QFrame(parent) {
|
|||||||
// QObject::connect(device, &DevicePanel::showDriverView, this, &SettingsWindow::showDriverView);
|
// QObject::connect(device, &DevicePanel::showDriverView, this, &SettingsWindow::showDriverView);
|
||||||
|
|
||||||
QList<QPair<QString, QWidget *>> panels = {
|
QList<QPair<QString, QWidget *>> panels = {
|
||||||
{tr("Basic"), basic},
|
// {tr("Basic"), basic},
|
||||||
{tr("Advanced"), basic},
|
// {tr("Advanced"), basic},
|
||||||
{tr("Logging"), basic}, // Log / Upload driver cam, Routes
|
// {tr("Logging"), basic}, // Log / Upload driver cam, Routes
|
||||||
{tr("System"), basic}, // Debugging
|
// {tr("System"), basic}, // Debugging
|
||||||
{tr("Status"), basic}, // Report on stuff like connectivity, free space, detected features
|
// {tr("Status"), basic}, // Report on stuff like connectivity, free space, detected features
|
||||||
{tr("Extra"), basic}, // Custom cloud services, QOL automations
|
// {tr("Extra"), basic}, // Custom cloud services, QOL automations
|
||||||
};
|
};
|
||||||
|
|
||||||
nav_btns = new QButtonGroup(this);
|
nav_btns = new QButtonGroup(this);
|
||||||
@@ -95,7 +95,21 @@ OscarSettingsWindow::OscarSettingsWindow(QWidget *parent) : QFrame(parent) {
|
|||||||
QPushButton *btn = new QPushButton(name);
|
QPushButton *btn = new QPushButton(name);
|
||||||
btn->setCheckable(true);
|
btn->setCheckable(true);
|
||||||
btn->setChecked(nav_btns->buttons().size() == 0);
|
btn->setChecked(nav_btns->buttons().size() == 0);
|
||||||
btn->setStyleSheet();
|
btn->setStyleSheet(R"(
|
||||||
|
QPushButton {
|
||||||
|
color: grey;
|
||||||
|
border: none;
|
||||||
|
background: none;
|
||||||
|
font-size: 65px;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
QPushButton:checked {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
QPushButton:pressed {
|
||||||
|
color: #ADADAD;
|
||||||
|
}
|
||||||
|
)");
|
||||||
btn->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
|
btn->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
|
||||||
nav_btns->addButton(btn);
|
nav_btns->addButton(btn);
|
||||||
sidebar_layout->addWidget(btn, 0, Qt::AlignRight);
|
sidebar_layout->addWidget(btn, 0, Qt::AlignRight);
|
||||||
|
|||||||
Reference in New Issue
Block a user