mirror of
https://github.com/palera1n/palera1n.git
synced 2026-11-24 06:34:41 +01:00
fix: ui inconsistencies with linux
This commit is contained in:
1 parent
630a6124c9
commit
5a35164369
3 files changed
+20
-9
No files matched your search
@@ -2,6 +2,7 @@
|
|||||||
#define STATE_H
|
#define STATE_H
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
enum class DeviceMode
|
enum class DeviceMode
|
||||||
{
|
{
|
||||||
|
|||||||
+12
-6
@@ -28,12 +28,6 @@
|
|||||||
|
|
||||||
#include <libirecovery.h>
|
#include <libirecovery.h>
|
||||||
|
|
||||||
static const wxColour kActive =
|
|
||||||
wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT);
|
|
||||||
|
|
||||||
static const wxColour kInactive =
|
|
||||||
wxSystemSettings::GetColour(wxSYS_COLOUR_GRAYTEXT);
|
|
||||||
|
|
||||||
DfuPanel::DfuPanel(MainFrame* frame, wxWindow* parent)
|
DfuPanel::DfuPanel(MainFrame* frame, wxWindow* parent)
|
||||||
: DevicePanel(frame, parent)
|
: DevicePanel(frame, parent)
|
||||||
{
|
{
|
||||||
@@ -135,6 +129,12 @@ void DfuPanel::SetDeviceState(const DeviceState& state)
|
|||||||
|
|
||||||
void DfuPanel::LoadDevice(const std::string& productType)
|
void DfuPanel::LoadDevice(const std::string& productType)
|
||||||
{
|
{
|
||||||
|
const wxColour kActive =
|
||||||
|
wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT);
|
||||||
|
|
||||||
|
const wxColour kInactive =
|
||||||
|
wxSystemSettings::GetColour(wxSYS_COLOUR_GRAYTEXT);
|
||||||
|
|
||||||
m_sequence = ParseSequence(productType);
|
m_sequence = ParseSequence(productType);
|
||||||
m_index = 0;
|
m_index = 0;
|
||||||
|
|
||||||
@@ -284,6 +284,12 @@ void DfuPanel::RunStep()
|
|||||||
if (m_sequence.steps.empty())
|
if (m_sequence.steps.empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
const wxColour kActive =
|
||||||
|
wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT);
|
||||||
|
|
||||||
|
const wxColour kInactive =
|
||||||
|
wxSystemSettings::GetColour(wxSYS_COLOUR_GRAYTEXT);
|
||||||
|
|
||||||
if (m_index >= m_sequence.steps.size())
|
if (m_index >= m_sequence.steps.size())
|
||||||
{
|
{
|
||||||
for (auto* lbl : m_stepLabels)
|
for (auto* lbl : m_stepLabels)
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ MainPanel::MainPanel(MainFrame* frame, wxWindow* parent)
|
|||||||
"Thanks to: itsnebulalol, llsc12, lrdsnow, nikias (libimobiledevice), Checkra1n\n"
|
"Thanks to: itsnebulalol, llsc12, lrdsnow, nikias (libimobiledevice), Checkra1n\n"
|
||||||
"(Siguza, axi0mx, littlelailo et al.), Procursus (Hayden Seay, Cameron Katri,\n"
|
"(Siguza, axi0mx, littlelailo et al.), Procursus (Hayden Seay, Cameron Katri,\n"
|
||||||
"Keto et al.)\n\n"
|
"Keto et al.)\n\n"
|
||||||
"With 💖 from C (claration)");
|
"With <3 from C (claration)");
|
||||||
|
|
||||||
root->Add(credtext, 0, wxLEFT | wxRIGHT, 10);
|
root->Add(credtext, 0, wxLEFT | wxRIGHT, 10);
|
||||||
|
|
||||||
@@ -70,7 +70,11 @@ MainPanel::MainPanel(MainFrame* frame, wxWindow* parent)
|
|||||||
"wrong. Use at your own risk.");
|
"wrong. Use at your own risk.");
|
||||||
|
|
||||||
wxFont notefont = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
|
wxFont notefont = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
|
||||||
|
#ifdef __APPLE__
|
||||||
notefont.SetPointSize(12);
|
notefont.SetPointSize(12);
|
||||||
|
#else
|
||||||
|
notefont.SetPointSize(9);
|
||||||
|
#endif
|
||||||
notefont.SetStyle(wxFONTSTYLE_ITALIC);
|
notefont.SetStyle(wxFONTSTYLE_ITALIC);
|
||||||
notetext->SetFont(notefont);
|
notetext->SetFont(notefont);
|
||||||
|
|
||||||
@@ -101,8 +105,8 @@ MainPanel::MainPanel(MainFrame* frame, wxWindow* parent)
|
|||||||
|
|
||||||
auto* bottomRow = new wxBoxSizer(wxHORIZONTAL);
|
auto* bottomRow = new wxBoxSizer(wxHORIZONTAL);
|
||||||
bottomRow->AddStretchSpacer();
|
bottomRow->AddStretchSpacer();
|
||||||
bottomRow->Add(btn, 0, wxALL, 10);
|
bottomRow->Add(btn, 0, wxRIGHT | wxBOTTOM, 10);
|
||||||
bottomRow->Add(m_startButton, 0, wxALL, 10);
|
bottomRow->Add(m_startButton, 0, wxRIGHT | wxLEFT | wxBOTTOM, 10);
|
||||||
|
|
||||||
root->Add(bottomRow, 0, wxEXPAND);
|
root->Add(bottomRow, 0, wxEXPAND);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user