mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Refactor 'grey-out' CSS
The CSS used to grey out the checkbox and label for advanced IADS should be refactored so it can be reused for disabling player checkboxes in the flight edit/create dialogs. The solution is applied to all checkboxes/labels, so that there's a consistent way of showing users when a checkbox/label is disabled.
This commit is contained in:
@@ -393,11 +393,8 @@ class TheaterConfiguration(QtWidgets.QWizardPage):
|
||||
mapSettingsLayout.addWidget(QtWidgets.QLabel("Invert Map"), 0, 0)
|
||||
mapSettingsLayout.addWidget(invertMap, 0, 1)
|
||||
self.advanced_iads = QtWidgets.QCheckBox()
|
||||
disabled_grey_out = "QCheckBox::indicator:disabled{ background-color: rgba(255, 255, 255, 5%); }"
|
||||
self.advanced_iads.setStyleSheet(disabled_grey_out)
|
||||
self.registerField("advanced_iads", self.advanced_iads)
|
||||
self.iads_label = QtWidgets.QLabel("Advanced IADS (WIP)")
|
||||
self.iads_label.setStyleSheet("QLabel:disabled{color: #888888}")
|
||||
mapSettingsLayout.addWidget(self.iads_label, 1, 0)
|
||||
mapSettingsLayout.addWidget(self.advanced_iads, 1, 1)
|
||||
mapSettingsGroup.setLayout(mapSettingsLayout)
|
||||
|
||||
Reference in New Issue
Block a user