From 08e0c2373c58c6704197087e04a4bb4335f5e31b Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Wed, 3 Jun 2009 23:18:40 +0000 Subject: [PATCH] Make the visual typesetting toolbar a bit prettier on Vista and probably also Win7, by removing themed background that didn't blend in with the surroundings. Originally committed to SVN as r3010. --- aegisub/src/video_box.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aegisub/src/video_box.cpp b/aegisub/src/video_box.cpp index 72b017f99..f8f65ffdf 100644 --- a/aegisub/src/video_box.cpp +++ b/aegisub/src/video_box.cpp @@ -110,7 +110,7 @@ VideoBox::VideoBox(wxWindow *parent, bool isDetached) videoSlider->Display = videoDisplay; // Typesetting buttons - visualToolBar = new wxToolBar(videoPage,-1,wxDefaultPosition,wxDefaultSize,wxTB_VERTICAL | wxTB_FLAT); + visualToolBar = new wxToolBar(videoPage,-1,wxDefaultPosition,wxDefaultSize,wxTB_VERTICAL|wxTB_FLAT|wxTB_NODIVIDER); visualToolBar->AddTool(Video_Mode_Standard,_("Standard"),wxBITMAP(visual_standard),_("Standard mode, double click sets position."),wxITEM_RADIO); visualToolBar->AddTool(Video_Mode_Drag,_("Drag"),wxBITMAP(visual_move),_("Drag subtitles."),wxITEM_RADIO); visualToolBar->AddTool(Video_Mode_Rotate_Z,_("Rotate Z"),wxBITMAP(visual_rotatez),_("Rotate subtitles on their Z axis."),wxITEM_RADIO); @@ -123,6 +123,9 @@ VideoBox::VideoBox(wxWindow *parent, bool isDetached) visualToolBar->ToggleTool(Video_Mode_Realtime,Options.AsBool(_T("Video Visual Realtime"))); visualToolBar->AddTool(Video_Mode_Help,_("Help"),wxBITMAP(visual_help),_("Open the manual page for Visual Typesetting.")); visualToolBar->Realize(); + // Avoid ugly themed background on Vista and possibly also Win7 + visualToolBar->SetBackgroundStyle(wxBG_STYLE_COLOUR); + visualToolBar->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE)); // Top sizer // Detached and attached video needs different flags, see bugs #742 and #853