forked from mia/Aegisub
Preferences: give the font and path textboxes a minimum width of 160 px
The default minimum width was too small. Originally committed to SVN as r6796.
This commit is contained in:
parent
c868928817
commit
9f6d117875
1 changed files with 2 additions and 0 deletions
|
@ -223,6 +223,7 @@ void OptionPage::OptionBrowse(wxFlexGridSizer *flex, const wxString &name, const
|
||||||
throw PreferenceIncorrectType("Option must be agi::OptionValue::Type_String for BrowseButton.");
|
throw PreferenceIncorrectType("Option must be agi::OptionValue::Type_String for BrowseButton.");
|
||||||
|
|
||||||
wxTextCtrl *text = new wxTextCtrl(this, -1 , opt->GetString());
|
wxTextCtrl *text = new wxTextCtrl(this, -1 , opt->GetString());
|
||||||
|
text->SetMinSize(wxSize(160, -1));
|
||||||
text->Bind(wxEVT_COMMAND_TEXT_UPDATED, StringUpdater(opt_name, parent));
|
text->Bind(wxEVT_COMMAND_TEXT_UPDATED, StringUpdater(opt_name, parent));
|
||||||
|
|
||||||
wxButton *browse = new wxButton(this, -1, _("Browse..."));
|
wxButton *browse = new wxButton(this, -1, _("Browse..."));
|
||||||
|
@ -254,6 +255,7 @@ void OptionPage::OptionFont(wxSizer *sizer, std::string opt_prefix) {
|
||||||
parent->AddChangeableOption(size_opt->GetName());
|
parent->AddChangeableOption(size_opt->GetName());
|
||||||
|
|
||||||
wxTextCtrl *font_name = new wxTextCtrl(this, -1, face_opt->GetString());
|
wxTextCtrl *font_name = new wxTextCtrl(this, -1, face_opt->GetString());
|
||||||
|
font_name->SetMinSize(wxSize(160, -1));
|
||||||
font_name->Bind(wxEVT_COMMAND_TEXT_UPDATED, StringUpdater(face_opt->GetName().c_str(), parent));
|
font_name->Bind(wxEVT_COMMAND_TEXT_UPDATED, StringUpdater(face_opt->GetName().c_str(), parent));
|
||||||
|
|
||||||
wxSpinCtrl *font_size = new wxSpinCtrl(this, -1, "", wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 3, 42, size_opt->GetInt());
|
wxSpinCtrl *font_size = new wxSpinCtrl(this, -1, "", wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 3, 42, size_opt->GetInt());
|
||||||
|
|
Loading…
Reference in a new issue