From 22a334b224e26fd1b73ea9a5316e67812910d0db Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Fri, 10 Dec 2021 03:37:59 +0800 Subject: [PATCH] limit style scope (#23181) old-commit-hash: 2335a2058489bff8f7a930dec81fdd4000876478 --- selfdrive/ui/qt/offroad/settings.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/selfdrive/ui/qt/offroad/settings.cc b/selfdrive/ui/qt/offroad/settings.cc index eee4dab052..72bfd2eb80 100644 --- a/selfdrive/ui/qt/offroad/settings.cc +++ b/selfdrive/ui/qt/offroad/settings.cc @@ -165,13 +165,9 @@ DevicePanel::DevicePanel(SettingsWindow *parent) : ListWidget(parent) { QObject::connect(poweroff_btn, &QPushButton::clicked, this, &DevicePanel::poweroff); setStyleSheet(R"( - QPushButton { - height: 120px; - border-radius: 15px; - } - #reboot_btn { background-color: #393939; } + #reboot_btn { height: 120px; border-radius: 15px; background-color: #393939; } #reboot_btn:pressed { background-color: #4a4a4a; } - #poweroff_btn { background-color: #E22C2C; } + #poweroff_btn { height: 120px; border-radius: 15px; background-color: #E22C2C; } #poweroff_btn:pressed { background-color: #FF2424; } )"); addItem(power_layout);