From be4f1bd5cd819f174477e1f6240b521d32ac31e1 Mon Sep 17 00:00:00 2001 From: bynect <68197565+bynect@users.noreply.github.com> Date: Sat, 17 Aug 2024 23:16:12 +0200 Subject: [PATCH] Add docs --- docs/dunst.5.pod | 3 +++ test/option_parser.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/docs/dunst.5.pod b/docs/dunst.5.pod index 9dbb89ee2..02ca6e6b0 100644 --- a/docs/dunst.5.pod +++ b/docs/dunst.5.pod @@ -913,6 +913,9 @@ The foreground color of the notification. See COLORS for possible values. The highlight color of the notification. This color is used for coloring the progress bar. See COLORS for possible values. +You can also set additional color values (as a comma-separated list) +to define a linear gradient spanning all the length of the progress bar. + =item C Equivalent to the C setting. diff --git a/test/option_parser.c b/test/option_parser.c index 2ab3dd79c..9c85e3998 100644 --- a/test/option_parser.c +++ b/test/option_parser.c @@ -782,6 +782,9 @@ TEST test_string_to_gradient(void) for (int k = 0; k < grad->length; k++) ASSERTm(buf, COLOR_SAME(grad->colors[k], results[i]->colors[k])); + + gradient_free(grad); + grad = NULL; } for (int i = 0; i < G_N_ELEMENTS(results); i++)