mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-27 21:19:18 +00:00
Fix TipWindow background color
This commit is contained in:
parent
3066e1b301
commit
d02efbf315
@ -708,8 +708,14 @@ void SkinTheme::initWidget(Widget* widget)
|
||||
else {
|
||||
BORDER(0);
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
default:
|
||||
|
@ -271,9 +271,6 @@ void TipWindow::onInitTheme(InitThemeEvent& ev)
|
||||
6 * guiscale(),
|
||||
6 * guiscale(),
|
||||
7 * guiscale()));
|
||||
|
||||
// Setup the background color.
|
||||
setBgColor(gfx::rgba(255, 255, 200));
|
||||
}
|
||||
|
||||
void TipWindow::onPaint(PaintEvent& ev)
|
||||
|
Loading…
Reference in New Issue
Block a user