Hi,
I am making changes only to local geany.css.
I wanted to change background colour to statusbar and sidebar - I guess
these come from the desktop theme.
But but surely there must be a list of Geany selectors for all their panes.
Looking in usr/share/themes/TraditionalOK I have found gtk-3.0, and
there are several references to statusbar.
THere are also a huge number of references to sidebar, which will take
quite a while to figure out.
The question is: Is gtk-3.0 the right place to be looking for Geany sidebar?
Geoff
On 06/05/2025 16:35, Little Girl via Users wrote:
Hey there,
Geoff Kaniuk via Users wrote:
Thank you Little Girl for your very useful 2 posts - locate is very
useful command that I had not spotted!
I love that one. You can also use the find command, but I can never
remember the syntax for it, so I use the locate command. It does
suffer from one gotcha, though. The locate database is refreshed on
reboot (maybe also on log-in when switching accounts). If you've made
changes recently and haven't rebooted (or logged in), then locate
won't find them unless you do the sudo updatedb command first to
refresh the database. As long as you remember that, it's a great
command to have in your toolbox.
My source-installed geany 1.36 had two geany.css files, one in
geany-main/geany-1.36/data/geany.css - the main system one
geany-main/geany-1.36/doc/geany.css - clearly one meant for html
My 1.38 install was via apt install, and funnily enough locate does
not find the one in .config/geany/geany.css
Did you do the sudo updatedb command first? Also, your copy of Geany
might use the ~/.config/geany/geany.css file if it exists, so you
could try creating it, putting a CSS rule into it, and then loading
up Geany to see what happens. If it doesn't work, you can always
remove what you created.
The entries in the local geany.css have the form like the last one
for example:
/* red "Terminal" label when terminal dirty */
#geany-terminal-dirty {
color: #ff0000;
}
Mine contains a rather cryptic notebook selector in it that makes the
active tab visually easier to distinguish (absolutely necessary in
KDE), and thanks to this thread, it now also contains this new
rule:
statusbar {
font-weight: bold;
}
I have tried your version and to my surprise it worked!
But only after a complete reload (Tools-->Reload Configuration was
ignored)
Yep. Any time you change the CSS for any program, you have to reload
the program to see the changes.
So it seems that the #geany- prefix needs to be removed when adding
new entries not already in the local geany.css
In that case, yes, but it may be required for some selectors.
Much progress!
That's good to hear. I've been following this thread and I tried to
figure out how to change the background color of the sidebar, but
haven't had any luck. A lot of Google searches have yet to turn up
anything beyond a small handful of selectors that can be used with
Geany and none of them are for the sidebar. A complete list of Geany
selectors would be nice.
_______________________________________________
Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]