dylanaraps / pywal

🎨 Generate and change color-schemes on the fly.
MIT License
8.34k stars 325 forks source link

[Feature] Gives the luminence of the theme as an argument to the -o script #717

Open Absobel opened 11 months ago

Absobel commented 11 months ago

I want to be able to set certain theme for my application according to whether my pywal theme is light or dark because in certain cases I don't want to use pywal colors but actual theme that exists for my apps

I may be able to check the code and make a pr myself but I'll just make an issue for now

holmescharles commented 5 months ago

I'm trying to work around this issue too. The best idea I have so far is to compare the foreground and background colors in the "-o" script and ask which is brighter. If foreground (background) is brighter, then assume its dark (light) mode.

Any other work arounds?

Absobel commented 5 months ago

I ended up computing the luminence myself from the colors given by pywal in a bash script. I lost it however (my computer broke) so I don't remember how I did it exactly