VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Chew <79120643+kthchew@users.noreply.github.com>2022-08-21 11:58:08 -0400
committerGitHub <noreply@github.com>2022-08-21 17:58:08 +0200
commita23d4392fb9b570edd1c0eac9c267a50a6e2dfd7 (patch)
treebb0b008a9017571b53e6a7842f708e861356f8fb
parent53b4019d1f2c69cd1b4ee528c31a78a3a5a0e817 (diff)
downloadVeraCrypt-a23d4392fb9b570edd1c0eac9c267a50a6e2dfd7.tar.gz
VeraCrypt-a23d4392fb9b570edd1c0eac9c267a50a6e2dfd7.zip
Fix incorrect text color in dark mode (#920)
-rw-r--r--src/Main/Forms/VolumePasswordPanel.cpp4
-rw-r--r--src/Main/Forms/VolumePimWizardPage.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Main/Forms/VolumePasswordPanel.cpp b/src/Main/Forms/VolumePasswordPanel.cpp
index bb1f0c78..3525abf5 100644
--- a/src/Main/Forms/VolumePasswordPanel.cpp
+++ b/src/Main/Forms/VolumePasswordPanel.cpp
@@ -471,11 +471,11 @@ namespace VeraCrypt
VolumePimHelpStaticText->SetForegroundColour(*wxRED);
VolumePimHelpStaticText->SetLabel(LangString["PIM_CHANGE_WARNING"]);
guiUpdated = true;
}
- if (!pimChanged && VolumePimHelpStaticText->GetForegroundColour() != *wxBLACK)
+ if (!pimChanged && VolumePimHelpStaticText->GetForegroundColour() != wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT))
{
- VolumePimHelpStaticText->SetForegroundColour(*wxBLACK);
+ VolumePimHelpStaticText->SetForegroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT));
VolumePimHelpStaticText->SetLabel(LangString["IDC_PIM_HELP"]);
guiUpdated = true;
}
diff --git a/src/Main/Forms/VolumePimWizardPage.cpp b/src/Main/Forms/VolumePimWizardPage.cpp
index 8ce23043..7ef8a3a0 100644
--- a/src/Main/Forms/VolumePimWizardPage.cpp
+++ b/src/Main/Forms/VolumePimWizardPage.cpp
@@ -81,9 +81,9 @@ namespace VeraCrypt
VolumePimHelpStaticText->SetLabel(LangString["PIM_CHANGE_WARNING"]);
}
else
{
- VolumePimHelpStaticText->SetForegroundColour(*wxBLACK);
+ VolumePimHelpStaticText->SetForegroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT));
VolumePimHelpStaticText->SetLabel(LangString["IDC_PIM_HELP"]);
}
Fit();
Layout();