#34 Make indentation guides less obstrusive

closed
nobody
None
5
2005-02-23
2005-02-20
No

The indentation guides look too obtrusive in my
opinion, they are too much disctracting from the code
if you have several levels of indentation. I liked how
they look in SciTe, much less obstrusive. If you don't
think of them, you don't notice them, but when you need
them, they are there. That's exactly how it should be.

Discussion

  • Christoph Zwerschke

    Logged In: YES
    user_id=193957

    (I am speaking about DrPython and SciTe on WinXP; maybe it's
    different on other platforms?).

     
  • Daniel Pozmanter

    • status: open --> closed
     
  • Daniel Pozmanter

    Logged In: YES
    user_id=796750

    Browsing the stc docs, it looks like that is just the way
    indentation guides look in wxPython. If you can find a way
    to make them look nicer, I'd be more than happy to add it in.

     
  • Christoph Zwerschke

    Logged In: YES
    user_id=193957

    Good news. I have found a way to set the color of the dots
    of the indentation guides. The default is black, while SciTe
    uses a grey value of #c0c0c0 which is much less obstrusive.

    You can change this in DrPython by inserting the following line

    self.StyleSetForeground(wx.stc.STC_STYLE_INDENTGUIDE,
    wx.LIGHT_GREY)

    in the module drText.py

    right after the line

    self.SetCaretWidth(self.grandparent.prefs.doccaretwidth)

    Of course, you have to find the proper place for this line
    in the code. Probably you should make it also configurable
    along with the other settings under

    Preferences -> Document -> Edit Text Styles

    However, wx.LIGHT_GREY should be the default color. It is
    really much nicer. The guides are there, but they aren't
    irritating any more.

    (BTW, the default background and foreground color for
    comments should be also much lighter. With the default
    settings, comments look more prominent than the code itself.
    But it should be the other way round, the code should stick
    out most prominently, and the comments should be somewhat
    "greyed out".)

     
  • Christoph Zwerschke

    • status: closed --> open
     
  • Daniel Pozmanter

    • status: open --> closed
     
  • Daniel Pozmanter

    Logged In: YES
    user_id=796750

    Many thanks, this will be in the next release.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks