fix underline; log widget improvements

This commit is contained in:
Vadim Lopatin 2015-03-10 16:03:15 +03:00
parent bfd5f48589
commit 5bfb363744
2 changed files with 2 additions and 2 deletions

View File

@ -377,9 +377,8 @@ class Font : RefCountedObject {
dchar ch = text[i];
uint color = i < charProps.length ? charProps[i].color : charProps[$ - 1].color;
customizedTextFlags = (i < charProps.length ? charProps[i].textFlags : charProps[$ - 1].textFlags) | textFlags;
underline = (customizedTextFlags & TextFlag.Underline) != 0;
// turn off underline after hot key
if (!(customizedTextFlags & TextFlag.Underline))
underline = false;
if (ch == '&' && (textFlags & (TextFlag.UnderlineHotKeys | TextFlag.HotKeys | TextFlag.UnderlineHotKeysWhenAltPressed))) {
if (textFlags & (TextFlag.UnderlineHotKeys | TextFlag.UnderlineHotKeysWhenAltPressed))
underline = true; // turn ON underline for hot key

View File

@ -2378,6 +2378,7 @@ class LogWidget : EditBox {
minFontSize(8).maxFontSize(32); // allow font zoom with Ctrl + MouseWheel
onThemeChanged();
}
/// append lines to the end of text
void appendText(dstring text) {
if (text.length == 0)