Artifact
aa846f450c84c47caeab574b699e8f1d925a17ec345c004989dc4302537e885a:
Attachment "4468ed16d3.diff" to
ticket [4468ed16]
added by
chrstphrchvz
2023-08-22 15:45:46.
diff --git library/iconlist.tcl library/iconlist.tcl
index 6f46ba4f6..75a0741c1 100644
--- library/iconlist.tcl
+++ library/iconlist.tcl
@@ -377,7 +377,7 @@ package require Tk
method DrawSelection {} {
$canvas delete selection
- $canvas itemconfigure selectionText -fill black
+ $canvas itemconfigure selectionText -fill $fill
$canvas dtag selectionText
set cbg [ttk::style lookup TEntry -selectbackground focus]
set cfg [ttk::style lookup TEntry -selectforeground focus]
@@ -422,12 +422,7 @@ package require Tk
set noScroll 1
set selection {}
set index(anchor) ""
- set fg [option get $canvas foreground Foreground]
- if {$fg eq ""} {
- set fill black
- } else {
- set fill $fg
- }
+ set fill black
# Creates the event bindings.
#