| Ticket UUID: | 6cc48bb8003be12b300ade5dc3f1105981760852 | |||
| Title: | TIP 604 widget demo: canvas text fill color not specified | |||
| Type: | Patch | Version: | core-9-0-branch | |
| Submitter: | chrstphrchvz | Created on: | 2025-08-10 12:52:33 | |
| Subsystem: | 76. Widget Tour | Assigned To: | chrstphrchvz | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2025-08-11 20:27:28 | |
| Resolution: | Fixed | Closed By: | jan.nijtmans | |
| Closed on: | 2025-08-11 20:27:28 | |||
| Description: |
The [tk print] widget demo specifies the canvas background color, so the fill color of the text should also be specified to ensure contrast. Otherwise, when using dark mode, the canvas text will be invisible (white text on white background).
--- library/demos/print.tcl
+++ library/demos/print.tcl
@@ -67,6 +67,7 @@
incr y2 [expr {round(15 * [tk scaling])}] ;# convert 15 pt to pixels
$c create text 15p $y2 -anchor nw -font {Helvetica 12} \
+ -fill black \
-text "A short demo of simple canvas elements."
set txt {
| |||
| User Comments: |
jan.nijtmans added on 2025-08-11 20:27:28:
Fixed [5ef35c7bf6230ade|here] Thanks for the patch! | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki