From 4983e435675c5ecdff75bf40b8a12d025fc646eb Mon Sep 17 00:00:00 2001 From: Yaash Jain Date: Thu, 26 Sep 2024 14:04:03 -0700 Subject: [PATCH] fix: make transition hover and select colors more user friendly Signed-off-by: Yaash Jain --- timeline.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/timeline.cpp b/timeline.cpp index 7d6a912..00e1828 100644 --- a/timeline.cpp +++ b/timeline.cpp @@ -274,6 +274,12 @@ void DrawTransition( auto selected_fill_color = appTheme.colors[AppThemeCol_TransitionSelected]; auto hover_fill_color = appTheme.colors[AppThemeCol_TransitionHovered]; + if (ColorIsBright(fill_color)) { + auto inverted_fill_color = ColorInvert(fill_color); + selected_fill_color = TintedColorForUI(inverted_fill_color); + hover_fill_color = TintedColorForUI(inverted_fill_color); + } + auto old_pos = ImGui::GetCursorPos(); ImGui::SetCursorPos(render_pos);