From fc1a4d4d782c293d06cad230c094591ce6769193 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Sat, 11 Jan 2025 17:56:36 -0500 Subject: [PATCH] try this --- selfdrive/ui/sunnypilot/qt/offroad/settings/device_panel.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/selfdrive/ui/sunnypilot/qt/offroad/settings/device_panel.cc b/selfdrive/ui/sunnypilot/qt/offroad/settings/device_panel.cc index 9f718fdf71..36a56c9d88 100644 --- a/selfdrive/ui/sunnypilot/qt/offroad/settings/device_panel.cc +++ b/selfdrive/ui/sunnypilot/qt/offroad/settings/device_panel.cc @@ -25,7 +25,7 @@ DevicePanelSP::DevicePanelSP(SettingsWindowSP *parent) : DevicePanel(parent) { }; for (int i = 0; i < device_btns.size(); i++) { - auto *btn = new PushButtonSP(device_btns[i].second, 730, this); + auto *btn = new PushButtonSP(device_btns[i].second, 720, this); device_grid_layout->addWidget(btn, i / 2, i % 2); buttons[device_btns[i].first] = btn; } @@ -70,12 +70,12 @@ DevicePanelSP::DevicePanelSP(SettingsWindowSP *parent) : DevicePanel(parent) { QHBoxLayout *power_layout = new QHBoxLayout(); power_layout->setSpacing(5); - QPushButton *rebootBtn = new PushButtonSP(tr("Reboot"), 730, this); + QPushButton *rebootBtn = new PushButtonSP(tr("Reboot"), 720, this); rebootBtn->setStyleSheet(rebootButtonStyle); power_layout->addWidget(rebootBtn); QObject::connect(rebootBtn, &PushButtonSP::clicked, this, &DevicePanelSP::reboot); - QPushButton *poweroffBtn = new PushButtonSP(tr("Power Off"), 730, this); + QPushButton *poweroffBtn = new PushButtonSP(tr("Power Off"), 720, this); poweroffBtn->setStyleSheet(powerOffButtonStyle); power_layout->addWidget(poweroffBtn); QObject::connect(poweroffBtn, &PushButtonSP::clicked, this, &DevicePanelSP::poweroff);