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.
This commit is contained in:
Eray Cepni committed 2026-10-15 12:13:17 +03:00
1 parent cc089011ca
commit f3cde93bc5
1 file changed
+5 -1
+5 -1
View File
@@ -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);
}
}