From 0b0b4d34a495536c8be7e3b11a5984d2595a9fa9 Mon Sep 17 00:00:00 2001 From: kienle <kienle@passcal.nmt.edu> Date: Tue, 19 Dec 2023 11:36:47 -0700 Subject: [PATCH] Fix TPS dialog plots first with black background --- .../plotting/time_power_square/time_power_squared_dialog.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sohstationviewer/view/plotting/time_power_square/time_power_squared_dialog.py b/sohstationviewer/view/plotting/time_power_square/time_power_squared_dialog.py index 085e48339..8d29e2299 100755 --- a/sohstationviewer/view/plotting/time_power_square/time_power_squared_dialog.py +++ b/sohstationviewer/view/plotting/time_power_square/time_power_squared_dialog.py @@ -298,6 +298,9 @@ class TimePowerSquaredDialog(QtWidgets.QWidget): key, tab_name, self, self.info_text_browser, 'TPS', self.main_window ) + # We need to set the colors of the TPS widget when it is created, + # otherwise it will default to black. + tps_widget.set_colors(self.main_window.color_mode) self.plotting_tab.addTab(tps_widget, tab_name) self.tps_widget_dict[tab_name] = tps_widget if tab_idx > 0: -- GitLab