diff --git a/uppsrc/CtrlLib/ScrollBar.cpp b/uppsrc/CtrlLib/ScrollBar.cpp index 64eee5b31..9a430fd33 100644 --- a/uppsrc/CtrlLib/ScrollBar.cpp +++ b/uppsrc/CtrlLib/ScrollBar.cpp @@ -33,6 +33,7 @@ CH_STYLE(ScrollBar, Style, StyleDefault) Sb(right2, CtrlsImg::RA()); isup2 = isdown2 = isleft2 = isright2 = false; thumbwidth = Null; + bgcolor = SColorPaper(); } ScrollBar::ScrollBar() { @@ -135,7 +136,7 @@ Rect ScrollBar::GetPartRect(int p) const { } void ScrollBar::Paint(Draw& w) { - w.DrawRect(GetSize(), SColorPaper()); + w.DrawRect(GetSize(), style->bgcolor); int cc; Size sz = style->through ? GetSize() : Slider(cc).GetSize(); light = GetMousePart(); diff --git a/uppsrc/CtrlLib/ScrollBar.h b/uppsrc/CtrlLib/ScrollBar.h index dec403f12..4b707b792 100644 --- a/uppsrc/CtrlLib/ScrollBar.h +++ b/uppsrc/CtrlLib/ScrollBar.h @@ -17,6 +17,7 @@ public: public: struct Style : ChStyle