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

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
d-pupp
Posts: 335
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 188 times
Been thanked: 52 times

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

Post 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

Last edited by bigpup on Sun Nov 05, 2023 12:59 am, edited 1 time in total.
Reason: added solved
User avatar
gychang
Posts: 591
Joined: Fri Aug 28, 2020 4:51 pm
Location: San Diego, CA
Has thanked: 206 times
Been thanked: 64 times

Re: eye strain

Post 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

======

Puppy Bytes, utube videos
https://www.youtube.com/channel/UCg-DUU ... u62_iqR-MA

======

geo_c
Posts: 2879
Joined: Fri Jul 31, 2020 3:37 am
Has thanked: 2201 times
Been thanked: 876 times

Re: eye strain

Post 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.

geo_c
Old School Hipster, and Such

User avatar
MochiMoppel
Posts: 1233
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 437 times

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

Post 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 822 times
User avatar
gychang
Posts: 591
Joined: Fri Aug 28, 2020 4:51 pm
Location: San Diego, CA
Has thanked: 206 times
Been thanked: 64 times

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

Post by gychang »

@MochiMoppel very useful, thanks. :thumbup2:

======

Puppy Bytes, utube videos
https://www.youtube.com/channel/UCg-DUU ... u62_iqR-MA

======

Amol
Posts: 127
Joined: Wed Oct 26, 2022 10:35 pm
Has thanked: 25 times
Been thanked: 80 times

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

Post by Amol »

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

tosim
Posts: 480
Joined: Thu Jul 23, 2020 1:13 pm
Has thanked: 929 times
Been thanked: 57 times

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

Post by tosim »

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

02Nov2023.jpg
02Nov2023.jpg (28.11 KiB) Viewed 752 times
Dry Falls
Posts: 80
Joined: Thu Jul 29, 2021 7:40 pm
Has thanked: 22 times
Been thanked: 43 times

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

Post 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.

Attachments
geany-schemes-1.38-noarch-1JL64.tgz
(16.87 KiB) Downloaded 35 times
d-pupp
Posts: 335
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 188 times
Been thanked: 52 times

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

Post 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.

Last edited by d-pupp on Sat Nov 04, 2023 8:23 pm, edited 1 time in total.
d-pupp
Posts: 335
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 188 times
Been thanked: 52 times

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

Post by d-pupp »

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

User avatar
MochiMoppel
Posts: 1233
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 437 times

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

Post 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:

Post Reply

Return to “Users”