Accent colors and other related things could be loaded on startup as environment variables, so apps can just check a file in /run
(or however environment variables are handled properly), but a fallback checking the config file will be necessary for compatibility. Also, an option to switch Accent colors on a timer like RGB motherboards and keybords.
#137
Labels
enhancement
New feature or request
I just think loading the Accent and theme (background) color names into RAM on startup as a file and/or environment variable will make it easier to later have apps update that color, both for testing and for if people want to override something with their own script without touching the config files. This may present an issue for the lockscreen though, but maybe that can just load from the config file, and the script can load things into RAM properly on login or something. Not accessing the storage for this may help some apps load slightly faster, but it might not help much other than being simpler for testing or if the user wants their accent color to change between every color of the rainbow (or colors in set themes that the user can create or will be shipped as choices, but maybe that should be in an Extras package when everything is split up) without constantly writing to their storage. Actually, that's a really useful idea, then on top of that, add a delay setting that lets how often it changes be set (with a warning message that pops up if an amount that's so fast it could induce a seizure is chosen by accident or on purpose). To help with this, there could be a list of colors that the user wants/doesn't want to have it switch to, and a way to add more than one custom color to the list (also the main list, since someone may want to keep more than the last 5 colors that were set). There should also be a way to fade between colors like many RGB motherboards and keyboards instead of instantly switching between them, if someone wants that feature.
Loading from the config file will still have to be done if the environment variables aren't set, so apps can be run outside Retiled (just fancier stuff won't be supported at all or as easily, unless the script is manually run but with the caveat that it could break stuff in an environment it's not intended for).
The text was updated successfully, but these errors were encountered: