From d0750aa22d227e170f18e18478b031c078764c65 Mon Sep 17 00:00:00 2001 From: arovak Date: Fri, 2 Apr 2021 23:38:53 +0200 Subject: [PATCH] fix http template --- src/sys/svc/hasp_http.cpp | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/sys/svc/hasp_http.cpp b/src/sys/svc/hasp_http.cpp index f1425a14..a2fa98a3 100644 --- a/src/sys/svc/hasp_http.cpp +++ b/src/sys/svc/hasp_http.cpp @@ -28,15 +28,31 @@ #ifdef USE_CONFIG_OVERRIDE #include "user_config_override.h" -#else +#endif + //default theme +#ifndef D_HTTP_COLOR_TEXT #define D_HTTP_COLOR_TEXT "#000" // Global text color - Black +#endif +#ifndef D_HTTP_COLOR_BACKGROUND #define D_HTTP_COLOR_BACKGROUND "#fff" // Global background color - White +#endif +#ifndef D_HTTP_COLOR_INPUT_TEXT #define D_HTTP_COLOR_INPUT_TEXT "#000" // Input text color - Black +#endif +#ifndef D_HTTP_COLOR_INPUT #define D_HTTP_COLOR_INPUT "#fff" // Input background color - White +#endif +#ifndef D_HTTP_COLOR_INPUT_WARNING #define D_HTTP_COLOR_INPUT_WARNING "#f00" // Input warning border color - Red +#endif +#ifndef D_HTTP_COLOR_BUTTON_TEXT #define D_HTTP_COLOR_BUTTON_TEXT "#fff" // Button text color - White +#endif +#ifndef D_HTTP_COLOR_BUTTON #define D_HTTP_COLOR_BUTTON "#1fa3ec" // Button color - Vivid blue +#endif +#ifndef D_HTTP_COLOR_BUTTON_RESET #define D_HTTP_COLOR_BUTTON_RESET "#f00" // Restart/Reset button color - red #endif @@ -1625,7 +1641,7 @@ void webHandleDebugConfig() httpMessage += F("'>