fix text color

This commit is contained in:
uncor3
2025-12-08 21:21:45 +00:00
parent ce4a90a29c
commit 4a5acabc19
+3 -1
View File
@@ -143,10 +143,12 @@ DeviceInfoWidget::DeviceInfoWidget(iDescriptorDevice *device, QWidget *parent)
m_chargingStatusLabel =
new QLabel(device->deviceInfo.batteryInfo.isCharging ? "Charging"
: "Not Charging");
m_chargingStatusLabel->setStyleSheet(
device->deviceInfo.batteryInfo.isCharging
? QString("color: %1;").arg(COLOR_GREEN.name())
: "color: white;");
: QString("color: %1;")
.arg(qApp->palette().color(QPalette::WindowText).name()));
// Create the layout without a parent widget
QHBoxLayout *chargingLayout = new QHBoxLayout();