pywal icon indicating copy to clipboard operation
pywal copied to clipboard

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

Open Absobel opened this issue 1 year ago • 2 comments

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

Absobel avatar Oct 20 '23 15:10 Absobel

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?

holmescharles avatar Apr 15 '24 22:04 holmescharles

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

Absobel avatar Apr 20 '24 15:04 Absobel