diff --git a/nexus_constructor/treeview_utils.py b/nexus_constructor/treeview_utils.py index 4b500e0c6..9f37f263e 100644 --- a/nexus_constructor/treeview_utils.py +++ b/nexus_constructor/treeview_utils.py @@ -150,6 +150,9 @@ def set_enabled_and_raise(action: QAction, value: bool): for widget in action.associatedWidgets(): if isinstance(widget, QToolButton): widget.setAutoRaise(not value) + # Change background color to pale gray if button is enabled + color = "#d7d6d5" if value else "white" + widget.setStyleSheet(f"background-color: {color}") def handle_number_of_items_selected_is_not_one(