From 576f085ce8bd48f71763e2a33bb6d8613c6f6155 Mon Sep 17 00:00:00 2001 From: ispyisail Date: Sat, 8 Aug 2026 17:07:05 +1200 Subject: [PATCH] Drop hardcoded light-gray background on disabled PLC-IO type combo masterpropertieswidget.cpp set an inline "background-color: #f0f0f0" stylesheet on the disabled type combo box in the PLC master I/O table. Qt already renders disabled widgets correctly without help; the hardcoded light color just breaks under a dark palette, showing a bright box in an otherwise dark dialog. Dropping the stylesheet lets it render like every other disabled widget in the app. --- sources/ui/masterpropertieswidget.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/sources/ui/masterpropertieswidget.cpp b/sources/ui/masterpropertieswidget.cpp index 94d56e145..5d1d5a1ac 100644 --- a/sources/ui/masterpropertieswidget.cpp +++ b/sources/ui/masterpropertieswidget.cpp @@ -605,7 +605,6 @@ void MasterPropertiesWidget::updateUi() // Type combo (read-only — type is defined in the editor) auto *type_cb = new QComboBox(m_plc_table); type_cb->setEnabled(false); - type_cb->setStyleSheet("QComboBox { background-color: #f0f0f0; }"); QStringList plc_types = ElementData::plcIOTypeList(); for (int t = 0; t < plc_types.size(); ++t) { type_cb->addItem(plc_types.at(t), t);