diff --git a/Changelog b/Changelog index 5d8b249db..edc07a6b0 100644 --- a/Changelog +++ b/Changelog @@ -5,6 +5,7 @@ Nagios Core 4 Change Log 4.5.9 - 2024-XX-XX ------------------ * Fix unreachable notifications (Dylan Anderson) +* Add light option in new exfoliation theme (Dylan Anderson) * Fix authentication in trends.cgi (Dylan Anderson) 4.5.8 - 2024-11-19 diff --git a/contrib/exfoliation/stylesheets/common.css b/contrib/exfoliation/stylesheets/common.css index d04d9ee76..50fd26d10 100644 --- a/contrib/exfoliation/stylesheets/common.css +++ b/contrib/exfoliation/stylesheets/common.css @@ -91,6 +91,7 @@ not important: blue aaccff 777777 --background: #000000; --foreground: #FFFFFF; --primary: #4D89F9; + --primary-foreground: #FAFAFA; --secondary-foreground: #D3DAE5; --muted-foreground: #8A92A1; --border: #28303E; @@ -114,6 +115,32 @@ not important: blue aaccff 777777 --error-msg-bg: #1C0202; } +.light { + --background: #FFFFFF; + --foreground: #000000; + --primary: #4D89F9; + --secondary-foreground: #1A1A1A; + --muted-foreground: #3D3D3D; + --border: #D6D6D6; + --input: #FCFCFC; + + --info-msg-text: #033281; + --info-msg-border: #0860F7; + --info-msg-bg: #DCE8FE; + + --success-msg-text: #005C2E; + --success-msg-border: #47B880; + --success-msg-bg: #DBFFED; + + --warning-msg-text: #5C5900; + --warning-msg-border: #E0D900; + --warning-msg-bg: #FFFEE5; + + --error-msg-text: #710B09; + --error-msg-border: #DB2424; + --error-msg-bg: #FCD9D9; +} + #side { border: none; height: 100vh; @@ -183,6 +210,21 @@ a:hover { margin-bottom: 10px; } +.nagioslogo { + background-color: var(--foreground); +} + +.nlogo { + mask: url(../images/logos/nagios-n-logo.svg) no-repeat center / contain; + height: 32px; +} + +.fulllogo { + mask: url(../images/logos/horizontal-nagios-full-logo.svg) no-repeat center / contain; + height: 39px; + width: 140px; +} + div.navsection { display: flex; flex-direction: column; @@ -401,7 +443,7 @@ ul.navsectionlinks li ul li a:hover { #splashlearnmore { background-color: var(--primary); - color: var(--foreground); + color: var(--primary-foreground); padding: 16px; border-radius: var(--radius); } diff --git a/html/config.inc.php.in b/html/config.inc.php.in index 77a64d0aa..eed492ae0 100644 --- a/html/config.inc.php.in +++ b/html/config.inc.php.in @@ -6,6 +6,7 @@ $cfg['cgi_config_file']='@sysconfdir@/cgi.cfg'; // location of the CGI config f $cfg['cgi_base_url']='@cgiurl@'; +$cfg['theme']='dark'; // Valid themes are "dark" or "light". Defaults to dark if something else or not set // FILE LOCATION DEFAULTS $cfg['main_config_file']='@sysconfdir@/nagios.cfg'; // default location of the main Nagios config file diff --git a/html/index.php.in b/html/index.php.in index e6a2528af..a056250ab 100644 --- a/html/index.php.in +++ b/html/index.php.in @@ -1,4 +1,6 @@ - +