mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-20 01:02:07 +08:00
ui: Hide description on SPAbstractControl init
This commit is contained in:
@@ -105,6 +105,7 @@ TogglesPanel::TogglesPanel(SettingsWindow *parent) : ListWidget(parent) {
|
||||
"In relaxed mode openpilot will stay further away from lead cars."),
|
||||
"../assets/offroad/icon_speed_limit.png",
|
||||
longi_button_texts);
|
||||
long_personality_setting->showDescription();
|
||||
for (auto &[param, title, desc, icon] : toggle_defs) {
|
||||
auto toggle = new ParamControl(param, title, desc, icon, this);
|
||||
|
||||
|
||||
@@ -330,6 +330,7 @@ SPControlsPanel::SPControlsPanel(QWidget *parent) : ListWidget(parent) {
|
||||
"../assets/offroad/icon_blank.png",
|
||||
dlp_settings_texts
|
||||
);
|
||||
dlp_settings->showDescription();
|
||||
|
||||
for (auto &[param, title, desc, icon] : toggle_defs) {
|
||||
auto toggle = new ParamControl(param, title, desc, icon, this);
|
||||
@@ -750,6 +751,7 @@ SPVisualsPanel::SPVisualsPanel(QWidget *parent) : ListWidget(parent) {
|
||||
sidebar_temp_texts,
|
||||
255
|
||||
);
|
||||
sidebar_temp_setting->showDescription();
|
||||
addItem(sidebar_temp_setting);
|
||||
|
||||
// trigger updateToggles() when toggleFlipped
|
||||
|
||||
@@ -82,7 +82,7 @@ SPAbstractControl::SPAbstractControl(const QString &title, const QString &desc,
|
||||
description->setContentsMargins(0, 20, 40, 20);
|
||||
description->setStyleSheet("font-size: 40px; color: grey");
|
||||
description->setWordWrap(true);
|
||||
description->setVisible(true);
|
||||
description->setVisible(false);
|
||||
main_layout->addWidget(description);
|
||||
|
||||
main_layout->addStretch();
|
||||
|
||||
Reference in New Issue
Block a user