Gogh-Co / Gogh

Gogh is a collection of color schemes for various terminal emulators, including Gnome Terminal, Pantheon Terminal, Tilix, and XFCE4 Terminal also compatible with iTerm on macOS.
https://gogh-co.github.io/Gogh/
MIT License
9.37k stars 605 forks source link

Add GOGH_USE_NEW_THEME flag for immediate theme switching #444

Closed stablestud closed 5 months ago

stablestud commented 5 months ago

This commit builds upon #443 (it must be merged first)

Add GOGH_USE_NEW_THEME to directly use the new theme in the terminal (if supported by terminal) Actual effect will differ between terminals, for example in xfce4-terminal when using the flag the theme is immediately changed.

Currently only xfce4-terminal is supported. Tilix should theoretically also be supported but the current implementation of applying it as the current theme didn't seem to work for me.

Nevertheless this new flag allows future terminals to also switch directly the theme if implemented.

This closes #440

Mgldvd commented 5 months ago

A lot of work, thank you very much.