"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "swidget/STextView.cpp" between
yudit-3.0.5.tar.gz and yudit-3.0.7.tar.gz

About: yudit is an Unicode plain-text editor that can do True Type font rendering, printing, transliterated keyboard input and handwriting recognition with no dependencies on external engines.

STextView.cpp  (yudit-3.0.5):STextView.cpp  (yudit-3.0.7)
skipping to change at line 730 skipping to change at line 730
if (highlightMode == "simple") if (highlightMode == "simple")
{ {
const SGlyph& g = textData.glyphAt (index); const SGlyph& g = textData.glyphAt (index);
if (g.isLetter ()) if (g.isLetter ())
{ {
} }
else if (g.isNumber()) else if (g.isNumber())
{ {
pen->setForeground(SColor("orange")); pen->setForeground(SColor("orange"));
} }
// emoji
else if (g.getType() == SD_CC_So)
{
pen->setForeground(SColor("gray90"));
}
else // not a letter, nor a number else // not a letter, nor a number
{ {
pen->setForeground(SColor("CornflowerBlue")); pen->setForeground(SColor("CornflowerBlue"));
} }
if (getLigatureScriptCode (g.getChar()) == SD_AS_LITERAL) *isError = true; if (getLigatureScriptCode (g.getChar()) == SD_AS_LITERAL) *isError = true;
} }
else if (highlightMode == "simple-dark") else if (highlightMode == "simple-dark")
{ {
const SGlyph& g = textData.glyphAt (index); const SGlyph& g = textData.glyphAt (index);
if (g.isLetter ()) if (g.isLetter ())
{ {
} }
else if (g.isNumber()) else if (g.isNumber())
{ {
pen->setForeground(SColor("orange4")); pen->setForeground(SColor("orange4"));
} }
// emoji
else if (g.getType() == SD_CC_So)
{
pen->setForeground(SColor("gray20"));
}
else // not a letter, nor a number else // not a letter, nor a number
{ {
pen->setForeground(SColor("DeepSkyBlue4")); pen->setForeground(SColor("DeepSkyBlue4"));
} }
if (getLigatureScriptCode (g.getChar()) == SD_AS_LITERAL) *isError = true; if (getLigatureScriptCode (g.getChar()) == SD_AS_LITERAL) *isError = true;
} }
else if (highlightMode != "none" && highlightMode != "") else if (highlightMode != "none" && highlightMode != "")
{ {
SSyntax::SS_Tag tag = syntax.getTagByTDI (index); SSyntax::SS_Tag tag = syntax.getTagByTDI (index);
 End of changes. 2 change blocks. 
0 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)