Acoused: Remove 'Ubuntu' font and replace by 'DejaVu Sans' font.
parent
d22e41c582
commit
400fa26f84
|
|
@ -71,12 +71,12 @@ class AboutWindow(QDialog):
|
||||||
|
|
||||||
self.label_acoused = QLabel()
|
self.label_acoused = QLabel()
|
||||||
self.label_acoused.setText("Acoused 2.0")
|
self.label_acoused.setText("Acoused 2.0")
|
||||||
self.label_acoused.setFont(QFont("Ubuntu", 14))
|
self.label_acoused.setFont(QFont("DejaVu Sans", 14))
|
||||||
self.gridLayout.addWidget(self.label_acoused, 0, 1, 1, 1, Qt.AlignCenter)
|
self.gridLayout.addWidget(self.label_acoused, 0, 1, 1, 1, Qt.AlignCenter)
|
||||||
|
|
||||||
self.label_date = QLabel()
|
self.label_date = QLabel()
|
||||||
self.label_date.setText("2025.01.01")
|
self.label_date.setText("2025.01.01")
|
||||||
self.label_date.setFont(QFont("Ubuntu", 12))
|
self.label_date.setFont(QFont("DejaVu Sans", 12))
|
||||||
self.gridLayout.addWidget(self.label_date, 1, 1, 1, 1, Qt.AlignCenter)
|
self.gridLayout.addWidget(self.label_date, 1, 1, 1, 1, Qt.AlignCenter)
|
||||||
|
|
||||||
self.label_logo_INRAE = QLabel()
|
self.label_logo_INRAE = QLabel()
|
||||||
|
|
@ -302,5 +302,3 @@ class Authors(QDialog):
|
||||||
# w = AboutWindow()
|
# w = AboutWindow()
|
||||||
# w.show()
|
# w.show()
|
||||||
# sys.exit(app.exec_())
|
# sys.exit(app.exec_())
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -444,15 +444,13 @@ class AcousticInversionTab(QWidget):
|
||||||
self.pushbutton_plot_sand_sample_choice\
|
self.pushbutton_plot_sand_sample_choice\
|
||||||
.clicked.connect(self.plot_measured_vs_inverted_SSC_sand)
|
.clicked.connect(self.plot_measured_vs_inverted_SSC_sand)
|
||||||
|
|
||||||
|
|
||||||
@trace
|
@trace
|
||||||
def full_update(self):
|
def full_update(self):
|
||||||
logger.debug(f"{__name__}: Update")
|
logger.debug(f"{__name__}: Update")
|
||||||
self.blockSignals(True)
|
self.blockSignals(True)
|
||||||
|
|
||||||
self.update_acoustic_data_choice()
|
self.update_acoustic_data_choice()
|
||||||
|
self.function_run_inversion()
|
||||||
# TODO: Update all widgets
|
|
||||||
|
|
||||||
self.blockSignals(False)
|
self.blockSignals(False)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ class PlotNoiseWindow(QDialog):
|
||||||
|
|
||||||
eval("self.ax" + str(i) + "[" + str(freq_ind) + "]" + ".text(1, .70, stg.freq_text[" + str(i) +
|
eval("self.ax" + str(i) + "[" + str(freq_ind) + "]" + ".text(1, .70, stg.freq_text[" + str(i) +
|
||||||
"][" + str(freq_ind) + "]," +
|
"][" + str(freq_ind) + "]," +
|
||||||
"fontsize=10, fontweight='bold', fontname='Ubuntu', c='black', alpha=0.5," +
|
"fontsize=10, fontweight='bold', fontname='DejaVu Sans', c='black', alpha=0.5," +
|
||||||
"horizontalalignment='right', verticalalignment='bottom'," +
|
"horizontalalignment='right', verticalalignment='bottom'," +
|
||||||
"transform=self.ax" + str(i) + "[" + str(freq_ind) + "].transAxes)")
|
"transform=self.ax" + str(i) + "[" + str(freq_ind) + "].transAxes)")
|
||||||
|
|
||||||
|
|
@ -91,4 +91,3 @@ class PlotNoiseWindow(QDialog):
|
||||||
|
|
||||||
exec("self.verticalLayout_tab" + str(i) + ".addWidget(self.toolbar" + str(i) + ")")
|
exec("self.verticalLayout_tab" + str(i) + ".addWidget(self.toolbar" + str(i) + ")")
|
||||||
exec("self.verticalLayout_tab" + str(i) + ".addWidget(self.scroll" + str(i) + ")")
|
exec("self.verticalLayout_tab" + str(i) + ".addWidget(self.scroll" + str(i) + ")")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -648,7 +648,7 @@ class SedimentCalibrationTab(QWidget):
|
||||||
self.label_FCB_explanation_alphas_positive.setText(
|
self.label_FCB_explanation_alphas_positive.setText(
|
||||||
"α<sub>s FCB</sub> > 0 : comparison with calibration"
|
"α<sub>s FCB</sub> > 0 : comparison with calibration"
|
||||||
)
|
)
|
||||||
self.label_FCB_explanation_alphas_positive.setFont(QFont('Ubuntu', 12))
|
self.label_FCB_explanation_alphas_positive.setFont(QFont('DejaVu Sans', 12))
|
||||||
self.gridLayout_groupbox_FCB_text_alphas.addWidget(
|
self.gridLayout_groupbox_FCB_text_alphas.addWidget(
|
||||||
self.label_FCB_explanation_alphas_positive,
|
self.label_FCB_explanation_alphas_positive,
|
||||||
0, 1, 1, 1, Qt.AlignLeft
|
0, 1, 1, 1, Qt.AlignLeft
|
||||||
|
|
@ -669,7 +669,7 @@ class SedimentCalibrationTab(QWidget):
|
||||||
self.label_FCB_explanation_alphas_negative.setText(
|
self.label_FCB_explanation_alphas_negative.setText(
|
||||||
"α<sub>s FCB</sub> < 0 : do not compare with calibration"
|
"α<sub>s FCB</sub> < 0 : do not compare with calibration"
|
||||||
)
|
)
|
||||||
self.label_FCB_explanation_alphas_negative.setFont(QFont('Ubuntu', 12))
|
self.label_FCB_explanation_alphas_negative.setFont(QFont('DejaVu Sans', 12))
|
||||||
self.gridLayout_groupbox_FCB_text_alphas.addWidget(
|
self.gridLayout_groupbox_FCB_text_alphas.addWidget(
|
||||||
self.label_FCB_explanation_alphas_negative,
|
self.label_FCB_explanation_alphas_negative,
|
||||||
1, 1, 1, 1, Qt.AlignLeft
|
1, 1, 1, 1, Qt.AlignLeft
|
||||||
|
|
@ -736,7 +736,7 @@ class SedimentCalibrationTab(QWidget):
|
||||||
self.label_alphaS_FCB.setText(
|
self.label_alphaS_FCB.setText(
|
||||||
"α<sub>s</sub> = " + "0.0" + "dB/m"
|
"α<sub>s</sub> = " + "0.0" + "dB/m"
|
||||||
)
|
)
|
||||||
self.label_alphaS_FCB.setFont(QFont("Ubuntu", 14, QFont.Normal))
|
self.label_alphaS_FCB.setFont(QFont("DejaVu Sans", 14, QFont.Normal))
|
||||||
self.gridLayout_groupbox_FCB_compute.addWidget(
|
self.gridLayout_groupbox_FCB_compute.addWidget(
|
||||||
self.label_alphaS_FCB, 2, 4, 1, 2
|
self.label_alphaS_FCB, 2, 4, 1, 2
|
||||||
)
|
)
|
||||||
|
|
@ -2622,7 +2622,7 @@ class SedimentCalibrationTab(QWidget):
|
||||||
self.axis_FCB.text(.95, .05,
|
self.axis_FCB.text(.95, .05,
|
||||||
stg.freq_text[self.combobox_acoustic_data_choice.currentIndex()][
|
stg.freq_text[self.combobox_acoustic_data_choice.currentIndex()][
|
||||||
self.combobox_frequency_FCB.currentIndex()],
|
self.combobox_frequency_FCB.currentIndex()],
|
||||||
fontsize=10, fontweight='bold', fontname="Ubuntu",
|
fontsize=10, fontweight='bold', fontname="DejaVu Sans",
|
||||||
fontstyle="normal", c="black", alpha=0.2,
|
fontstyle="normal", c="black", alpha=0.2,
|
||||||
horizontalalignment='right', verticalalignment='bottom',
|
horizontalalignment='right', verticalalignment='bottom',
|
||||||
transform=self.axis_FCB.transAxes)
|
transform=self.axis_FCB.transAxes)
|
||||||
|
|
@ -2658,7 +2658,7 @@ class SedimentCalibrationTab(QWidget):
|
||||||
self.axis_FCB.text(.95, .05,
|
self.axis_FCB.text(.95, .05,
|
||||||
stg.freq_text[self.combobox_acoustic_data_choice.currentIndex()][
|
stg.freq_text[self.combobox_acoustic_data_choice.currentIndex()][
|
||||||
self.combobox_frequency_FCB.currentIndex()],
|
self.combobox_frequency_FCB.currentIndex()],
|
||||||
fontsize=10, fontweight='bold', fontname="Ubuntu",
|
fontsize=10, fontweight='bold', fontname="DejaVu Sans",
|
||||||
fontstyle="normal", c="black", alpha=0.2,
|
fontstyle="normal", c="black", alpha=0.2,
|
||||||
horizontalalignment='right', verticalalignment='bottom',
|
horizontalalignment='right', verticalalignment='bottom',
|
||||||
transform=self.axis_FCB.transAxes)
|
transform=self.axis_FCB.transAxes)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue