Make underline the same color as text in TkRemind.

This commit is contained in:
Dianne Skoll
2021-12-27 11:53:02 -05:00
parent 2573003034
commit 82ae568add

View File

@@ -3156,7 +3156,18 @@ proc EditableEnter { w } {
return
}
set tag [lindex $tags $index]
$w tag configure $tag -underline 1
set c ""
set index [lsearch -glob $tags "clr*"]
if {$index >= 0} {
set ctag [lindex $tags $index]
set c [$w tag cget $ctag -foreground]
}
if {"$c" != ""} {
$w tag configure $tag -underline 1 -underlinefg $c
} else {
$w tag configure $tag -underline 1
}
}
proc EditableLeave { w } {
set tags [$w tag names current]