Skip to content

Commit f7c61ca

Browse files
committed
cleared code from updateThemeAndColors()
1 parent b3de66c commit f7c61ca

File tree

2 files changed

+0
-46
lines changed

2 files changed

+0
-46
lines changed

src/MultiReplacePanel.cpp

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -8800,51 +8800,6 @@ void MultiReplace::showStatusMessage(const std::wstring& messageText, MessageSta
88008800
}
88018801
}
88028802

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-
88488803
void MultiReplace::applyThemePalette()
88498804
{
88508805
// Check if Notepad++ is currently in dark mode

src/MultiReplacePanel.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,6 @@ class MultiReplace : public StaticDialog
834834
void updateHeaderSelection();
835835
void updateHeaderSortDirection();
836836
void showStatusMessage(const std::wstring& messageText, MessageStatus status, bool isNotFound = false);
837-
//void updateThemeAndColors();
838837
void applyThemePalette();
839838
void refreshColumnStylesIfNeeded();
840839
std::wstring getShortenedFilePath(const std::wstring& path, int maxLength, HDC hDC = nullptr);

0 commit comments

Comments
 (0)