From 0d6e801595cb306927abb4a54d4dbc5e01de6755 Mon Sep 17 00:00:00 2001 From: R4SAS Date: Sun, 9 Jan 2022 20:49:27 +0300 Subject: [PATCH] [webconsole] change dark style colors Signed-off-by: R4SAS --- contrib/webconsole/style.css | 14 +++++---- daemon/HTTPServerResources.h | 60 ++++++++++++++++++------------------ 2 files changed, 38 insertions(+), 36 deletions(-) diff --git a/contrib/webconsole/style.css b/contrib/webconsole/style.css index 3edfe470..e6ddd6ad 100644 --- a/contrib/webconsole/style.css +++ b/contrib/webconsole/style.css @@ -15,16 +15,18 @@ */ :root { - --main-bg-color: #FAFAFA; + --main-bg-color: #fafafa; --main-text-color: #103456; - --main-link-color: #894C84; + --main-link-color: #894c84; + --main-link-hover-color: #fafafa; } @media (prefers-color-scheme: dark) { :root { - --main-bg-color: #181818; - --main-text-color: #156A3D; - --main-link-color: #894C84; + --main-bg-color: #242424; + --main-text-color: #17ab5c; + --main-link-color: #bf64b7; + --main-link-hover-color: #000000; } } @@ -42,7 +44,7 @@ a, .slide label { } a:hover, .slide label:hover, button[type=submit]:hover { - color: #FAFAFA; + color: var(--main-link-hover-color); background: var(--main-link-color); } diff --git a/daemon/HTTPServerResources.h b/daemon/HTTPServerResources.h index d821aa2a..4e4eac4f 100644 --- a/daemon/HTTPServerResources.h +++ b/daemon/HTTPServerResources.h @@ -34,38 +34,38 @@ namespace http // bundled style sheet const std::string internalCSS = "