|
|
|
@ -1398,9 +1398,11 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
|
|
|
|
|
{
|
|
|
|
|
//reset styler for change in Stylers.xml
|
|
|
|
|
_mainEditView.defineDocType(_mainEditView.getCurrentBuffer()->getLangType());
|
|
|
|
|
_subEditView.defineDocType(_subEditView.getCurrentBuffer()->getLangType());
|
|
|
|
|
_mainEditView.performGlobalStyles();
|
|
|
|
|
|
|
|
|
|
_subEditView.defineDocType(_subEditView.getCurrentBuffer()->getLangType());
|
|
|
|
|
_subEditView.performGlobalStyles();
|
|
|
|
|
|
|
|
|
|
_findReplaceDlg.updateFinderScintilla();
|
|
|
|
|
|
|
|
|
|
drawTabbarColoursFromStylerArray();
|
|
|
|
@ -1413,45 +1415,50 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
|
|
|
|
|
(NppParameters::getInstance())->setCurrentDefaultBgColor(style._bgColor);
|
|
|
|
|
|
|
|
|
|
// Set default fg/bg colors on internal docking dialog
|
|
|
|
|
if (_pFuncList)
|
|
|
|
|
if (_pFuncList && _pFuncList->isCreated() && _pFuncList->isVisible())
|
|
|
|
|
{
|
|
|
|
|
_pFuncList->setBackgroundColor(style._bgColor);
|
|
|
|
|
_pFuncList->setForegroundColor(style._fgColor);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (_pAnsiCharPanel)
|
|
|
|
|
if (_pAnsiCharPanel && _pAnsiCharPanel->isCreated() && _pAnsiCharPanel->isVisible())
|
|
|
|
|
{
|
|
|
|
|
_pAnsiCharPanel->setBackgroundColor(style._bgColor);
|
|
|
|
|
_pAnsiCharPanel->setForegroundColor(style._fgColor);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (_pFileSwitcherPanel)
|
|
|
|
|
if (_pFileSwitcherPanel && _pFileSwitcherPanel->isCreated() && _pFileSwitcherPanel->isVisible())
|
|
|
|
|
{
|
|
|
|
|
_pFileSwitcherPanel->setBackgroundColor(style._bgColor);
|
|
|
|
|
_pFileSwitcherPanel->setForegroundColor(style._fgColor);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (_pClipboardHistoryPanel)
|
|
|
|
|
if (_pClipboardHistoryPanel && _pClipboardHistoryPanel->isCreated() && _pClipboardHistoryPanel->isVisible())
|
|
|
|
|
{
|
|
|
|
|
_pClipboardHistoryPanel->setBackgroundColor(style._bgColor);
|
|
|
|
|
_pClipboardHistoryPanel->setForegroundColor(style._fgColor);
|
|
|
|
|
_pClipboardHistoryPanel->redraw(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (_pProjectPanel_1)
|
|
|
|
|
if (_pProjectPanel_1 && _pProjectPanel_1->isCreated() && _pProjectPanel_1->isVisible())
|
|
|
|
|
{
|
|
|
|
|
_pProjectPanel_1->setBackgroundColor(style._bgColor);
|
|
|
|
|
_pProjectPanel_1->setForegroundColor(style._fgColor);
|
|
|
|
|
}
|
|
|
|
|
if (_pProjectPanel_2)
|
|
|
|
|
if (_pProjectPanel_2 && _pProjectPanel_2->isCreated() && _pProjectPanel_2->isVisible())
|
|
|
|
|
{
|
|
|
|
|
_pProjectPanel_2->setBackgroundColor(style._bgColor);
|
|
|
|
|
_pProjectPanel_2->setForegroundColor(style._fgColor);
|
|
|
|
|
}
|
|
|
|
|
if (_pProjectPanel_3)
|
|
|
|
|
if (_pProjectPanel_3 && _pProjectPanel_3->isCreated() && _pProjectPanel_3->isVisible())
|
|
|
|
|
{
|
|
|
|
|
_pProjectPanel_3->setBackgroundColor(style._bgColor);
|
|
|
|
|
_pProjectPanel_3->setForegroundColor(style._fgColor);
|
|
|
|
|
}
|
|
|
|
|
if (_pDocMap && _pDocMap->isCreated() && _pDocMap->isVisible())
|
|
|
|
|
{
|
|
|
|
|
_pDocMap->setSyntaxHiliting();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Notify plugins of update to styles xml
|
|
|
|
|
SCNotification scnN;
|
|
|
|
|