DolphinWX: Center the links in the About dialog
This makes the links explicitly vertically centered in the DolphinWX About dialog. It is not needed on Windows, because the links have the same height as text (and look just like text links). However, this is required on other platforms or the links would look misaligned.
This commit is contained in:
parent
92594e08d4
commit
66c2ce6c74
|
@ -82,16 +82,19 @@ AboutDolphin::AboutDolphin(wxWindow* parent, wxWindowID id, const wxString& titl
|
||||||
Copyright->SetFont(CopyrightFont);
|
Copyright->SetFont(CopyrightFont);
|
||||||
Copyright->SetFocus();
|
Copyright->SetFocus();
|
||||||
|
|
||||||
|
wxSizerFlags center_flag;
|
||||||
|
center_flag.Center();
|
||||||
|
|
||||||
wxBoxSizer* const sCheckUpdates = new wxBoxSizer(wxHORIZONTAL);
|
wxBoxSizer* const sCheckUpdates = new wxBoxSizer(wxHORIZONTAL);
|
||||||
sCheckUpdates->Add(UpdateText);
|
sCheckUpdates->Add(UpdateText, center_flag);
|
||||||
sCheckUpdates->Add(Download);
|
sCheckUpdates->Add(Download, center_flag);
|
||||||
|
|
||||||
wxBoxSizer* const sLinks = new wxBoxSizer(wxHORIZONTAL);
|
wxBoxSizer* const sLinks = new wxBoxSizer(wxHORIZONTAL);
|
||||||
sLinks->Add(License);
|
sLinks->Add(License, center_flag);
|
||||||
sLinks->Add(FirstSpacer);
|
sLinks->Add(FirstSpacer, center_flag);
|
||||||
sLinks->Add(Authors);
|
sLinks->Add(Authors, center_flag);
|
||||||
sLinks->Add(SecondSpacer);
|
sLinks->Add(SecondSpacer, center_flag);
|
||||||
sLinks->Add(Support);
|
sLinks->Add(Support, center_flag);
|
||||||
|
|
||||||
wxBoxSizer* const sInfo = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer* const sInfo = new wxBoxSizer(wxVERTICAL);
|
||||||
sInfo->Add(Dolphin);
|
sInfo->Add(Dolphin);
|
||||||
|
|
Loading…
Reference in New Issue