[NEW] URL hovered highlighting can be customized.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1146 f5eea248-9336-0410-98b8-ebc06183d4e3
remotes/trunk
Don Ho 11 years ago
parent d320a022d3
commit 8e8257c8d8

@ -2204,7 +2204,6 @@ void Notepad_plus::addHotSpot()
{ {
style_hotspot = idStyle | mask; // set "hotspot bit" style_hotspot = idStyle | mask; // set "hotspot bit"
hotspotPairs.push_back(style_hotspot); hotspotPairs.push_back(style_hotspot);
int activeFG = 0xFF0000;
unsigned char idStyleMSBunset = idStyle & ~mask; unsigned char idStyleMSBunset = idStyle & ~mask;
char fontNameA[128]; char fontNameA[128];
@ -2235,6 +2234,10 @@ void Notepad_plus::addHotSpot()
_pEditView->setHotspotStyle(hotspotStyle); _pEditView->setHotspotStyle(hotspotStyle);
_pEditView->execute(SCI_STYLESETHOTSPOT, style_hotspot, TRUE); _pEditView->execute(SCI_STYLESETHOTSPOT, style_hotspot, TRUE);
int activeFG = 0xFF0000;
Style *urlHovered = getStyleFromName(TEXT("URL hovered"));
if (urlHovered)
activeFG = urlHovered->_fgColor;
_pEditView->execute(SCI_SETHOTSPOTACTIVEFORE, TRUE, activeFG); _pEditView->execute(SCI_SETHOTSPOTACTIVEFORE, TRUE, activeFG);
_pEditView->execute(SCI_SETHOTSPOTSINGLELINE, style_hotspot, 0); _pEditView->execute(SCI_SETHOTSPOTSINGLELINE, style_hotspot, 0);

@ -828,5 +828,6 @@
<WidgetStyle name="Active tab unfocused indicator" styleID="0" fgColor="FFCAB0" /> <WidgetStyle name="Active tab unfocused indicator" styleID="0" fgColor="FFCAB0" />
<WidgetStyle name="Active tab text" styleID="0" fgColor="000000" /> <WidgetStyle name="Active tab text" styleID="0" fgColor="000000" />
<WidgetStyle name="Inactive tabs" styleID="0" fgColor="808080" bgColor="C0C0C0" /> <WidgetStyle name="Inactive tabs" styleID="0" fgColor="808080" bgColor="C0C0C0" />
<WidgetStyle name="URL hovered" styleID="0" fgColor="0000FF" />
</GlobalStyles> </GlobalStyles>
</NotepadPlus> </NotepadPlus>

Loading…
Cancel
Save