[Feature] Ability to set random for colour codes #791
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pre-requisites
Wanted behavior
From following the PR for a Game of Life background, I thought it might be cool if there was a
randomfunction we could use instead of a colour code. Effectively allowing any part of the UI or background to pull a random colour from a list.I'm guessing with the way things work, these colour codes would need to be generated and selected once Ly has started ready for the next reboot or restart of Ly.
The user could list colours under a
Random colourssection in the config, then each UI element would randomly pull a colour from this list.I don't think there would be an issue if it were to pull duplicate colours as the user can customise everything and specify important UI elements to make them readable, or just go nuts.
@tripplehelix Sorry for the late response, but I'm not sure this is a good idea.
So to summarise; list of colours in the config which are configurable, are linked to numbers, which I'm sure zig can randomise. Only applied to background animations and background colour?
Honestly, I think implementing this feature with the current configuration file format is not a good idea. But with something like a shell script, this'd be much easier to implement (technically speaking, Ly wouldn't have to implement the feature then, since the randomisation could be done inside the shell script itself).