Fixed Calibration dialog styling on the inputs in skin mode

pull/35/head
Carl Tremblay 2019-10-10 22:12:18 -04:00
rodzic 3df16eaeec
commit bd40d95fa4
3 zmienionych plików z 34 dodań i 0 usunięć

Wyświetl plik

@ -130,13 +130,19 @@ class CalibrationWindow(QtWidgets.QWidget):
cal_standard_layout.addRow(self.use_ideal_values) cal_standard_layout.addRow(self.use_ideal_values)
self.cal_short_box = QtWidgets.QGroupBox("Short") self.cal_short_box = QtWidgets.QGroupBox("Short")
# self.cal_short_box.setProperty("cssClass", "cal_box")
cal_short_form = QtWidgets.QFormLayout(self.cal_short_box) cal_short_form = QtWidgets.QFormLayout(self.cal_short_box)
self.cal_short_box.setDisabled(True) self.cal_short_box.setDisabled(True)
self.short_l0_input = QtWidgets.QLineEdit("0") self.short_l0_input = QtWidgets.QLineEdit("0")
self.short_l0_input.setProperty("cssClass", "cal_input")
self.short_l1_input = QtWidgets.QLineEdit("0") self.short_l1_input = QtWidgets.QLineEdit("0")
self.short_l1_input.setProperty("cssClass", "cal_input")
self.short_l2_input = QtWidgets.QLineEdit("0") self.short_l2_input = QtWidgets.QLineEdit("0")
self.short_l2_input.setProperty("cssClass", "cal_input")
self.short_l3_input = QtWidgets.QLineEdit("0") self.short_l3_input = QtWidgets.QLineEdit("0")
self.short_l3_input.setProperty("cssClass", "cal_input")
self.short_length = QtWidgets.QLineEdit("0") self.short_length = QtWidgets.QLineEdit("0")
self.short_length.setProperty("cssClass", "cal_input")
cal_short_form.addRow("L0 (F(e-12))", self.short_l0_input) cal_short_form.addRow("L0 (F(e-12))", self.short_l0_input)
cal_short_form.addRow("L1 (F(e-24))", self.short_l1_input) cal_short_form.addRow("L1 (F(e-24))", self.short_l1_input)
cal_short_form.addRow("L2 (F(e-33))", self.short_l2_input) cal_short_form.addRow("L2 (F(e-33))", self.short_l2_input)
@ -144,13 +150,19 @@ class CalibrationWindow(QtWidgets.QWidget):
cal_short_form.addRow("Offset Delay (ps)", self.short_length) cal_short_form.addRow("Offset Delay (ps)", self.short_length)
self.cal_open_box = QtWidgets.QGroupBox("Open") self.cal_open_box = QtWidgets.QGroupBox("Open")
# self.cal_open_box.setProperty("cssClass", "cal_box")
cal_open_form = QtWidgets.QFormLayout(self.cal_open_box) cal_open_form = QtWidgets.QFormLayout(self.cal_open_box)
self.cal_open_box.setDisabled(True) self.cal_open_box.setDisabled(True)
self.open_c0_input = QtWidgets.QLineEdit("50") self.open_c0_input = QtWidgets.QLineEdit("50")
self.open_c0_input.setProperty("cssClass", "cal_input")
self.open_c1_input = QtWidgets.QLineEdit("0") self.open_c1_input = QtWidgets.QLineEdit("0")
self.open_c1_input.setProperty("cssClass", "cal_input")
self.open_c2_input = QtWidgets.QLineEdit("0") self.open_c2_input = QtWidgets.QLineEdit("0")
self.open_c2_input.setProperty("cssClass", "cal_input")
self.open_c3_input = QtWidgets.QLineEdit("0") self.open_c3_input = QtWidgets.QLineEdit("0")
self.open_c3_input.setProperty("cssClass", "cal_input")
self.open_length = QtWidgets.QLineEdit("0") self.open_length = QtWidgets.QLineEdit("0")
self.open_length.setProperty("cssClass", "cal_input")
cal_open_form.addRow("C0 (H(e-15))", self.open_c0_input) cal_open_form.addRow("C0 (H(e-15))", self.open_c0_input)
cal_open_form.addRow("C1 (H(e-27))", self.open_c1_input) cal_open_form.addRow("C1 (H(e-27))", self.open_c1_input)
cal_open_form.addRow("C2 (H(e-36))", self.open_c2_input) cal_open_form.addRow("C2 (H(e-36))", self.open_c2_input)
@ -158,22 +170,29 @@ class CalibrationWindow(QtWidgets.QWidget):
cal_open_form.addRow("Offset Delay (ps)", self.open_length) cal_open_form.addRow("Offset Delay (ps)", self.open_length)
self.cal_load_box = QtWidgets.QGroupBox("Load") self.cal_load_box = QtWidgets.QGroupBox("Load")
# self.cal_load_box.setProperty("cssClass", "cal_box")
cal_load_form = QtWidgets.QFormLayout(self.cal_load_box) cal_load_form = QtWidgets.QFormLayout(self.cal_load_box)
self.cal_load_box.setDisabled(True) self.cal_load_box.setDisabled(True)
self.load_resistance = QtWidgets.QLineEdit("50") self.load_resistance = QtWidgets.QLineEdit("50")
self.load_resistance.setProperty("cssClass", "cal_input")
self.load_inductance = QtWidgets.QLineEdit("0") self.load_inductance = QtWidgets.QLineEdit("0")
self.load_inductance.setProperty("cssClass", "cal_input")
self.load_capacitance = QtWidgets.QLineEdit("0") self.load_capacitance = QtWidgets.QLineEdit("0")
self.load_capacitance.setProperty("cssClass", "cal_input")
self.load_capacitance.setDisabled(True) # Not yet implemented self.load_capacitance.setDisabled(True) # Not yet implemented
self.load_length = QtWidgets.QLineEdit("0") self.load_length = QtWidgets.QLineEdit("0")
self.load_length.setProperty("cssClass", "cal_input")
cal_load_form.addRow("Resistance (\N{OHM SIGN})", self.load_resistance) cal_load_form.addRow("Resistance (\N{OHM SIGN})", self.load_resistance)
cal_load_form.addRow("Inductance (H(e-12))", self.load_inductance) cal_load_form.addRow("Inductance (H(e-12))", self.load_inductance)
cal_load_form.addRow("Capacitance (F(e-12))", self.load_capacitance) cal_load_form.addRow("Capacitance (F(e-12))", self.load_capacitance)
cal_load_form.addRow("Offset Delay (ps)", self.load_length) cal_load_form.addRow("Offset Delay (ps)", self.load_length)
self.cal_through_box = QtWidgets.QGroupBox("Through") self.cal_through_box = QtWidgets.QGroupBox("Through")
# self.cal_through_box.setProperty("cssClass", "cal_box")
cal_through_form = QtWidgets.QFormLayout(self.cal_through_box) cal_through_form = QtWidgets.QFormLayout(self.cal_through_box)
self.cal_through_box.setDisabled(True) self.cal_through_box.setDisabled(True)
self.through_length = QtWidgets.QLineEdit("0") self.through_length = QtWidgets.QLineEdit("0")
self.through_length.setProperty("cssClass", "cal_input")
cal_through_form.addRow("Offset Delay (ps)", self.through_length) cal_through_form.addRow("Offset Delay (ps)", self.through_length)
cal_standard_layout.addWidget(self.cal_short_box) cal_standard_layout.addWidget(self.cal_short_box)
@ -182,6 +201,7 @@ class CalibrationWindow(QtWidgets.QWidget):
cal_standard_layout.addWidget(self.cal_through_box) cal_standard_layout.addWidget(self.cal_through_box)
self.cal_standard_save_box = QtWidgets.QGroupBox("Saved settings") self.cal_standard_save_box = QtWidgets.QGroupBox("Saved settings")
# self.cal_standard_save_box.setProperty("cssClass", "cal_box")
cal_standard_save_layout = QtWidgets.QVBoxLayout(self.cal_standard_save_box) cal_standard_save_layout = QtWidgets.QVBoxLayout(self.cal_standard_save_box)
self.cal_standard_save_box.setDisabled(True) self.cal_standard_save_box.setDisabled(True)

Wyświetl plik

@ -349,3 +349,10 @@ QGroupBox {
color: #00d074; color: #00d074;
font-weight: bold; font-weight: bold;
} }
[cssClass="cal_input"] {
background-color: #000000;
color: #e1442a;
border: 2px groove #232223;
margin: 0px;
font-weight: bold;
}

Wyświetl plik

@ -355,3 +355,10 @@ QGroupBox {
color: #000000; color: #000000;
font-weight: bold; font-weight: bold;
} }
[cssClass="cal_input"] {
background-color: #000000;
color: #e1442a;
border: 2px groove #232223;
margin: 0px;
font-weight: bold;
}