mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 00:10:31 +02:00
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:
1 parent
cc089011ca
commit
f3cde93bc5
1 file changed
+5
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user