Skip to content

Commit

Permalink
✨ add color to "reset filters to default" callback
Browse files Browse the repository at this point in the history
  • Loading branch information
danton267 committed Jul 13, 2023
1 parent ed7c2ec commit ba19ed3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion callbacks/control_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ba19ed3

Please sign in to comment.