mirror of
https://github.com/nqrduck/nqrduck-broadband.git
synced 2024-12-22 07:40:27 +00:00
Improved dark mode compatibility.
This commit is contained in:
parent
a159a42a30
commit
47ef932695
1 changed files with 9 additions and 0 deletions
|
@ -105,6 +105,12 @@ class BroadbandView(ModuleView):
|
||||||
self._ui_form.exportButton.clicked.connect(self.on_save_button_clicked)
|
self._ui_form.exportButton.clicked.connect(self.on_save_button_clicked)
|
||||||
self._ui_form.importButton.clicked.connect(self.on_load_button_clicked)
|
self._ui_form.importButton.clicked.connect(self.on_load_button_clicked)
|
||||||
|
|
||||||
|
@pyqtSlot()
|
||||||
|
def on_settings_changed(self) -> None:
|
||||||
|
"""Redraw the plots in case the according settings have changed."""
|
||||||
|
logger.debug("Settings changed.")
|
||||||
|
self.init_plots()
|
||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
def start_measurement_clicked(self) -> None:
|
def start_measurement_clicked(self) -> None:
|
||||||
"""This method is called when the start measurement button is clicked.
|
"""This method is called when the start measurement button is clicked.
|
||||||
|
@ -160,14 +166,17 @@ class BroadbandView(ModuleView):
|
||||||
def init_plots(self) -> None:
|
def init_plots(self) -> None:
|
||||||
"""Initialize the plots."""
|
"""Initialize the plots."""
|
||||||
# Initialization of broadband spectrum
|
# Initialization of broadband spectrum
|
||||||
|
self._ui_form.broadbandPlot.canvas.ax.clear()
|
||||||
self._ui_form.broadbandPlot.canvas.ax.set_xlim([0, 250])
|
self._ui_form.broadbandPlot.canvas.ax.set_xlim([0, 250])
|
||||||
self.set_broadband_labels()
|
self.set_broadband_labels()
|
||||||
|
|
||||||
# Initialization of last measurement time domain
|
# Initialization of last measurement time domain
|
||||||
|
self._ui_form.time_domainPlot.canvas.ax.clear()
|
||||||
self._ui_form.time_domainPlot.canvas.ax.set_xlim([0, 250])
|
self._ui_form.time_domainPlot.canvas.ax.set_xlim([0, 250])
|
||||||
self.set_timedomain_labels()
|
self.set_timedomain_labels()
|
||||||
|
|
||||||
# Initialization of last measurement frequency domain
|
# Initialization of last measurement frequency domain
|
||||||
|
self._ui_form.frequency_domainPlot.canvas.ax.clear()
|
||||||
self._ui_form.frequency_domainPlot.canvas.ax.set_xlim([0, 250])
|
self._ui_form.frequency_domainPlot.canvas.ax.set_xlim([0, 250])
|
||||||
self.set_frequencydomain_labels()
|
self.set_frequencydomain_labels()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue