CtrlLib: ScrollBar style: bgcolor

git-svn-id: svn://ultimatepp.org/upp/trunk@11998 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-06-17 16:41:07 +00:00
parent 9aa46d3e21
commit e7aaad2c16
3 changed files with 3 additions and 3 deletions

View file

@ -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();

View file

@ -17,6 +17,7 @@ public:
public:
struct Style : ChStyle<Style> {
Color bgcolor;
int barsize, arrowsize, thumbmin, overthumb, thumbwidth;
bool through;
Value vupper[4], vthumb[4], vlower[4];

View file

@ -6,8 +6,6 @@ NAMESPACE_UPP
void ChSysInit()
{
CtrlImg::Reset();
CtrlsImg::Reset();
ChReset();
}