]> git.ipfire.org Git - collecty.git/commitdiff
Import some colours from the Python implementation
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 2 Oct 2025 10:10:01 +0000 (10:10 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 2 Oct 2025 10:10:01 +0000 (10:10 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/daemon/colors.h [new file with mode: 0644]

index 199607b65664666933c677c9846007083440d11c..04a685367e9f47b06bc58124984d13476bcdc458 100644 (file)
@@ -94,6 +94,7 @@ dist_collectyd_SOURCES = \
        src/daemon/args.h \
        src/daemon/bus.c \
        src/daemon/bus.h \
+       src/daemon/colors.h \
        src/daemon/ctx.c \
        src/daemon/ctx.h \
        src/daemon/daemon.c \
diff --git a/src/daemon/colors.h b/src/daemon/colors.h
new file mode 100644 (file)
index 0000000..99dde1b
--- /dev/null
@@ -0,0 +1,35 @@
+/*#############################################################################
+#                                                                             #
+# collecty - A system statistics collection daemon for IPFire                 #
+# Copyright (C) 2025 IPFire Development Team                                  #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+#############################################################################*/
+
+#ifndef COLLECTY_COLORS_H
+#define COLLECTY_COLORS_H
+
+#define COLOR_BLACK                    "#ffffff"
+#define COLOR_WHITE                    "#000000"
+#define COLOR_RED                      "#f44336"
+#define COLOR_LIGHT_RED                "#cc0033"
+#define COLOR_YELLOW           "#ffeb3b"
+#define COLOR_LIGHT_YELLOW     "#ffff66"
+#define COLOR_GREEN                    "#4caf50"
+#define COLOR_LIGHT_GREEN      "#8bc34a"
+#define COLOR_BLUE                     "#2196f3"
+#define COLOR_LIGHT_BLUE       "#03a9f4"
+
+#endif /* COLLECTY_COLORS_H */