Skip to content

Commit aa425ae

Browse files
Merge pull request #324 from DataLab-Platform/fix/297-low-contrast-markers
FIX: Refreshes plot defaults on theme switch
2 parents f2106e6 + 101e242 commit aa425ae

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

datalab/gui/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@
5757
APP_NAME,
5858
DATAPATH,
5959
DEBUG,
60+
PLOTPY_CONF,
61+
PLOTPY_DEFAULTS,
6062
TEST_SEGFAULT_ERROR,
6163
Conf,
6264
_,
@@ -2426,6 +2428,7 @@ def __update_color_mode(self, startup: bool = False) -> None:
24262428
self.setUpdatesEnabled(False)
24272429

24282430
plotpy_config.set_plotpy_color_mode(mode)
2431+
PLOTPY_CONF.update_defaults(PLOTPY_DEFAULTS)
24292432

24302433
if self.console is not None:
24312434
self.console.update_color_mode()

0 commit comments

Comments
 (0)