diff --git a/inspector.cpp b/inspector.cpp index e9eab11..64d6707 100644 --- a/inspector.cpp +++ b/inspector.cpp @@ -516,6 +516,7 @@ void DrawInspector() { if (item_color != "") { SetItemColor(item, item_color); } + bool x = ImGui::Checkbox("Enabled", &item->_enabled); } auto trimmed_range = item->trimmed_range(); diff --git a/timeline.cpp b/timeline.cpp index 8b9925d..1004114 100644 --- a/timeline.cpp +++ b/timeline.cpp @@ -101,6 +101,10 @@ void DrawItem( 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];