mhammond / pywin32

Python for Windows (pywin32) Extensions
5.06k stars 799 forks source link

Color of the folding margin. #830

Open ghost opened 15 years ago

ghost commented 15 years ago

It is currently impossible to change the color of the folding margin. The variables that need changing is 'selbar', and 'selbarlight' in the current instance of 'ViewStyle' (in Pythonwin/Scintilla/src/ViewStyle.cxx). Those two variables does not read their values from a defined style, nor is there any way to update them from python code.

Reported by: mizardx

Original Ticket: "pywin32/feature-requests/71":https://sourceforge.net/p/pywin32/feature-requests/71

ghost commented 15 years ago

According to the Scintilla docs, these can be changed using SCI_SETFOLDMARGINCOLOUR and SCI_SETFOLDMARGINHICOLOUR. Since this isn't an actual style, it's not going to fit in nicely with the existing formats. However, we might be able to use the font color for one, and the background color for the other. They'd have to be handled specially in the reformatting code.

Original comment by: rupole

ghost commented 15 years ago

Original comment by: rupole