Skip to content

Commit

Permalink
fix: make transition hover and select colors more user friendly
Browse files Browse the repository at this point in the history
Signed-off-by: Yaash Jain <[email protected]>
  • Loading branch information
yaash45 committed Sep 26, 2024
1 parent 6113ac9 commit 4983e43
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions timeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 4983e43

Please sign in to comment.