Fix URL Hovered colour disappears after modifying any Clickable Link Settings regression
Fix #8493, close #8496pull/8500/head
parent
26d360dd9e
commit
3315303050
|
@ -2498,8 +2498,15 @@ void Notepad_plus::addHotSpot(ScintillaEditView* view)
|
|||
LPARAM indicStyle = (urlAction == 2) ? INDIC_PLAIN : INDIC_HIDDEN;
|
||||
|
||||
LPARAM indicStyleCur = pView->execute(SCI_INDICGETSTYLE, URL_INDIC);
|
||||
if (indicStyleCur != indicStyle)
|
||||
LPARAM indicHoverStyleCur = pView->execute(SCI_INDICGETHOVERSTYLE, URL_INDIC);
|
||||
|
||||
if ((indicStyleCur != indicStyle) || (indicHoverStyleCur != INDIC_FULLBOX))
|
||||
{
|
||||
pView->execute(SCI_INDICSETSTYLE, URL_INDIC, indicStyle);
|
||||
pView->execute(SCI_INDICSETHOVERSTYLE, URL_INDIC, INDIC_FULLBOX);
|
||||
pView->execute(SCI_INDICSETALPHA, URL_INDIC, 70);
|
||||
pView->execute(SCI_INDICSETFLAGS, URL_INDIC, SC_INDICFLAG_VALUEFORE);
|
||||
}
|
||||
|
||||
int startPos = 0;
|
||||
int endPos = -1;
|
||||
|
|
|
@ -329,11 +329,6 @@ void ScintillaEditView::init(HINSTANCE hInst, HWND hPere)
|
|||
execute(SCI_INDICSETUNDER, SCE_UNIVERSAL_FOUND_STYLE_EXT4, true);
|
||||
execute(SCI_INDICSETUNDER, SCE_UNIVERSAL_FOUND_STYLE_EXT5, true);
|
||||
|
||||
execute(SCI_INDICSETHOVERSTYLE, URL_INDIC, INDIC_FULLBOX);
|
||||
execute(SCI_INDICSETALPHA, URL_INDIC, 70);
|
||||
execute(SCI_INDICSETFLAGS, URL_INDIC, SC_INDICFLAG_VALUEFORE);
|
||||
|
||||
|
||||
if ((NppParameters::getInstance()).getNppGUI()._writeTechnologyEngine == directWriteTechnology)
|
||||
execute(SCI_SETTECHNOLOGY, SC_TECHNOLOGY_DIRECTWRITE);
|
||||
// If useDirectWrite is turned off, leave the technology setting untouched,
|
||||
|
|
Loading…
Reference in New Issue