Tk Source Code

Check-in [72d8eb47]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix for [042da6013e]: give the demos colours which go with their background.

The pendulum demo gives its canvases a white background but leaves the text items at the default foreground, which under a dark appearance is white, so the caption and the axis labels could not be seen. Give those items a fill of their own, as the other demos were given one.

The widget demo colours its index links for a light background, which the text widget need not have: a #303080 link on a dark one cannot be read. Choose the set which goes with the background the text widget actually has, by the weighting tk_setPalette uses to decide between a black and a white foreground.

Downloads: See separate download page
Timelines: family | ancestors | descendants | both | demo-colors-dark-mode
Files: files | file ages | folders
SHA3-256: 72d8eb4751789fa4254814bca51cea8c66cab8c8ad822548f7d42eec58269f11
User & Date: serhiy.storchaka 2026-10-26 12:44:23.832
Context
2026-10-28
18:10
Fix for [042da6013e]: Pendulum demo text not visible under dark mode check-in: d005489a user: csaba tags: trunk, main
2026-10-26
12:44
Fix for [042da6013e]: give the demos colours which go with their background.

The pendulum demo gives its canvases a white background but leaves the text items at the default foreground, which under a dark appearance is white, so the caption and the axis labels could not be seen. Give those items a fill of their own, as the other demos were given one.

The widget demo colours its index links for a light background, which the text widget need not have: a #303080 link on a dark one cannot be read. Choose the set which goes with the background the text widget actually has, by the weighting tk_setPalette uses to decide between a black and a white foreground. closed check-in: 72d8eb47 user: serhiy.storchaka tags: demo-colors-dark-mode

2026-10-25
12:42
Fix for [fde9dc2392]: X error BadDrawable when using ttk::style element create with multiple displays check-in: 85428671 user: csaba tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to library/demos/pendulum.tcl.
Changes to library/demos/widget.