mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-27 15:35:27 +00:00
WX: HiDPI: AboutDolphin
This commit is contained in:
parent
107d4afb08
commit
42b6ea4c81
@ -20,8 +20,8 @@ AboutDolphin::AboutDolphin(wxWindow* parent, wxWindowID id, const wxString& titl
|
|||||||
const wxPoint& position, const wxSize& size, long style)
|
const wxPoint& position, const wxSize& size, long style)
|
||||||
: wxDialog(parent, id, title, position, size, style)
|
: wxDialog(parent, id, title, position, size, style)
|
||||||
{
|
{
|
||||||
wxGenericStaticBitmap* const sbDolphinLogo =
|
wxGenericStaticBitmap* const sbDolphinLogo = new wxGenericStaticBitmap(
|
||||||
new wxGenericStaticBitmap(this, wxID_ANY, WxUtils::LoadResourceBitmap("dolphin_logo"));
|
this, wxID_ANY, WxUtils::LoadScaledResourceBitmap("dolphin_logo", this));
|
||||||
|
|
||||||
const wxString DolphinText = _("Dolphin");
|
const wxString DolphinText = _("Dolphin");
|
||||||
const wxString RevisionText = scm_desc_str;
|
const wxString RevisionText = scm_desc_str;
|
||||||
@ -80,6 +80,12 @@ AboutDolphin::AboutDolphin(wxWindow* parent, wxWindowID id, const wxString& titl
|
|||||||
|
|
||||||
wxSizerFlags center_flag;
|
wxSizerFlags center_flag;
|
||||||
center_flag.Center();
|
center_flag.Center();
|
||||||
|
const int space5 = FromDIP(5);
|
||||||
|
const int space10 = FromDIP(10);
|
||||||
|
const int space15 = FromDIP(15);
|
||||||
|
const int space30 = FromDIP(30);
|
||||||
|
const int space40 = FromDIP(40);
|
||||||
|
const int space75 = FromDIP(75);
|
||||||
|
|
||||||
wxBoxSizer* const sCheckUpdates = new wxBoxSizer(wxHORIZONTAL);
|
wxBoxSizer* const sCheckUpdates = new wxBoxSizer(wxHORIZONTAL);
|
||||||
sCheckUpdates->Add(UpdateText, center_flag);
|
sCheckUpdates->Add(UpdateText, center_flag);
|
||||||
@ -94,30 +100,30 @@ AboutDolphin::AboutDolphin(wxWindow* parent, wxWindowID id, const wxString& titl
|
|||||||
|
|
||||||
wxBoxSizer* const sInfo = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer* const sInfo = new wxBoxSizer(wxVERTICAL);
|
||||||
sInfo->Add(Dolphin);
|
sInfo->Add(Dolphin);
|
||||||
sInfo->AddSpacer(5);
|
sInfo->AddSpacer(space5);
|
||||||
sInfo->Add(Revision);
|
sInfo->Add(Revision);
|
||||||
sInfo->AddSpacer(10);
|
sInfo->AddSpacer(space10);
|
||||||
sInfo->Add(Branch);
|
sInfo->Add(Branch);
|
||||||
sInfo->Add(sCheckUpdates);
|
sInfo->Add(sCheckUpdates);
|
||||||
sInfo->Add(Message);
|
sInfo->Add(Message);
|
||||||
sInfo->Add(sLinks);
|
sInfo->Add(sLinks);
|
||||||
|
|
||||||
wxBoxSizer* const sLogo = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer* const sLogo = new wxBoxSizer(wxVERTICAL);
|
||||||
sLogo->AddSpacer(75);
|
sLogo->AddSpacer(space75);
|
||||||
sLogo->Add(sbDolphinLogo);
|
sLogo->Add(sbDolphinLogo);
|
||||||
sLogo->AddSpacer(40);
|
sLogo->AddSpacer(space40);
|
||||||
|
|
||||||
wxBoxSizer* const sMainHor = new wxBoxSizer(wxHORIZONTAL);
|
wxBoxSizer* const sMainHor = new wxBoxSizer(wxHORIZONTAL);
|
||||||
sMainHor->AddSpacer(30);
|
sMainHor->AddSpacer(space30);
|
||||||
sMainHor->Add(sLogo);
|
sMainHor->Add(sLogo);
|
||||||
sMainHor->AddSpacer(30);
|
sMainHor->AddSpacer(space30);
|
||||||
sMainHor->Add(sInfo);
|
sMainHor->Add(sInfo);
|
||||||
sMainHor->AddSpacer(30);
|
sMainHor->AddSpacer(space30);
|
||||||
|
|
||||||
wxBoxSizer* const sFooter = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer* const sFooter = new wxBoxSizer(wxVERTICAL);
|
||||||
sFooter->AddSpacer(15);
|
sFooter->AddSpacer(space15);
|
||||||
sFooter->Add(Copyright, 0, wxALIGN_CENTER_HORIZONTAL);
|
sFooter->Add(Copyright, 0, wxALIGN_CENTER_HORIZONTAL);
|
||||||
sFooter->AddSpacer(5);
|
sFooter->AddSpacer(space5);
|
||||||
|
|
||||||
wxBoxSizer* const sMain = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer* const sMain = new wxBoxSizer(wxVERTICAL);
|
||||||
sMain->Add(sMainHor, 1, wxEXPAND);
|
sMain->Add(sMainHor, 1, wxEXPAND);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user