| Description: |
The tk_getOpenFile ignores foreground colors in the
option database. More precisely, canvas widgets do not
have a -foreground color option which could be used by
text items' -fill option.
Example:
% option add *Canvas.background black
% option add *foreground white
% tk_getOpenFile
now shows black text on a black background. Not very
helpful. Here's a small patch to tkfbox.tcl (8.4.4)
which remedies the situation:
> diff tkfbox.tcl tkfbox.tcl.0
242,245d241
< set fg [option get $data(canvas) foreground
Foreground]
< if { ![string length $fg] } { set fg black }
< set data(fill) $fg
<
345d340
< set fg [option get $data(canvas) foreground
Foreground]
350d344
< -fill $data(fill) \
|