From 192a74af4a401993b51241114e17e35f978c3152 Mon Sep 17 00:00:00 2001 From: Joseph Barraud Date: Mon, 21 Oct 2024 22:03:20 +0100 Subject: [PATCH] Add colour picker in save dialog --- src/attractor_explorer/attractors_explorer.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/attractor_explorer/attractors_explorer.py b/src/attractor_explorer/attractors_explorer.py index e6e336f..1e10262 100644 --- a/src/attractor_explorer/attractors_explorer.py +++ b/src/attractor_explorer/attractors_explorer.py @@ -216,7 +216,12 @@ def _save(self): print(msg) # noqa: T201 def __panel__(self): - return pn.Param(self) + return pn.Param( + self, + widgets={ + 'background_color': {'widget_type': pn.widgets.ColorPicker(name='Background Colour', value='#000000')} + }, + ) image_saver = ImageSaver(name='Choose settings for the export:')