limit style scope (#23181)

old-commit-hash: 2335a2058489bff8f7a930dec81fdd4000876478
This commit is contained in:
Dean Lee
2021-12-10 03:37:59 +08:00
committed by GitHub
parent bc267926ce
commit 22a334b224

View File

@@ -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);