-
-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stylix: add darker
and even-darker
polarities
#694
base: master
Are you sure you want to change the base?
Conversation
Cc: @danth
Thanks for delving into the code and submitting this patch. However, I am unsure about adding Currently, some Stylix modules use the Lines 25 to 35 in 4d87b96
Although, this is not how
Using
However, the proposed stylix/palette-generator/Stylix/Palette.hs Lines 96 to 100 in ff7e1e7
Instead, we could further generalize stylix/palette-generator/Stylix/Palette.hs Lines 68 to 72 in 4d87b96
Considering the current Roadmap, I am unsure how Note that completing the following milestone may involve rewriting our in-house palette generator (
|
Okay! That makes sense! Should I write an Thank you very much! |
Let's wait on @danth's opinion first. |
Sure! |
I added options that do that, they go from 0.0 to 1.0 without clipping any colors but if they are pushed beyond that range they clip colors without erroring out as a feature. |
any updates? |
I'm all for replacing it with an existing tool, if we can find one. If not, moving the palette generator to a separate repository and rewriting it in a more well known language would be ideal. There are probably better algorithms we could be using, or definitely more optimized implementations of the current approach (both in terms of generation performance, and the quality of results). Effectively, we build our own general purpose tool, and then have Stylix merely use it rather than the tool being embedded directly into the project. Considering that it's already possible to override the theme with colors generated from whatever tool you like, I doubt extending the existing palette generator implementation is worthwhile. |
I did do just that, I added a few lines to the existing palette generator to get it to work with a scaling factor. Wouldn't that work in the meantime? Using pywal during the build step is also a possibility if we need some preexisting implementation. |
Agreed.
Agreed. Last time I researched this, I found several tools that apparently extract the colors from an image. However, I did not inspect them thoroughly enough to make sure they are actually doing what we need.
Replacing our in-house palette generator in with a general purpose tool and resolving the following task would generally solve this problem: Consequently, I am unsure whether we should extend our current palette generator:
|
So it would be better to focus on integrating another palette generator instead? |
Yes, but it should be compatible with the requirements of the Roadmap. I will look into this once we get to this stage of the Roadmap. |
Alright! Thank you very much! |
The default dark polarity is a bit too light and doesn't look good on some LCD displays for that reason.
Therefore
darker
andeven-darker
polarities could be a nice addition.Thank you!