]> granicus.if.org Git - python/commit
bpo-33679: IDLE: Re-enable color configuration for code context (GH-7199)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 2 Jun 2018 02:16:04 +0000 (19:16 -0700)
committerGitHub <noreply@github.com>
Sat, 2 Jun 2018 02:16:04 +0000 (19:16 -0700)
commit4e033c5aa12766b1a4ba90d2184dbf32ef87f06e
tree50c9706da4f052764ce0f5927bdb5a54bd795240
parent0800b6c17a829ecb554d93cba8c97f92b15be52a
bpo-33679: IDLE: Re-enable color configuration for code context (GH-7199)

The difference from before is that the settings are now on the
Highlights tab instead of the Extensions tab and only change one theme
at a time instead of all themes. The default for light themes is black
on light gray, as before. The default for the IDLE Dark theme is white
on dark gray, which better fits the dark theme.

When one starts IDLE from a console and loads a custom theme without
definitions for 'context', one will see a warning message on the console.
To stop the warning, go to Options => Configure IDLE => Highlights,
select the custom theme if not selected already, select 'Code Context',
and select foreground and background colors.
(cherry picked from commit de6516264e793be991f692fdd892707afb9104a7)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
Lib/idlelib/codecontext.py
Lib/idlelib/config-highlight.def
Lib/idlelib/config.py
Lib/idlelib/configdialog.py
Lib/idlelib/idle_test/test_codecontext.py
Misc/NEWS.d/next/IDLE/2018-05-29-07-14-37.bpo-33679.MgX_Ui.rst [new file with mode: 0644]