#409 No option to change default background.

closed-fixed
Roger Upole
pythonwin (176)
5
2009-02-09
2009-02-03
MizardX
No

In my quest to get a light-on-dark theme in the editor, I found the "Default Background" registry option. But there is no control to change that in the "Pythonwin Options"-dialog.

"Default Background" is referenced from pywin\scintilla\formatter.py on line 77:
bg = int( self.LoadPreference( "Default Background", -1 ) )

I do not have enough knowledge of C++ and windows-programming to attempt to add a new control to the dialog.

Discussion

  • MizardX
    MizardX
    2009-02-03

    color theme

     
    Attachments
  • MizardX
    MizardX
    2009-02-03

    For anyone who would be interested in a light-on-dark theme (rip of the desert theme from gvim), here is a reg-file with the appropriate settings. Folding does not work with this theme (and gets disabled my the reg-file), as it is currently impossible to change the color of the folding-column trough settings alone. Also, it uses the 'Consolas' font instead of the default 'Courier New'.
    File Added: desert_theme.reg

     
  • Roger Upole
    Roger Upole
    2009-02-08

    • assigned_to: nobody --> rupole
     
  • Roger Upole
    Roger Upole
    2009-02-08

    From looking at the code, it appears that the whitespace
    background (registered as STYLE_DEFAULT) was originally
    intended to be the overall default background. This
    should be doable without any changes to the UI. Unless
    anybody has any objections, I'll implement this and
    remove the hidden registry setting altogether.

     
  • Roger Upole
    Roger Upole
    2009-02-09

    Just committed formatter.py r1.20 and configui.py r1.7,
    which allow you to set the overall background via the
    "Whitespace background" setting.

     
  • Roger Upole
    Roger Upole
    2009-02-09

    • status: open --> closed-fixed