You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/terryjreedy'closed_at=Nonecreated_at=<Date2018-09-23.05:34:58.811>labels= ['3.8', 'expert-IDLE', 'type-feature', '3.7']
title='IDLE: use theme colors for help viewer'updated_at=<Date2018-09-23.13:02:05.464>user='https://github.com/terryjreedy'
If HelpText is ever subclassed from a view text class, the color_config and call will be deleted. But changing the two fixed colors will be needed in any case.
The background option in
self.tag_configure('pre', font=(fixedfont, 12), background='#f6f6ff')
was intended to give fixed-pitch words a very light bluish background, but I cannot see any difference, so deleting it is no loss.
For the pre block, "background='#eeffcc'" gives the block a yellow background that matches the one used in online docs, as viewed by me with Firefox. So it is made conditional on the foreground color being the default solid black (which is different from tk's 'black').
Border colors appear to be fixed at some black, making the border invisible on a black or near-black background. But it does not seem worthwhile to try to decide when to omit it.
This is working on Ubuntu. Probably not a big deal, but because the help viewer is not modal, it's possible to change the theme with the help window open and the text isn't updated on the help window. If the help is closed and reopened, then the new theme appears.
Python docs now have a theme selector at the top center-right with options 'Auto', 'Light', and 'Dark'. Box backgrounds and borders are grayed versions of the background and foreground colors. Perhaps 15%.
Code within a box is somewhat highlighted, but skip for now as would have to restrict colorizing to box content.
Activity
terryjreedy commentedon Sep 23, 2018
Follow-up to #78729. Use user-selected color theme for Help => IDLE Help. (Patch coming.)
terryjreedy commentedon Sep 23, 2018
If HelpText is ever subclassed from a view text class, the color_config and call will be deleted. But changing the two fixed colors will be needed in any case.
The background option in
self.tag_configure('pre', font=(fixedfont, 12), background='#f6f6ff')
was intended to give fixed-pitch words a very light bluish background, but I cannot see any difference, so deleting it is no loss.
For the pre block, "background='#eeffcc'" gives the block a yellow background that matches the one used in online docs, as viewed by me with Firefox. So it is made conditional on the foreground color being the default solid black (which is different from tk's 'black').
Border colors appear to be fixed at some black, making the border invisible on a black or near-black background. But it does not seem worthwhile to try to decide when to omit it.
terryjreedy commentedon Sep 23, 2018
I have tested this on Windows with both light and dark themes.
csabella commentedon Sep 23, 2018
This is working on Ubuntu. Probably not a big deal, but because the help viewer is not modal, it's possible to change the theme with the help window open and the text isn't updated on the help window. If the help is closed and reopened, then the new theme appears.
terryjreedy commentedon Dec 16, 2023
Python docs now have a theme selector at the top center-right with options 'Auto', 'Light', and 'Dark'. Box backgrounds and borders are grayed versions of the background and foreground colors. Perhaps 15%.
Code within a box is somewhat highlighted, but skip for now as would have to restrict colorizing to box content.
gh-78955: Use user-selected color theme for Help => IDLE Doc (#9502)
pythongh-78955: Use user-selected color theme for Help => IDLE Doc (p…
[3.12] gh-78955: Use user-selected color theme for Help => IDLE Doc (G…
pythongh-78955: Use user-selected color theme for Help => IDLE Doc (p…