mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-15 19:52:05 +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 {
|
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:
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user