mirror of https://github.com/odrling/Aegisub
Move AddSeparator to VisualTool::SetToolbar
Co-authored-by: wangqr <wangqr@wangqr.tk>
This commit is contained in:
parent
c218db6f34
commit
1246534b7b
|
@ -415,7 +415,6 @@ void VideoDisplay::SetTool(std::unique_ptr<VisualToolBase> new_tool) {
|
|||
// Hide the tool bar first to eliminate unecessary size changes
|
||||
toolBar->Show(false);
|
||||
toolBar->ClearTools();
|
||||
toolBar->AddSeparator();
|
||||
tool->SetToolbar(toolBar);
|
||||
|
||||
// Update size as the new typesetting tool may have changed the subtoolbar size
|
||||
|
|
|
@ -54,6 +54,7 @@ VisualToolDrag::VisualToolDrag(VideoDisplay *parent, agi::Context *context)
|
|||
|
||||
void VisualToolDrag::SetToolbar(wxToolBar *tb) {
|
||||
toolbar = tb;
|
||||
toolbar->AddSeparator();
|
||||
toolbar->AddTool(-1, _("Toggle between \\move and \\pos"), ICON(visual_move_conv_move));
|
||||
toolbar->Realize();
|
||||
toolbar->Show(true);
|
||||
|
|
|
@ -52,6 +52,8 @@ VisualToolVectorClip::VisualToolVectorClip(VideoDisplay *parent, agi::Context *c
|
|||
void VisualToolVectorClip::SetToolbar(wxToolBar *toolBar) {
|
||||
this->toolBar = toolBar;
|
||||
|
||||
toolBar->AddSeparator();
|
||||
|
||||
int icon_size = OPT_GET("App/Toolbar Icon Size")->GetInt();
|
||||
|
||||
#define ICON(name) icon_size == 16 ? GETIMAGE(name ## _16) : GETIMAGE(name ## _24)
|
||||
|
|
Loading…
Reference in New Issue