forked from mia/Aegisub
Change some text box size to make it looks better on HiDPI
This commit is contained in:
parent
7be2325629
commit
77da2436c5
2 changed files with 5 additions and 5 deletions
|
@ -108,8 +108,8 @@ DialogProperties::DialogProperties(agi::Context *c)
|
||||||
TopSizer->Add(TopSizerGrid,1,wxALL | wxEXPAND,0);
|
TopSizer->Add(TopSizerGrid,1,wxALL | wxEXPAND,0);
|
||||||
|
|
||||||
// Resolution box
|
// Resolution box
|
||||||
ResX = new wxTextCtrl(&d,-1,"",wxDefaultPosition,wxSize(50,20),0,IntValidator(c->ass->GetScriptInfoAsInt("PlayResX")));
|
ResX = new wxTextCtrl(&d,-1,"",wxDefaultPosition,wxSize(50, -1),0,IntValidator(c->ass->GetScriptInfoAsInt("PlayResX")));
|
||||||
ResY = new wxTextCtrl(&d,-1,"",wxDefaultPosition,wxSize(50,20),0,IntValidator(c->ass->GetScriptInfoAsInt("PlayResY")));
|
ResY = new wxTextCtrl(&d,-1,"",wxDefaultPosition,wxSize(50, -1),0,IntValidator(c->ass->GetScriptInfoAsInt("PlayResY")));
|
||||||
|
|
||||||
wxButton *FromVideo = new wxButton(&d,-1,_("From &video"));
|
wxButton *FromVideo = new wxButton(&d,-1,_("From &video"));
|
||||||
if (!c->project->VideoProvider())
|
if (!c->project->VideoProvider())
|
||||||
|
@ -173,7 +173,7 @@ DialogProperties::DialogProperties(agi::Context *c)
|
||||||
}
|
}
|
||||||
|
|
||||||
void DialogProperties::AddProperty(wxSizer *sizer, wxString const& label, std::string const& property) {
|
void DialogProperties::AddProperty(wxSizer *sizer, wxString const& label, std::string const& property) {
|
||||||
wxTextCtrl *ctrl = new wxTextCtrl(&d, -1, to_wx(c->ass->GetScriptInfo(property)), wxDefaultPosition, wxSize(200, 20));
|
wxTextCtrl *ctrl = new wxTextCtrl(&d, -1, to_wx(c->ass->GetScriptInfo(property)), wxDefaultPosition, wxSize(200, -1));
|
||||||
sizer->Add(new wxStaticText(&d, -1, label), wxSizerFlags().Center().Left());
|
sizer->Add(new wxStaticText(&d, -1, label), wxSizerFlags().Center().Left());
|
||||||
sizer->Add(ctrl, wxSizerFlags(1).Expand());
|
sizer->Add(ctrl, wxSizerFlags(1).Expand());
|
||||||
properties.push_back({property, ctrl});
|
properties.push_back({property, ctrl});
|
||||||
|
|
|
@ -58,10 +58,10 @@ VideoBox::VideoBox(wxWindow *parent, bool isDetached, agi::Context *context)
|
||||||
|
|
||||||
auto mainToolbar = toolbar::GetToolbar(this, "video", context, "Video", false);
|
auto mainToolbar = toolbar::GetToolbar(this, "video", context, "Video", false);
|
||||||
|
|
||||||
VideoPosition = new wxTextCtrl(this, -1, "", wxDefaultPosition, wxSize(110, 20), wxTE_READONLY);
|
VideoPosition = new wxTextCtrl(this, -1, "", wxDefaultPosition, wxSize(110, -1), wxTE_READONLY);
|
||||||
VideoPosition->SetToolTip(_("Current frame time and number"));
|
VideoPosition->SetToolTip(_("Current frame time and number"));
|
||||||
|
|
||||||
VideoSubsPos = new wxTextCtrl(this, -1, "", wxDefaultPosition, wxSize(110, 20), wxTE_READONLY);
|
VideoSubsPos = new wxTextCtrl(this, -1, "", wxDefaultPosition, wxSize(110, -1), wxTE_READONLY);
|
||||||
VideoSubsPos->SetToolTip(_("Time of this frame relative to start and end of current subs"));
|
VideoSubsPos->SetToolTip(_("Time of this frame relative to start and end of current subs"));
|
||||||
|
|
||||||
wxArrayString choices;
|
wxArrayString choices;
|
||||||
|
|
Loading…
Reference in a new issue