mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Fix incorrect text color in dark mode (#920)
This commit is contained in:
@@ -472,9 +472,9 @@ namespace VeraCrypt
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace VeraCrypt
|
||||
}
|
||||
else
|
||||
{
|
||||
VolumePimHelpStaticText->SetForegroundColour(*wxBLACK);
|
||||
VolumePimHelpStaticText->SetForegroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT));
|
||||
VolumePimHelpStaticText->SetLabel(LangString["IDC_PIM_HELP"]);
|
||||
}
|
||||
Fit();
|
||||
|
||||
Reference in New Issue
Block a user