Skip to content

Commit

Permalink
Windows GUI: Remove previous dark mode workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
cjee21 committed May 31, 2024
1 parent f109d3c commit d5c1dc4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Source/GUI/VCL/GUI_Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ void __fastcall TMainF::FormShow(TObject *Sender)
//Load GUI preferences
GUI_Configure();

//if(I->Count_Get()==0){
//File(s) in command line
#ifdef UNICODE
if (IsWin9X())
Expand Down Expand Up @@ -2051,7 +2050,6 @@ void __fastcall TMainF::Footer_ButtonClick(TObject *Sender)
//---------------------------------------------------------------------------
void __fastcall TMainF::M_Options_DarkmodeClick(TObject* Sender)
{
M_View_EasyClick(NULL); // This is for avoiding a popup "Cannot focus a disabled or invisible window when another view is selected. TODO: better handle of this issue
if (M_Options_Darkmode->Checked) {
TStyleManager::TrySetStyle(LIGHT_MODE_STYLE, false);
M_Options_Darkmode->Checked = false;
Expand All @@ -2066,8 +2064,7 @@ void __fastcall TMainF::ApplicationEvents1OnSettingChange(
TObject* Sender, int Flag, const UnicodeString Section, int &Result)
{
if (Section == "ImmersiveColorSet") {
M_View_EasyClick(NULL); // This is for avoiding a popup "Cannot focus a disabled or invisible window when another view is selected. TODO: better handle of this issue
if (WindowsDarkModeEnabled()) {
if (WindowsDarkModeEnabled()) {
TStyleManager::TrySetStyle(DARK_MODE_STYLE, false);
M_Options_Darkmode->Checked = true;
} else {
Expand Down

0 comments on commit d5c1dc4

Please sign in to comment.