Fix TipWindow background color

This commit is contained in:
David Capello 2015-12-10 16:46:01 -03:00
parent 3066e1b301
commit d02efbf315
2 changed files with 7 additions and 4 deletions

View File

@ -708,8 +708,14 @@ void SkinTheme::initWidget(Widget* widget)
else { else {
BORDER(0); BORDER(0);
} }
widget->setChildSpacing(4 * scale); // TODO this hard-coded 4 should be configurable in skin.xml widget->setChildSpacing(4 * scale); // TODO this hard-coded 4 should be configurable in skin.xml
widget->setBgColor(colors.windowFace());
// Tooltip background color
if (dynamic_cast<TipWindow*>(widget))
widget->setBgColor(SkinTheme::instance()->colors.tooltipFace());
else
widget->setBgColor(colors.windowFace());
break; break;
default: default:

View File

@ -271,9 +271,6 @@ void TipWindow::onInitTheme(InitThemeEvent& ev)
6 * guiscale(), 6 * guiscale(),
6 * guiscale(), 6 * guiscale(),
7 * guiscale())); 7 * guiscale()));
// Setup the background color.
setBgColor(gfx::rgba(255, 255, 200));
} }
void TipWindow::onPaint(PaintEvent& ev) void TipWindow::onPaint(PaintEvent& ev)