- QPalette::ColorRole cr = role(color.baseColor);
- if (syscolors && cr != NoRole)
- return pal_.brush(QPalette::Active, cr).color();
- else
+ QPalette::ColorRole const cr = role(color.baseColor);
+ if (syscolors && cr != QPalette::NoRole) {
+ static QColor const white = Qt::white;
+ QColor const c = pal_.brush(QPalette::Active, cr).color();
+ if (cr == QPalette::Base && c == white)
+ return lcolors_[color.baseColor];
+ else
+ return c;
+ } else