Fix the UI for the infobar
* Remove the animations on show/hide * Give the button a small right border
This commit is contained in:
parent
2043c8da8f
commit
a49fde5ce0
|
@ -41,6 +41,9 @@ WX_INFOBAR::WX_INFOBAR( wxWindow* aParent, wxAuiManager *aMgr, wxWindowID aWinid
|
||||||
{
|
{
|
||||||
m_showTimer = new wxTimer( this, ID_CLOSE_INFOBAR );
|
m_showTimer = new wxTimer( this, ID_CLOSE_INFOBAR );
|
||||||
|
|
||||||
|
// Don't use any effects since they leave the sizer area visible under the infobar
|
||||||
|
SetShowHideEffects( wxSHOW_EFFECT_NONE, wxSHOW_EFFECT_NONE );
|
||||||
|
|
||||||
// On GTK, the infobar seems to start too small, so increase its height
|
// On GTK, the infobar seems to start too small, so increase its height
|
||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK__
|
||||||
int sx, sy;
|
int sx, sy;
|
||||||
|
@ -123,7 +126,7 @@ void WX_INFOBAR::AddButton( wxButton* aButton )
|
||||||
// smaller buttons look better in the (narrow) info bar under OS X
|
// smaller buttons look better in the (narrow) info bar under OS X
|
||||||
aButton->SetWindowVariant( wxWINDOW_VARIANT_SMALL );
|
aButton->SetWindowVariant( wxWINDOW_VARIANT_SMALL );
|
||||||
#endif // __WXMAC__
|
#endif // __WXMAC__
|
||||||
sizer->Add( aButton, wxSizerFlags().Centre() );
|
sizer->Add( aButton, wxSizerFlags().Centre().Border( wxRIGHT ) );
|
||||||
|
|
||||||
if( IsShown() )
|
if( IsShown() )
|
||||||
sizer->Layout();
|
sizer->Layout();
|
||||||
|
|
Loading…
Reference in New Issue