You are not logged in.

#1 2024-01-10 07:42:39

JasonMehmel
Member
Registered: 2015-10-06
Posts: 186

[SOLVED] Getting custom colour themes for specific programs?

I've decided to get into designing text adventures and started playing with Inform7 recently.

I've got it installed on my machine, and it runs, yay! (Though weirdly at 25% cpu, not sure why.)

I'm using a dark theme, as all good BunsenLabs pros would! But the dark theme is inherited by the text adventure interpreter in the Inform7 IDE!

This means that my text entry into the part of the IDE where I test the game is dark blue letters on dark grey background.

I can change the color theme settings for the IDE and change it back when I'm done, but there's got to be a better way than that!

I did find this, I know we're not KDE, but I wonder if any of the same ideas might apply? https://www.reddit.com/r/kde/comments/l … re_system/

and

https://www.reddit.com/r/kde/comments/l … a/gmni00o/

I've tried what it suggests here (making a config folder for the theme I want, applying those themes, copying the relevant folders,) and trying to execute the command for the program passing on those theme options, but haven't got any joy so far.

Is there a better or different way to get this done on BunsenLabs?

Last edited by JasonMehmel (2024-01-10 17:42:54)


Fortune favours the bold.
ThinkPad T15 Gen 2i

Offline

#2 2024-01-10 09:15:27

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,737

Re: [SOLVED] Getting custom colour themes for specific programs?

Assuming this ide is gtk3, then you can try (from terminal)

GTK_THEME=adwaita inform7

Where 'adwaita' is the name of the theme you want to use.
Looking at this thread: https://askubuntu.com/questions/78088/c … applicatio

Offline

#3 2024-01-10 16:00:10

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,032
Website

Re: [SOLVED] Getting custom colour themes for specific programs?

@JasonM, are you using the latest version 10.1.2?

https://github.com/ganelson/inform/releases

I was able to install the amd64.deb via dpkg on my Ubuntu 23.10 rig (I don't have a Debian setup at the moment). dpkg installed it with errors, 'sudo apt -f install' brought in missing dependencies.

My current Yaru-dark theme was adopted just fine, and I'm not seeing any CPU spike (but I'm just opening the program, not running anything).

Here are the dependencies it needed...

  libgoocanvas-2.0-9            2.0.4-1build1                                       333 KB  
  libgoocanvas-2.0-common       2.0.4-1build1                                       1.8 MB  
  libjavascriptcoregtk-4.0-18   2.42.3-0ubuntu0.23.10.1                            29.1 MB  
  libwebkit2gtk-4.0-37          2.42.3-0ubuntu0.23.10.1                            73.9 MB

Available in bullseye and up...
https://packages.debian.org/bullseye/li … gtk-4.0-37
https://packages.debian.org/buster/libj … gtk-4.0-18
https://packages.debian.org/bullseye/li … 2.0-common
https://packages.debian.org/bullseye/libgoocanvas-2.0-9


No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Offline

#4 2024-01-10 17:32:01

JasonMehmel
Member
Registered: 2015-10-06
Posts: 186

Re: [SOLVED] Getting custom colour themes for specific programs?

@hhh, I did install it from the .deb file in that release!

Regarding the CPU usage, I did see that there's a lot of webkit instances being run, and asking on the intfiction.org forums someone mentioned that it might have to do with the documentation being rendered in HTML inside the IDE.

(Which I still don't totally understand, unless it's constantly reloading them, because they're static pages without a lot of fancy design. It probably wouldn't generate so many cycles if I was browsing local HTML files!)

EDIT: FACEPALM I should have considered this: The CPU was higher because I was also compiling and running/playing the text adventure inside the IDE.

Which I was doing because I was testing the inherited theme from the system, as soon as I started the IDE.

When I stop the embedded interpreter, the CPU usage drops to what I would otherwise expect... and I SHOULD have expected that it would run a little hotter while essentially emulating an interpreter inside an IDE!

Last edited by JasonMehmel (2024-01-10 17:40:16)


Fortune favours the bold.
ThinkPad T15 Gen 2i

Offline

#5 2024-01-10 17:42:22

JasonMehmel
Member
Registered: 2015-10-06
Posts: 186

Re: [SOLVED] Getting custom colour themes for specific programs?

brontosaurusrex wrote:

Assuming this ide is gtk3, then you can try (from terminal)

GTK_THEME=adwaita inform7

Where 'adwaita' is the name of the theme you want to use.
Looking at this thread: https://askubuntu.com/questions/78088/c … applicatio

This worked perfectly! (The command was inform7-ide, but it worked! And I'm guessing it would work for other programs where you'd want the same effect!)

I built a single line shell script to run the command with that addition, now I just need to figure out how to get it to run from anywhere in the terminal!


Fortune favours the bold.
ThinkPad T15 Gen 2i

Offline

#6 2024-01-10 19:01:55

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,737

Re: [SOLVED] Getting custom colour themes for specific programs?

^ Usually you just copy script somewhere on the $PATH (see 'echo $PATH'), where your user enabled path should be in $HOME/bin (expands to /home/username/bin).

p.s. to test if true, something like

echo "${PATH//:/\n}" | grep "$HOME/bin"

Offline

#7 2024-01-16 03:42:44

JasonMehmel
Member
Registered: 2015-10-06
Posts: 186

Re: [SOLVED] Getting custom colour themes for specific programs?

Thank you for this as well!


Fortune favours the bold.
ThinkPad T15 Gen 2i

Offline

Board footer

Powered by FluxBB