Skip to content

bpo-33679: IDLE: Re-enable color configuration for code context #7199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jun 2, 2018

Conversation

csabella
Copy link
Contributor

@csabella csabella commented May 29, 2018

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.

https://bugs.python.org/issue33679

Copy link
Member

@terryjreedy terryjreedy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your initial context background is cute, but a bit too 'cute'. I think something more neutral, black #000000, dark gray, such as #606060, or dark bluish-gray, such as #505090 is better for a default. I changed to the latter.

I want to re-test colors with variable contexts, as it was background color flipping that annoyed me previously. I think this is otherwise ready to merge.

In a separate issue, we should eliminate the config loop. The new reload method, called when Settings closes, should reset existing code context widgets.

In a separate issue, perhaps after 3.6 is frozen, we can and should change the use of theme_elements in configdialog.py to not need the order field.

@terryjreedy terryjreedy added type-bug An unexpected behavior, bug, or error needs backport to 3.6 labels Jun 1, 2018
@terryjreedy
Copy link
Member

I merged #7333 first, and will try to fix the conflicts with the web editor before trying to make a branch for further testing.

@csabella
Copy link
Contributor Author

csabella commented Jun 1, 2018

The new color looks like a dark periwinkle to me, meaning it looks purple-ish (maybe it's my monitor). This one looks a little more in the dark bluish-gray range - #56647e (86, 100, 126 with the sliders).

@terryjreedy
Copy link
Member

Given the differences between monitors and eyes, I think we should make the default a neutral gray that is the inverse of the light gray for light themes. I just pulled 'variable lines' to retest this patch.

@terryjreedy terryjreedy self-assigned this Jun 2, 2018
@terryjreedy
Copy link
Member

Test failure: Travis does not run GUI tests, so it did not run code context tests, so its pass do not mean that the merge is OK. Appveyor does run GUI tests, but fixing the merge conflicts did not merge in all the changes in the the variable lines patch. In particular, the test was run without the config-main changes that the merged tests assume. There is supposed to be an 'update PR' button, but I don't see one. I will do it and retest on my system.

@terryjreedy
Copy link
Member

The problem was mis-selecting one line in codecontext.py. There was no update button because it was done as part of the merge resolution.

@terryjreedy terryjreedy changed the title bpo-33679: IDLE: Enable color configuration for code context bpo-33679: IDLE: Re-enable color configuration for code context Jun 2, 2018
@terryjreedy terryjreedy merged commit de65162 into python:master Jun 2, 2018
@miss-islington
Copy link
Contributor

Thanks @csabella for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-7334 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 2, 2018
…onGH-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 de65162)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
@bedevere-bot
Copy link

GH-7335 is a backport of this pull request to the 3.6 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 2, 2018
…onGH-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 de65162)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
miss-islington added a commit that referenced this pull request Jun 2, 2018
)

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 de65162)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
miss-islington added a commit that referenced this pull request Jun 2, 2018
)

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 de65162)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
@csabella csabella deleted the contextcolor branch June 2, 2018 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants