From e58c52e5e9669e9a98d2110739e082fbbd636cd0 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 2 Oct 2025 10:10:01 +0000 Subject: [PATCH] Import some colours from the Python implementation Signed-off-by: Michael Tremer --- Makefile.am | 1 + src/daemon/colors.h | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 src/daemon/colors.h diff --git a/Makefile.am b/Makefile.am index 199607b..04a6853 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 index 0000000..99dde1b --- /dev/null +++ b/src/daemon/colors.h @@ -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 . # +# # +#############################################################################*/ + +#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 */ -- 2.47.3