]> git.ipfire.org Git - collecty.git/commitdiff
colors: Add macro to make colors transparent
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 3 Oct 2025 10:21:13 +0000 (10:21 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 3 Oct 2025 10:21:13 +0000 (10:21 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/daemon/colors.h

index 83d8a1011e6a237b90f58f6556b6910cb710cd3b..4749ce4005e6bed151c429561f848dbceace5c9d 100644 (file)
 #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 */