Page 1 of 1

How to change the background color of Rox and Geany? (eye strain)solved

Posted: Fri Nov 03, 2023 8:44 pm
by d-pupp

I am looking for advice to help with eye strain.

How do I change the background color of rox and geany?
I have tried editing the .gtkrc-2.0 but it doesn't seem to be working

My biggest issue in on the web all those bright white backgrounds...
I see some options like noSquint and greese monkey.
Any recommendations

I am using the wayland Vanilladpup 10.0.29
Firefox 102.15.1esr


Re: eye strain

Posted: Fri Nov 03, 2023 8:57 pm
by gychang

background rox color change:
to make font larger:
geany color: look here, I like dark. https://www.geany.org/download/themes/
:D :D


Re: eye strain

Posted: Fri Nov 03, 2023 10:21 pm
by geo_c
d-pupp wrote: Fri Nov 03, 2023 8:44 pm

My biggest issue in on the web all those bright white backgrounds...
I see some options like noSquint and greese monkey.
Any recommendations

I am using the wayland Vanilladpup 10.0.29
Firefox 102.15.1esr

There's a good extension for Firefox called Color Changer which is a lightweight and effective way to change to the background, text, and link colors. Also it has an easy checkbox to turn on and off per website as you go.


Re: How to change the background color of Rox and Geany? (eye strain)

Posted: Sat Nov 04, 2023 3:26 am
by MochiMoppel

Turning Geany into a more eye friendly experience works fo me by applying the "Invert syntax highlighting colors" option in the Preferences dialog.
The background of the editor canvas turns to black and the foreground color of plain text turns to white.
When syntax highlighting comes into play, the default colors may need adjustment. For example OOTB the color of quoted strings of a shell script are set to a pretty light yellowish color, which, when inverted, turns into dark blue...not really suitable on a black background. I therefore adapted colors in the file /root/.config/geany/filedefs/filetypes.sh to values that look OK in "normal" and inverted color settings.

geany_inverted.jpg
geany_inverted.jpg (127.51 KiB) Viewed 654 times

Re: How to change the background color of Rox and Geany? (eye strain)

Posted: Sat Nov 04, 2023 12:11 pm
by gychang

@MochiMoppel very useful, thanks. :thumbup2:


Re: How to change the background color of Rox and Geany? (eye strain)

Posted: Sat Nov 04, 2023 1:26 pm
by Amol

Thank you very much MochiMoppel for this tip with geany.
Amol.


Re: How to change the background color of Rox and Geany? (eye strain)

Posted: Sat Nov 04, 2023 4:48 pm
by tosim

@MochiMoppel I thought you'd like to see this screenshot I took.

02Nov2023.jpg
02Nov2023.jpg (28.11 KiB) Viewed 584 times

Re: How to change the background color of Rox and Geany? (eye strain)

Posted: Sat Nov 04, 2023 5:36 pm
by Dry Falls

Attached is geany-schemes-1.38-noarch-1JL64.tgz collected over the years from the old forum. Sorry, no link. This may require geany-plugins (https://plugins.geany.org/) which should be in your repo or available with pet-get/ppm.


Re: How to change the background color of Rox and Geany? (eye strain)

Posted: Sat Nov 04, 2023 6:28 pm
by d-pupp

Many Thanks :thumbup2:

@gychang Thanks for the video I found it some time ago and tried but no success. However I noticed this line
include "/usr/share/themes/Numix/gtk-2.0/gtkrc" in the /root/.gtkrc-2.0
I found that is the theme controlling rox. So I changed the background color and restarted the graphic server. Now I have a light grey background. Thanks

@MochiMoppel and @Dry Falls After I posted this I was on the geany site looking at themes. I saw an item on using Python to change themes and had seen something I think on super user about how geany themes are setup. Using that info and looking around in geany I realized it already had an alternate theme. Turns out they are real simple to edit. Thanks

It is located in /usr/share/geany/colorschemes/alt.conf

I made a copy and started playing around
To change the background color edit this line

Code: Select all

default=0x000000;0xDEDEDE;false;false

Here is what it means
[category] = [foreground color]; [background color]; [is Bold]; [is Italic]
Use can use the color picker just remove the #
The original code

Code: Select all

default=0x000000;0xFFFFFF;false;false

I changed the 0xFFFFFF which is white to 0xDEDEDE which is light grey

I also changed the highlights colors to match the original theme. IE comments red. key words blue. etc.
I can post it if anyone is interested.


Re: How to change the background color of Rox and Geany? (eye strain)

Posted: Sat Nov 04, 2023 8:19 pm
by d-pupp

@geo_c I just added the Color changer extension
Works great thanks :thumbup:


Re: How to change the background color of Rox and Geany? (eye strain)

Posted: Sun Nov 05, 2023 4:19 am
by MochiMoppel
tosim wrote: Sat Nov 04, 2023 4:48 pm

@MochiMoppel I thought you'd like to see this screenshot I took.
Image

A Japanese proverb comes to mind: "e ni kaita mochi". Literally "Mochi painted on a picture".
Means: Very nice to look at but useless because you can't eat them. :lol: