pywal icon indicating copy to clipboard operation
pywal copied to clipboard

More colorful background for light colorschemes

Open thy6 opened this issue 6 years ago • 2 comments

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

thy6 avatar Aug 21 '18 05:08 thy6

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.

ghost avatar Dec 13 '18 06:12 ghost

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.

Aqa-Ib avatar Nov 24 '23 19:11 Aqa-Ib