mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-16 06:18:47 +02:00
Make underline the same color as text in TkRemind.
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user