Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

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

Open
Absobel opened this issue Oct 20, 2023 · 2 comments
Open

Comments

@Absobel
Copy link

Absobel commented Oct 20, 2023

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
Copy link

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
Copy link
Author

Absobel commented Apr 20, 2024

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants