diff --git a/daemon/HTTPServer.cpp b/daemon/HTTPServer.cpp index 58166e56..618c4887 100644 --- a/daemon/HTTPServer.cpp +++ b/daemon/HTTPServer.cpp @@ -167,6 +167,11 @@ namespace http { { std::string webroot; i2p::config::GetOption("http.webroot", webroot); + std::string theme; i2p::config::GetOption("http.theme", theme); + if(theme != "light" && theme != "black" ) theme = "light"; + + + // Page language std::string currLang = i2p::client::context.GetLanguage ()->GetLanguage(); // get current used language auto it = i2p::i18n::languages.find(currLang); @@ -184,6 +189,17 @@ namespace http { " \r\n" " " << tr(/* tr: Webconsole page title */ "Purple I2P Webconsole") << "\r\n"; GetStyles(s); + if (theme == "black") + { + s << + ""; + + } s << "\r\n" "\r\n" diff --git a/libi2pd/Config.cpp b/libi2pd/Config.cpp index 50f4c8a5..70b30f6b 100644 --- a/libi2pd/Config.cpp +++ b/libi2pd/Config.cpp @@ -97,6 +97,7 @@ namespace config { ("http.webroot", value()->default_value("/"), "WebUI root path (default: / )") ("http.lang", value()->default_value("english"), "WebUI language (default: english )") ("http.showTotalTCSR", value()->default_value(false), "Show additional value with total TCSR since router's start (default: false)") + ("http.theme", value()->default_value("light"), "Theme for http web console") ; options_description httpproxy("HTTP Proxy options");