From ba19ed3bbc95a111ed0174c5ea9594d1113b1298 Mon Sep 17 00:00:00 2001 From: admin <51248046+danton267@users.noreply.github.com> Date: Thu, 13 Jul 2023 15:24:22 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20add=20color=20to=20"reset=20filters?= =?UTF-8?q?=20to=20default"=20callback?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- callbacks/control_bar.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/callbacks/control_bar.py b/callbacks/control_bar.py index b9ba7bf6..48527c97 100644 --- a/callbacks/control_bar.py +++ b/callbacks/control_bar.py @@ -139,10 +139,12 @@ def annotation_visibility(checked, store, figure, image_idx): @callback( Output("figure-brightness", "value", allow_duplicate=True), Output("figure-contrast", "value", allow_duplicate=True), + Output("figure-hue-rotate", "value", allow_duplicate=True), Input("filters-reset", "n_clicks"), prevent_initial_call=True, ) def reset_filters(n_clicks): default_brightness = 100 default_contrast = 100 - return default_brightness, default_contrast + default_color = 0 + return default_brightness, default_contrast, default_color