Hi...I am using Geany 0.19.1 in Ubuntu 10.10 64bit as my LateX and Matlab files editor. Geany is, by far, my favorite editor, but there is one thing that makes my life a bit too hard sometimes. The color schemes I use for both file types are custom made ones from: http://geanycolourscheme.xtreemhost.com/ Problem is the selected text has this light grey color that is sometimes hard to distinguish (background is grey). When I use the "Find" feature, it's also very hard to spot the results. So, is there a way to change the foreground/background of selected text?
Any help is appreciated, thanks.
-M.
On Tue, May 17, 2011 at 9:01 PM, M. Badawy m.cohomology@gmail.com wrote:
So, is there a way to change the foreground/background of selected text?
If i'm not mistaken (i might be), that's part of the window manager's theme configuration?
On 18 May 2011 05:01, M. Badawy m.cohomology@gmail.com wrote:
Hi...I am using Geany 0.19.1 in Ubuntu 10.10 64bit as my LateX and Matlab files editor. Geany is, by far, my favorite editor, but there is one thing that makes my life a bit too hard sometimes. The color schemes I use for both file types are custom made ones from: http://geanycolourscheme.xtreemhost.com/ Problem is the selected text has this light grey color that is sometimes hard to distinguish (background is grey). When I use the "Find" feature, it's also very hard to spot the results. So, is there a way to change the foreground/background of selected text? Any help is appreciated, thanks.
in filetypes.common (make a copy in your config directory not the system copy) there is:
# 3rd selection argument is true to override default foreground # 4th selection argument is true to override default background selection=0x000000;0xc0c0c0;false;false
Edit 0xc0c0c0 to the colour you want and set the last false to true.
Cheers Lex
-M. _______________________________________________ Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On 05/17/11 16:35, Lex Trotman wrote:
On 18 May 2011 05:01, M. Badawym.cohomology@gmail.com wrote:
So, is there a way to change the foreground/background of selected text? Any help is appreciated, thanks.
in filetypes.common (make a copy in your config directory not the system copy) there is:
# 3rd selection argument is true to override default foreground # 4th selection argument is true to override default background selection=0x000000;0xc0c0c0;false;false
Edit 0xc0c0c0 to the colour you want and set the last false to true.
A weird thing with this is, at least when using the colour schemes support, when you have selected text and then open a modal dialog, the selection colours revert to some default grey colour which causes the OP's issues anyway. I haven't had time to pin down where the problem comes from, but I think it might be in Scintilla (and/or geany-themes).
Cheers, Matthew Brush
# 3rd selection argument is true to override default foreground # 4th selection argument is true to override default background selection=0x000000;0xc0c0c0;false;false
Edit 0xc0c0c0 to the colour you want and set the last false to true.
A weird thing with this is, at least when using the colour schemes support, when you have selected text and then open a modal dialog, the selection colours revert to some default grey colour which causes the OP's issues anyway. I haven't had time to pin down where the problem comes from, but I think it might be in Scintilla (and/or geany-themes).
Hi Matthew,
I don't think filetypes.common applies outside text in the Scintilla window, the normal dialogs and everything else is GTK theming using .gtkrc, see the manual for more info.
Cheers Lex
On 05/17/11 16:53, Lex Trotman wrote:
# 3rd selection argument is true to override default foreground # 4th selection argument is true to override default background selection=0x000000;0xc0c0c0;false;false
Edit 0xc0c0c0 to the colour you want and set the last false to true.
A weird thing with this is, at least when using the colour schemes support, when you have selected text and then open a modal dialog, the selection colours revert to some default grey colour which causes the OP's issues anyway. I haven't had time to pin down where the problem comes from, but I think it might be in Scintilla (and/or geany-themes).
Hi Matthew,
I don't think filetypes.common applies outside text in the Scintilla window, the normal dialogs and everything else is GTK theming using .gtkrc, see the manual for more info.
Sorry, I wasn't very clear. I meant the selection colour in Scintilla changes to some light grey colour when it loses focus, maybe only when a modal dialog is opened to steal focus, maybe only when using colour schemes support (or only visible then).
I did confirm that Colomban sees this also, but we only spent a short time looking for the problem and came up with nothing. My initial suspicions pointed to here[1] (based almost entirely on the comments) but hacking around there and a few other places didn't seem to fix it.
[1] http://scintilla.hg.sourceforge.net/hgweb/scintilla/scintilla/file/2621f7331...
Cheers, Matthew Brush
On 18 May 2011 10:27, Matthew Brush mbrush@codebrainz.ca wrote:
On 05/17/11 16:53, Lex Trotman wrote:
# 3rd selection argument is true to override default foreground # 4th selection argument is true to override default background selection=0x000000;0xc0c0c0;false;false
Edit 0xc0c0c0 to the colour you want and set the last false to true.
A weird thing with this is, at least when using the colour schemes support, when you have selected text and then open a modal dialog, the selection colours revert to some default grey colour which causes the OP's issues anyway. I haven't had time to pin down where the problem comes from, but I think it might be in Scintilla (and/or geany-themes).
Hi Matthew,
I don't think filetypes.common applies outside text in the Scintilla window, the normal dialogs and everything else is GTK theming using .gtkrc, see the manual for more info.
Sorry, I wasn't very clear. I meant the selection colour in Scintilla changes to some light grey colour when it loses focus, maybe only when a modal dialog is opened to steal focus, maybe only when using colour schemes support (or only visible then).
I did confirm that Colomban sees this also, but we only spent a short time looking for the problem and came up with nothing. My initial suspicions pointed to here[1] (based almost entirely on the comments) but hacking around there and a few other places didn't seem to fix it.
[1] http://scintilla.hg.sourceforge.net/hgweb/scintilla/scintilla/file/2621f7331...
Cheers, Matthew Brush
No, there is an undocumented feature of an additional selection background set by SCI_SETADDITIONALSELBACK that is used when the selection isn't the main selection, which will be the case when the Scintilla window doesn't have focus. Geany does not set this so it is probably still default grey.
There is also a selbackground2 used in the code, but that seems to be unset able.
Cheers Lex
Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On 05/17/11 18:17, Lex Trotman wrote:
On 18 May 2011 10:27, Matthew Brushmbrush@codebrainz.ca wrote:
On 05/17/11 16:53, Lex Trotman wrote:
I don't think filetypes.common applies outside text in the Scintilla window, the normal dialogs and everything else is GTK theming using .gtkrc, see the manual for more info.
Sorry, I wasn't very clear. I meant the selection colour in Scintilla changes to some light grey colour when it loses focus, maybe only when a modal dialog is opened to steal focus, maybe only when using colour schemes support (or only visible then).
No, there is an undocumented feature of an additional selection background set by SCI_SETADDITIONALSELBACK that is used when the selection isn't the main selection, which will be the case when the Scintilla window doesn't have focus. Geany does not set this so it is probably still default grey.
Thanks so much! That is great to know! I wonder if this should be added to Geany's color scheme code/system as another style or set automatically to the main selection, assuming it wouldn't interfere with multiple selection stuff.
Cheers, Matthew Brush
Thanks so much! That is great to know! I wonder if this should be added to Geany's color scheme code/system as another style or set automatically to the main selection, assuming it wouldn't interfere with multiple selection stuff.
Probably should add new setting since the additional selection background is used for column mode selections.
Cheers Lex
Cheers, Matthew Brush _______________________________________________ Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On 18 May 2011 09:53, Lex Trotman elextr@gmail.com wrote:
# 3rd selection argument is true to override default foreground # 4th selection argument is true to override default background selection=0x000000;0xc0c0c0;false;false
Edit 0xc0c0c0 to the colour you want and set the last false to true.
A weird thing with this is, at least when using the colour schemes support, when you have selected text and then open a modal dialog, the selection colours revert to some default grey colour which causes the OP's issues anyway. I haven't had time to pin down where the problem comes from, but I think it might be in Scintilla (and/or geany-themes).
Hi Matthew,
I don't think filetypes.common applies outside text in the Scintilla window, the normal dialogs and everything else is GTK theming using .gtkrc, see the manual for more info.
Correction, it is documented in the multiple selection section. What is not documented is that it appears that the scintilla selection becomes an additional selection if the focus is lost.
Cheers Lex