From 702abc7a031cb95d8b4ab8599e2df5f227631c5b Mon Sep 17 00:00:00 2001 From: fwsmit Date: Wed, 5 May 2021 13:03:16 +0200 Subject: [PATCH] dbus: Add a hint for changing the highlight color --- src/dbus.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dbus.c b/src/dbus.c index 199f77d..29b5feb 100644 --- a/src/dbus.c +++ b/src/dbus.c @@ -386,6 +386,11 @@ static struct notification *dbus_message_to_notification(const gchar *sender, GV g_variant_unref(dict_value); } + if ((dict_value = g_variant_lookup_value(hints, "hlcolor", G_VARIANT_TYPE_STRING))) { + n->colors.highlight = g_variant_dup_string(dict_value, NULL); + g_variant_unref(dict_value); + } + if ((dict_value = g_variant_lookup_value(hints, "category", G_VARIANT_TYPE_STRING))) { n->category = g_variant_dup_string(dict_value, NULL); g_variant_unref(dict_value);