dylanaraps / pywal

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

More colorful background for light colorschemes #291

Open thy6 opened 6 years ago

thy6 commented 6 years ago

I find that the background colors in light colorschemes are always a very bright shade of yellowish white, whereas I prefer to have a light pastel shade for my light colorschemes.

Earlier I solved this by using gpick to pick a shade I like from my wallpaper and passing that colorcode as an argument to pywal with -b "#ffffff", but that's too much work. A better solution I've found is to edit the file ~/.local/lib/python3.6/site-packages/pywal/backends/wal.py, on line 58 from

raw_colors[0] = util.lighten_color(colors[-1], 0.85)

to

raw_colors[0] = util.lighten_color(raw_colors[14], 0.70)

Here 14 is the color number of the generated palette (the second last color) and .70 is the amount of brightness applied to it (to make it a good background for other colors). So you can change 14 to any other color you like and .70 to be closer to zero if you want it darker or closer to one if you want it lighter, but this setting works for me.

Pywal version 3.1.0

ghost commented 5 years ago

Yes, the regular (dark) color presets are varied and colorful. The light color presets always applies the same blinding white background color.

As someone who uses light themes often, this is an matter of great importance. Thank you for bringing this to attention.

Aqa-Ib commented 12 months ago

Thanks. Pywal light background color needs to be improved. raw_colors[0] = util.lighten_color(colors[9], 0.5) did it for me. Remember to remove the cache at ~/.cache/wal/schemes to be able to see the new changes.