diff --git a/inspector.cpp b/inspector.cpp index ec4f9ff..f35622f 100644 --- a/inspector.cpp +++ b/inspector.cpp @@ -517,6 +517,10 @@ void DrawInspector() { if (item_color != "") { SetItemColor(item, item_color); } + auto enabled = item->enabled(); + if(ImGui::Checkbox("Enabled", &enabled)){ + item->set_enabled(enabled); + } } auto trimmed_range = item->trimmed_range(); diff --git a/timeline.cpp b/timeline.cpp index 00e1828..1324791 100644 --- a/timeline.cpp +++ b/timeline.cpp @@ -102,6 +102,9 @@ void DrawItem( hover_fill_color = TintedColorForUI(fill_color); } + if (!item->enabled()){ + fill_color = UIColorFromName(""); + } if (auto gap = dynamic_cast(item)) { // different colors & style fill_color = appTheme.colors[AppThemeCol_Background];