[Geany-Users] Search background color

bendov at gmx.com bendov at xxxxx
Sun May 24 00:15:50 UTC 2020

Is there a way to change the background color to something that is
easier to see?

Yes.  Depends on how much you want to change - besides just the background.
There are the user built / uploaded themes.  Many have various dark background (some light).
Those include basic coloring for general parts (e.g., comments, braces, lots more).
If you wish, you can change some colors for different things - such as color for selected text; found search terms.  I had to edit one to have more contrast than many of the uploaded themes had (for certain elements).

The hardest part with that, was figuring out the exact "rules" for various styling options.  Many rules for different elements work differently.  Most / all is in the "styling" section of the Geany manual: https://www.geany.org/manual/current/index.html#styling-section

I went to the trouble of copying those rules at the top of a theme I started with, then modified. Like:

> #current_line= The style for coloring the background of the current
> line. ONLY the 2ND and 3RD arguments are interpreted. The second
> argument is the background color. Use the third argument to enable or
> disable background highlighting for the current line (has to be
> true/false).  Example: current_line=0x0;0xe5e5e5;true;false
> #marker_line= Style for a highlighted line (e.g using Goto line or
> goto symbol, (or clicking a search result in msg pane). The foreground
> color (1st argument) only used when "Show Markers Margin" - is enabled
> in View menu. **ONLY** the 1st & 2nd arguments are interpreted.  Ex:
> =#ffff00;#FDE5E9;true;true
I found it easier to have all the rules (sometimes examples) in the
color scheme I was editing vs. going back / forth to the manual's
styling section.

The sometimes oddly worded (to me) rules, like "only the 1st & 2nd
arguments are interpreted," though you often see (in themes) 4 values
entered when only 2 are used.
You had to remember which rule interpreted values 1 & 2, or 1 & 3, or
only 4th value, etc.

So, I have a very black background & common elements with good
contrast.  I haven't looked at available themes / color schemes in a
long time, but back when, most color schemes had several elements with
little contrast.  Took one I generally liked & edited to my needs.

I guess it depends on how young your eyes are & how good of sight -
looking at a computer screen.  If you want, I could send or post
somewhere, all the styling rules - many re-worded or added explanation,
as some originals didn't make sense to me back then. If I worked w/ the
syntax styling rules all the time, I'm sure they would've made better sense.

> You can tweak it using GTK+ CSS. In a file at
> `~/.config/geany/geany.css` (Tools->Configuration Files->geany.css)
Is that right?  I don't remember seeing a "geany.css" under /.config.
I must've removed it. I looked now & see that file (BU) in Documents. 
Maybe because the 3rd party custom Mint theme covered Geany, so there
was no need for the geany.css.

More information about the Users mailing list