mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 07:43:54 +02:00
Better tooltip for ASlider
This fixes the problem on GTK where the text was unreadable when using a "dark" theme. And fixes the double display of the real tooltip and the tip panel being displayed at the same time on GTK and OSX. It seems that the "disabling/reenabling" of tooltips doesn't take affect right away anymore...maybe it never did.
This commit is contained in:
@@ -62,6 +62,7 @@ wxPen AColor::labelSurroundPen;
|
||||
wxPen AColor::trackFocusPens[3];
|
||||
wxPen AColor::snapGuidePen;
|
||||
|
||||
wxPen AColor::tooltipPen;
|
||||
wxBrush AColor::tooltipBrush;
|
||||
|
||||
// The spare pen and brush possibly help us cut down on the
|
||||
@@ -423,6 +424,7 @@ void AColor::Init()
|
||||
theTheme.SetPenColour( playRegionPen[1], clrRulerPlaybackPen);
|
||||
|
||||
//Determine tooltip color
|
||||
tooltipPen.SetColour( wxSystemSettingsNative::GetColour(wxSYS_COLOUR_INFOTEXT) );
|
||||
tooltipBrush.SetColour( wxSystemSettingsNative::GetColour(wxSYS_COLOUR_INFOBK) );
|
||||
|
||||
// A tiny gradient of yellow surrounding the current focused track
|
||||
|
||||
Reference in New Issue
Block a user