mirror of https://github.com/buggins/dlangui.git
fix underlining
This commit is contained in:
parent
1733394bb1
commit
02526cbbb3
|
@ -377,6 +377,9 @@ class Font : RefCountedObject {
|
||||||
dchar ch = text[i];
|
dchar ch = text[i];
|
||||||
uint color = i < charProps.length ? charProps[i].color : charProps[$ - 1].color;
|
uint color = i < charProps.length ? charProps[i].color : charProps[$ - 1].color;
|
||||||
customizedTextFlags = (i < charProps.length ? charProps[i].textFlags : charProps[$ - 1].textFlags) | textFlags;
|
customizedTextFlags = (i < charProps.length ? charProps[i].textFlags : charProps[$ - 1].textFlags) | textFlags;
|
||||||
|
// turn off underline after hot key
|
||||||
|
if (!(customizedTextFlags & TextFlag.Underline))
|
||||||
|
underline = false;
|
||||||
if (ch == '&' && (textFlags & (TextFlag.UnderlineHotKeys | TextFlag.HotKeys | TextFlag.UnderlineHotKeysWhenAltPressed))) {
|
if (ch == '&' && (textFlags & (TextFlag.UnderlineHotKeys | TextFlag.HotKeys | TextFlag.UnderlineHotKeysWhenAltPressed))) {
|
||||||
if (textFlags & (TextFlag.UnderlineHotKeys | TextFlag.UnderlineHotKeysWhenAltPressed))
|
if (textFlags & (TextFlag.UnderlineHotKeys | TextFlag.UnderlineHotKeysWhenAltPressed))
|
||||||
underline = true; // turn ON underline for hot key
|
underline = true; // turn ON underline for hot key
|
||||||
|
|
Loading…
Reference in New Issue