From 7c11d2d3b5523e421e5c3d3634dbde36261f6f75 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 3 Oct 2025 10:21:13 +0000 Subject: [PATCH] colors: Add macro to make colors transparent Signed-off-by: Michael Tremer --- src/daemon/colors.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/daemon/colors.h b/src/daemon/colors.h index 83d8a10..4749ce4 100644 --- a/src/daemon/colors.h +++ b/src/daemon/colors.h @@ -33,4 +33,13 @@ #define COLOR_BLUE "#2196f3" #define COLOR_LIGHT_BLUE "#03a9f4" +// Macro to make colours transparent +#define COLOR_WITH_ALPHA(base, alpha) base alpha + +#define OPACITY_100P "ff" +#define OPACITY_75P "c0" +#define OPACITY_50P "80" +#define OPACITY_25P "40" +#define OPACITY_0P "00" + #endif /* COLLECTY_COLORS_H */ -- 2.47.3