mirror of
https://github.com/palera1n/palera1n.git
synced 2026-11-21 04:43:41 +01:00
fix(gui): use wxSP_WRAP on linux
This commit is contained in:
1 parent
1cd33432d9
commit
4cec4b0d4a
10 files changed
+43
-11
No files matched your search
+5
-1
@@ -75,7 +75,11 @@ DfuPanel::DfuPanel(MainFrame* frame, wxWindow* parent)
|
||||
"Time to put the device into DFU mode.",
|
||||
wxDefaultPosition,
|
||||
wxDefaultSize,
|
||||
wxST_WRAP
|
||||
#ifdef __linux__
|
||||
wxSP_WRAP
|
||||
#else
|
||||
wxST_WRAP
|
||||
#endif
|
||||
);
|
||||
left->Add(m_headerText, 0, wxTOP | wxLEFT | wxRIGHT, 10);
|
||||
|
||||
|
||||
@@ -78,7 +78,11 @@ ExploitPanel::ExploitPanel(MainFrame* frame, wxWindow* parent)
|
||||
left->Add(new wxStaticText(this, wxID_ANY, "Installing jailbreak, this will take a moment. Do not disconnect the device until finished.",
|
||||
wxDefaultPosition,
|
||||
wxDefaultSize,
|
||||
wxST_WRAP
|
||||
#ifdef __linux__
|
||||
wxSP_WRAP
|
||||
#else
|
||||
wxST_WRAP
|
||||
#endif
|
||||
), 0, wxALL, 10);
|
||||
left->Add(m_statusText, 0, wxALL, 10);
|
||||
left->Add(m_progressBar, 0, wxALL | wxEXPAND, 20);
|
||||
|
||||
+10
-2
@@ -81,7 +81,11 @@ MainPanel::MainPanel(MainFrame* frame, wxWindow* parent)
|
||||
"Cameron Katri, Keto et al.)",
|
||||
wxDefaultPosition,
|
||||
wxDefaultSize,
|
||||
wxST_WRAP
|
||||
#ifdef __linux__
|
||||
wxSP_WRAP
|
||||
#else
|
||||
wxST_WRAP
|
||||
#endif
|
||||
);
|
||||
|
||||
auto* twitterLabel = new wxStaticText(this, wxID_ANY, "Twitter:");
|
||||
@@ -167,7 +171,11 @@ MainPanel::MainPanel(MainFrame* frame, wxWindow* parent)
|
||||
"NOTE: Please ensure you've made a backup of your device before proceeding.\n",
|
||||
wxDefaultPosition,
|
||||
wxDefaultSize,
|
||||
wxST_WRAP
|
||||
#ifdef __linux__
|
||||
wxSP_WRAP
|
||||
#else
|
||||
wxST_WRAP
|
||||
#endif
|
||||
);
|
||||
|
||||
wxFont noteFont = warningNote->GetFont();
|
||||
|
||||
@@ -88,7 +88,11 @@ RecoveryPanel::RecoveryPanel(MainFrame* frame, wxWindow* parent)
|
||||
"The device needs to be put into DFU mode to apply the jailbreak. This is a manual process and we will guide you through it.",
|
||||
wxDefaultPosition,
|
||||
wxDefaultSize,
|
||||
wxST_WRAP
|
||||
#ifdef __linux__
|
||||
wxSP_WRAP
|
||||
#else
|
||||
wxST_WRAP
|
||||
#endif
|
||||
), 0, wxALL, 10);
|
||||
left->Add(m_statusText, 0, wxALL, 10);
|
||||
|
||||
|
||||
@@ -58,7 +58,14 @@ auto createTitle = [](wxWindow* parent, const wxString& text)
|
||||
|
||||
auto createDescription = [](wxWindow* parent, const wxString& text)
|
||||
{
|
||||
auto* description = new wxStaticText(parent, wxID_ANY, text, wxDefaultPosition, wxDefaultSize, wxST_WRAP);
|
||||
auto* description = new wxStaticText(
|
||||
parent, wxID_ANY, text, wxDefaultPosition, wxDefaultSize,
|
||||
#ifdef __linux__
|
||||
wxSP_WRAP
|
||||
#else
|
||||
wxST_WRAP
|
||||
#endif
|
||||
);
|
||||
|
||||
wxFont font = description->GetFont();
|
||||
font.SetPointSize(font.GetPointSize() - 2);
|
||||
@@ -85,7 +92,11 @@ SettingsPanel::SettingsPanel(MainFrame* frame, wxWindow* parent)
|
||||
"You may set the following options. If you don't know what they mean you'll probably have no reason to set them.",
|
||||
wxDefaultPosition,
|
||||
wxDefaultSize,
|
||||
wxST_WRAP
|
||||
#ifdef __linux__
|
||||
wxSP_WRAP
|
||||
#else
|
||||
wxST_WRAP
|
||||
#endif
|
||||
), 0, wxTOP | wxLEFT | wxRIGHT, 10);
|
||||
|
||||
auto* notebook = new wxNotebook(this, wxID_ANY);
|
||||
|
||||
Reference in new issue
Block a user