[Geany] Change the color of selected text

Matthew Brush mbrush at xxxxx
Wed May 18 00:27:32 UTC 2011


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/2621f73312be/gtk/PlatGTK.cxx#l2288

Cheers,
Matthew Brush



More information about the Users mailing list