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:
committed by
Jessica Hamilton
parent
5dee82df48
commit
054c81664a
@@ -30,6 +30,7 @@ public:
|
||||
virtual void AttachedToWindow()
|
||||
{
|
||||
BStringView::AttachedToWindow();
|
||||
AdoptParentColors();
|
||||
Update(-1, -1);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user