dunst-project / dunst

Lightweight and customizable notification daemon
https://dunst-project.org
Other
4.42k stars 338 forks source link

Feature: Color gradient #1273

Open bynect opened 5 months ago

bynect commented 5 months ago

Hello, I was fiddling around and implementing a color gradient feature. It is still unfinished though and I would like to hear your ideas.

I wanted to add the option to have a gradient to the background and progress bar. Basically we have a list a colors that are put in a cairo_pattern_t. If there is only one color the behavior is the same as it is now.

For the syntax of I was thinking of one of the following

# separate
background = whatever # ignored
background_gradient = 0xffaa22,0xfaf2a

or

background = red, green, blue

Example: img-1706811365

fwsmit commented 4 months ago

I'm just seeing this now. If you want me to react, you can tag me. The gradient looks cool. Currently the color of the progress bar is called the highlight color. You can expand that one to also accept a list.

bynect commented 4 months ago

I'm just seeing this now. If you want me to react, you can tag me. The gradient looks cool. Currently the color of the progress bar is called the highlight color. You can expand that one to also accept a list.

Ok so I'll go with the list ruote 👍

I'll present a pr when I'm done