ui/settings: Don't apply styles to more elements than needed. (#29463)

old-commit-hash: 5765c1d978
beeps
Dean Lee 2 years ago committed by GitHub
parent 701cd6f6fe
commit 11b5cfa422
  1. 8
      selfdrive/ui/qt/offroad/settings.cc
  2. 2
      selfdrive/ui/qt/widgets/controls.cc

@ -348,10 +348,6 @@ SettingsWindow::SettingsWindow(QWidget *parent) : QFrame(parent) {
QVBoxLayout *sidebar_layout = new QVBoxLayout(sidebar_widget);
sidebar_layout->setMargin(0);
panel_widget = new QStackedWidget();
panel_widget->setStyleSheet(R"(
border-radius: 30px;
background-color: #292929;
)");
// close button
QPushButton *close_btn = new QPushButton(tr("×"));
@ -440,5 +436,9 @@ SettingsWindow::SettingsWindow(QWidget *parent) : QFrame(parent) {
SettingsWindow {
background-color: black;
}
QStackedWidget, ScrollView {
background-color: #292929;
border-radius: 30px;
}
)");
}

@ -23,7 +23,7 @@ AbstractControl::AbstractControl(const QString &title, const QString &desc, cons
// title
title_label = new QPushButton(title);
title_label->setFixedHeight(120);
title_label->setStyleSheet("font-size: 50px; font-weight: 400; text-align: left");
title_label->setStyleSheet("font-size: 50px; font-weight: 400; text-align: left; border: none;");
hlayout->addWidget(title_label, 1);
// value next to control button

Loading…
Cancel
Save