From c7140f279b8fd7c6b6506d4ea2a9b0778e57dc04 Mon Sep 17 00:00:00 2001 From: Ashfaaq18 Date: Thu, 18 Nov 2021 15:08:36 +0530 Subject: [PATCH] Fix disabling alnative icons on tab in dark mode issue Fix #10775, close #10798 --- PowerEditor/src/WinControls/Preference/preferenceDlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp b/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp index 32064bd6d..e7fde9625 100644 --- a/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp +++ b/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp @@ -580,7 +580,7 @@ INT_PTR CALLBACK GeneralSubDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM) NppGUI& nppGUI = nppParam.getNppGUI(); nppGUI._tabStatus ^= TAB_ALTICONS; bool isChecked = (BST_CHECKED == ::SendDlgItemMessage(_hSelf, IDC_CHECK_TAB_ALTICONS, BM_GETCHECK, 0, 0)); - ::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_CHANGETABBAEICONS, 0, isChecked ? 1 : 0); + ::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_CHANGETABBAEICONS, 0, isChecked ? 1 : (nppGUI._darkmode._isEnabled ? 2 : 0)); return TRUE; }