@@ -8800,51 +8800,6 @@ void MultiReplace::showStatusMessage(const std::wstring& messageText, MessageSta
8800
8800
}
8801
8801
}
8802
8802
8803
- /*
8804
- void MultiReplace::updateThemeAndColors() {
8805
- // Check if Notepad++ is currently in dark mode
8806
- BOOL isDarkMode = (SendMessage(nppData._nppHandle, NPPM_ISDARKMODEENABLED, 0, 0) != 0);
8807
-
8808
- // Assign colors from the predefined palettes in the header file
8809
- if (isDarkMode) {
8810
- COLOR_SUCCESS = DMODE_SUCCESS;
8811
- COLOR_ERROR = DMODE_ERROR;
8812
- COLOR_INFO = DMODE_INFO;
8813
- _filterHelpColor = DMODE_FILTER_HELP;
8814
- } else {
8815
- COLOR_SUCCESS = LMODE_SUCCESS;
8816
- COLOR_ERROR = LMODE_ERROR;
8817
- COLOR_INFO = LMODE_INFO;
8818
- _filterHelpColor = LMODE_FILTER_HELP;
8819
- }
8820
-
8821
- // Update the active color based on the type of the last message shown.
8822
- // This ensures the color changes instantly on theme switch.
8823
- switch (_lastMessageStatus) {
8824
- case MessageStatus::Success:
8825
- _statusMessageColor = COLOR_SUCCESS;
8826
- break;
8827
- case MessageStatus::Error:
8828
- _statusMessageColor = COLOR_ERROR;
8829
- break;
8830
- case MessageStatus::Info:
8831
- default:
8832
- _statusMessageColor = COLOR_INFO;
8833
- break;
8834
- }
8835
-
8836
- // This ensures column colors are also updated on theme change.
8837
- if (isColumnHighlighted)
8838
- initializeColumnStyles();
8839
-
8840
- // Force the owner-drawn status control to repaint with the new colors
8841
- InvalidateRect(GetDlgItem(_hSelf, IDC_STATUS_MESSAGE), NULL, TRUE);
8842
-
8843
- // draws the (?) Find Tooltip
8844
- InvalidateRect(GetDlgItem(_hSelf, IDC_FILTER_HELP), NULL, TRUE);
8845
- }
8846
- */
8847
-
8848
8803
void MultiReplace::applyThemePalette ()
8849
8804
{
8850
8805
// Check if Notepad++ is currently in dark mode
0 commit comments