From f3cde93bc5f3c4bc38c02cbe4caa643e245d23a4 Mon Sep 17 00:00:00 2001 From: Eray Cepni Date: Thu, 15 Oct 2026 12:13:17 +0300 Subject: [PATCH] UI: Make scrollbar opaque while dragging Preserve the theme's scrollbar color while forcing full opacity when the scrollbar is held. Restore theme opacity on release. --- Common/UI/ScrollView.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Common/UI/ScrollView.cpp b/Common/UI/ScrollView.cpp index e426a792b7..bc20f3fad0 100644 --- a/Common/UI/ScrollView.cpp +++ b/Common/UI/ScrollView.cpp @@ -336,7 +336,11 @@ void ScrollView::Draw(UIContext &dc) { if (bob.show) { Bounds bobBounds(bounds_.x2() - bob.thickness, bounds_.y + bob.offset, bob.thickness, bob.size); - dc.FillRect(Drawable(dc.GetTheme().scrollbarColor), bobBounds); + uint32_t scrollBarColor = dc.GetTheme().scrollbarColor; + if (draggingBob_) { + scrollBarColor |= 0xFF000000; + } + dc.FillRect(Drawable(scrollBarColor), bobBounds); } }