From 66c2ce6c74285f87d86abff1e551a0a390fd7015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sun, 17 Jul 2016 22:48:26 +0200 Subject: [PATCH] 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. --- Source/Core/DolphinWX/AboutDolphin.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Source/Core/DolphinWX/AboutDolphin.cpp b/Source/Core/DolphinWX/AboutDolphin.cpp index 2cd29278a4..ea3a8a10e8 100644 --- a/Source/Core/DolphinWX/AboutDolphin.cpp +++ b/Source/Core/DolphinWX/AboutDolphin.cpp @@ -82,16 +82,19 @@ AboutDolphin::AboutDolphin(wxWindow* parent, wxWindowID id, const wxString& titl Copyright->SetFont(CopyrightFont); Copyright->SetFocus(); + wxSizerFlags center_flag; + center_flag.Center(); + wxBoxSizer* const sCheckUpdates = new wxBoxSizer(wxHORIZONTAL); - sCheckUpdates->Add(UpdateText); - sCheckUpdates->Add(Download); + sCheckUpdates->Add(UpdateText, center_flag); + sCheckUpdates->Add(Download, center_flag); wxBoxSizer* const sLinks = new wxBoxSizer(wxHORIZONTAL); - sLinks->Add(License); - sLinks->Add(FirstSpacer); - sLinks->Add(Authors); - sLinks->Add(SecondSpacer); - sLinks->Add(Support); + sLinks->Add(License, center_flag); + sLinks->Add(FirstSpacer, center_flag); + sLinks->Add(Authors, center_flag); + sLinks->Add(SecondSpacer, center_flag); + sLinks->Add(Support, center_flag); wxBoxSizer* const sInfo = new wxBoxSizer(wxVERTICAL); sInfo->Add(Dolphin);