From e1cd68e3ab3c76864b99b85f018a9a39fe9d4f7b Mon Sep 17 00:00:00 2001 From: Maarten Bezemer Date: Tue, 18 Jun 2024 23:59:18 +0200 Subject: [PATCH] Remove the scrollbar highlighting when clicked It does not 'de-highlight' and it was only active for the Summary view (making it more consistent with the rest of YAFC) --- Yafc.UI/ImGui/ScrollArea.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Yafc.UI/ImGui/ScrollArea.cs b/Yafc.UI/ImGui/ScrollArea.cs index 7a1f2735..777bf569 100644 --- a/Yafc.UI/ImGui/ScrollArea.cs +++ b/Yafc.UI/ImGui/ScrollArea.cs @@ -113,7 +113,7 @@ private void BuildScrollBar(ImGui gui, int axis, in Rect scrollbarRect, in Rect } break; case ImGuiAction.Build: - gui.DrawRectangle(scrollerRect, gui.IsMouseDown(scrollbarRect, SDL.SDL_BUTTON_LEFT) ? SchemeColor.GreyAlt : SchemeColor.Grey); + gui.DrawRectangle(scrollerRect, SchemeColor.Grey); break; } }