limit style scope (#23181)

old-commit-hash: 2335a20584
commatwo_master
Dean Lee 4 years ago committed by GitHub
parent bc267926ce
commit 22a334b224
  1. 8
      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); QObject::connect(poweroff_btn, &QPushButton::clicked, this, &DevicePanel::poweroff);
setStyleSheet(R"( setStyleSheet(R"(
QPushButton { #reboot_btn { height: 120px; border-radius: 15px; background-color: #393939; }
height: 120px;
border-radius: 15px;
}
#reboot_btn { background-color: #393939; }
#reboot_btn:pressed { background-color: #4a4a4a; } #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; } #poweroff_btn:pressed { background-color: #FF2424; }
)"); )");
addItem(power_layout); addItem(power_layout);

Loading…
Cancel
Save