Skip to content
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

Improve visual style of code folding #4147

Closed
drammock opened this issue Feb 15, 2017 · 0 comments
Closed

Improve visual style of code folding #4147

drammock opened this issue Feb 15, 2017 · 0 comments
Assignees
Milestone

Comments

@drammock
Copy link

Description of your problem

I run spyder from source using bootstrap.py, I'm currently on commit 65bc403. New (to me) is the gutter area separating the line numbers from the user-entered code in the editor pane. I discovered that the intended use is code folding (which I know some people really like), but I find this implementation really unpleasant:

  1. it breaks visual connection between number and line
  2. every time my mouse rolls over it, the gutter flickers to a darker color
  3. if my mouse hovers for slightly longer, portions of the editor window change color to indicate what will not be folded if I clicked.

The high-contrast editor background color changes are especially jarring (changes from my normal black background to a very light grey).

suggested improvements

  • if there must be a gutter there, at least make it the same color as the background behind the line numbers.
  • instead of highlighting portions of the gutter, implement code folding as little triangles or chevrons on the first line of the part to be folded (like in Sublime or Atom)
  • don't change the background color of non-folded parts of the code (neither Sublime nor Atom do this)
    • If you insist on showing users what is going to be folded, include a new key in the color palette called "folding highlight color" or something similar, so that users like me (who don't want this behavior) can set it to the same color as their editor background (effectively turning off the feature)
@ccordoba12 ccordoba12 added this to the v4.0beta1 milestone Feb 15, 2017
@ccordoba12 ccordoba12 changed the title ENH: better visual style of code-folding gutter Improve visual style of code folding Mar 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants