mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-23 10:39:48 +02: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
+12
-6
@@ -28,12 +28,6 @@
|
||||
|
||||
#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)
|
||||
: DevicePanel(frame, parent)
|
||||
{
|
||||
@@ -135,6 +129,12 @@ void DfuPanel::SetDeviceState(const DeviceState& state)
|
||||
|
||||
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_index = 0;
|
||||
|
||||
@@ -284,6 +284,12 @@ void DfuPanel::RunStep()
|
||||
if (m_sequence.steps.empty())
|
||||
return;
|
||||
|
||||
const wxColour kActive =
|
||||
wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT);
|
||||
|
||||
const wxColour kInactive =
|
||||
wxSystemSettings::GetColour(wxSYS_COLOUR_GRAYTEXT);
|
||||
|
||||
if (m_index >= m_sequence.steps.size())
|
||||
{
|
||||
for (auto* lbl : m_stepLabels)
|
||||
|
||||
Reference in new issue
Block a user