hrev50008 adds 1 changeset to branch 'master'
old head: 5dee82df489b276ceb4f01eee496ea90bc1ba63a
new head: 054c81664abdc380c5384b132ad36ce4af8fdc06
overview:
http://cgit.haiku-os.org/haiku/log/?qt=range&q=054c81664abd+%5E5dee82df489b
----------------------------------------------------------------------------
054c81664abd: 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 <jessica.l.hamilton@xxxxxxxxx>
[ looncraz <looncraz@xxxxxxxxxxxx> ]
----------------------------------------------------------------------------
Revision: hrev50008
Commit: 054c81664abdc380c5384b132ad36ce4af8fdc06
URL: http://cgit.haiku-os.org/haiku/commit/?id=054c81664abd
Author: looncraz <looncraz@xxxxxxxxxxxx>
Date: Sat Jan 9 22:08:42 2016 UTC
Committer: Jessica Hamilton <jessica.l.hamilton@xxxxxxxxx>
Commit-Date: Sat Jan 9 22:39:35 2016 UTC
Ticket: https://dev.haiku-os.org/ticket/12573
----------------------------------------------------------------------------
2 files changed, 2 insertions(+)
src/apps/mediaplayer/interface/PositionToolTip.cpp | 1 +
src/kits/interface/ToolTipManager.cpp | 1 +
----------------------------------------------------------------------------
diff --git a/src/apps/mediaplayer/interface/PositionToolTip.cpp
b/src/apps/mediaplayer/interface/PositionToolTip.cpp
index 667baae..698727b 100644
--- a/src/apps/mediaplayer/interface/PositionToolTip.cpp
+++ b/src/apps/mediaplayer/interface/PositionToolTip.cpp
@@ -30,6 +30,7 @@ public:
virtual void AttachedToWindow()
{
BStringView::AttachedToWindow();
+ AdoptParentColors();
Update(-1, -1);
}
diff --git a/src/kits/interface/ToolTipManager.cpp
b/src/kits/interface/ToolTipManager.cpp
index 7f4d8a5..ad0f802 100644
--- a/src/kits/interface/ToolTipManager.cpp
+++ b/src/kits/interface/ToolTipManager.cpp
@@ -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);