theme: create hover button fallbacks

...by copying the non-hover variant and adding a transparent overlay.

Co-authored-by: @johanmalm
This commit is contained in:
Consolatis 2023-12-17 02:16:49 +01:00
parent d207e97992
commit 27de4e6398
6 changed files with 150 additions and 0 deletions

View file

@ -6,6 +6,15 @@
#include "common/mem.h"
#include "common/string-helpers.h"
void
trim_last_field(char *buf, char delim)
{
char *p = strrchr(buf, delim);
if (p) {
*p = '\0';
}
}
static void
rtrim(char **s)
{