[Geany] Change the color of selected text

Lex Trotman elextr at xxxxx
Wed May 18 01:17:16 UTC 2011


On 18 May 2011 10:27, Matthew Brush <mbrush at 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/2621f73312be/gtk/PlatGTK.cxx#l2288
>
> 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 at uvena.de
> https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
>



More information about the Users mailing list