From 101e242bff19415470dcad2054e65f8b9fb6bfb6 Mon Sep 17 00:00:00 2001 From: Stefano Pierini Date: Fri, 22 May 2026 15:06:13 +0200 Subject: [PATCH] FIX: Refreshes plot defaults on theme switch Ensures plotting settings are reapplied when the color mode changes. Keeps plot appearance consistent with the active theme instead of leaving stale default settings in place. --- datalab/gui/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/datalab/gui/main.py b/datalab/gui/main.py index fee7dd5e..2541d2fb 100644 --- a/datalab/gui/main.py +++ b/datalab/gui/main.py @@ -57,6 +57,8 @@ APP_NAME, DATAPATH, DEBUG, + PLOTPY_CONF, + PLOTPY_DEFAULTS, TEST_SEGFAULT_ERROR, Conf, _, @@ -2416,6 +2418,7 @@ def __update_color_mode(self, startup: bool = False) -> None: self.setUpdatesEnabled(False) plotpy_config.set_plotpy_color_mode(mode) + PLOTPY_CONF.update_defaults(PLOTPY_DEFAULTS) if self.console is not None: self.console.update_color_mode()