MediaPlayer PositionToolTip Color

Previously the layout would crush the default colors of BStringView preventing
BStringView from calling AdoptParentColors() on its own, so we must call it
manually.

In addition, the default tooltip view should fully adopt tooltip colors so
that any colors will default to the desired foreground color (which is the
same as the tooltip text color).

Fixes #12573.

Signed-off-by: Jessica Hamilton <[email protected]>
This commit is contained in:
looncraz
2016-01-10 11:39:35 +13:00
committed by Jessica Hamilton
parent 5dee82df48
commit 054c81664a
2 changed files with 2 additions and 0 deletions
@@ -30,6 +30,7 @@ public:
virtual void AttachedToWindow()
{
BStringView::AttachedToWindow();
AdoptParentColors();
Update(-1, -1);
}
+1
View File
@@ -67,6 +67,7 @@ ToolTipView::ToolTipView(BToolTip* tip)
{
fToolTip->AcquireReference();
SetViewUIColor(B_TOOL_TIP_BACKGROUND_COLOR);
SetHighUIColor(B_TOOL_TIP_TEXT_COLOR);
BGroupLayout* layout = new BGroupLayout(B_VERTICAL);
layout->SetInsets(5, 5, 5, 5);