Commit 8eb76cd7 authored by Damien Fouilleul's avatar Damien Fouilleul

all: reworked gui layout of dialog boxes to get rid of the dark gray...

all: reworked gui layout of dialog boxes to get rid of the dark gray background colour (I hope that wasn't intentional :)
parent 1b73c740
......@@ -63,9 +63,14 @@ FileInfo::FileInfo( intf_thread_t *_p_intf, wxWindow *p_parent ):
SetIcon( *p_intf->p_sys->p_icon );
SetAutoLayout( TRUE );
/* Create a panel to put everything in */
wxPanel *panel = new wxPanel( this, -1 );
panel->SetAutoLayout( TRUE );
wxBoxSizer *main_sizer = new wxBoxSizer( wxVERTICAL );
panel_sizer = new wxBoxSizer( wxVERTICAL );
wxNotebook *notebook = new wxNotebook( this, -1 );
wxNotebook *notebook = new wxNotebook( panel, -1 );
#if (!wxCHECK_VERSION(2,5,2))
wxNotebookSizer *notebook_sizer = new wxNotebookSizer( notebook );
#endif
......@@ -85,11 +90,14 @@ FileInfo::FileInfo( intf_thread_t *_p_intf, wxWindow *p_parent ):
panel_sizer->Add( notebook, 1, wxEXPAND | wxALL, 5 );
#endif
panel_sizer->Add( new wxButton( this, wxID_CLOSE ) ,
panel_sizer->Add( new wxButton( panel, wxID_CLOSE ) ,
0, wxALL|wxALIGN_RIGHT, 5 );
panel_sizer->Layout();
SetSizerAndFit( panel_sizer );
panel->SetSizerAndFit( panel_sizer );
main_sizer->Add( panel, 1, wxGROW, 0 );
main_sizer->Layout();
SetSizerAndFit( main_sizer );
if( p_playlist )
{
......
......@@ -528,7 +528,11 @@ VLMFrame::VLMFrame( intf_thread_t *_p_intf, wxWindow *_p_parent ) :
wxBoxSizer *main_sizer = new wxBoxSizer( wxHORIZONTAL );
vlm_panel = new VLMPanel( _p_intf, this );
#if defined(WIN32)
main_sizer->Add( vlm_panel, 1, wxGROW, 0 );
#else
main_sizer->Add( vlm_panel, 1, wxEXPAND | wxALL, 5 );
#endif
main_sizer->Layout();
SetSizerAndFit( main_sizer );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment