From: Michael Tremer Date: Fri, 3 Oct 2025 10:21:13 +0000 (+0000) Subject: colors: Add macro to make colors transparent X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c11d2d3b5523e421e5c3d3634dbde36261f6f75;p=telemetry.git colors: Add macro to make colors transparent Signed-off-by: Michael Tremer --- 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 */