mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-17 23:08:40 +02:00
Make underline the same color as text in TkRemind.
This commit is contained in:
@@ -3156,7 +3156,18 @@ proc EditableEnter { w } {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
set tag [lindex $tags $index]
|
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 } {
|
proc EditableLeave { w } {
|
||||||
set tags [$w tag names current]
|
set tags [$w tag names current]
|
||||||
|
|||||||
Reference in New Issue
Block a user