mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
WebUI - Improved "dark" theme (#11417)
* -Real dark mode, (themed bootstrap) -removed inverted colors in navbar * Test data * FIX: navbar in mono theme. * Dark mode rrdtool * Changed background on gridster to match background of the dark theme * - Icons and links now are grey - Modernized tabs style into pills, - button pagemenu-selected fixed * Improvements: - bootgrid-th, are now visible (dark mode to the table headings) - Changed line color of poller and ping in rrdtool * Fix some codeclimate errors * Fix airos.snmprec, reverted to original file
This commit is contained in:
@@ -12,6 +12,8 @@
|
||||
* the source code distribution for details.
|
||||
*/
|
||||
|
||||
use LibreNMS\Config;
|
||||
|
||||
$scale_min = '0';
|
||||
|
||||
require 'includes/html/graphs/common.inc.php';
|
||||
@@ -20,7 +22,11 @@ $rrd_filename = rrd_name($device['hostname'], 'ping-perf');
|
||||
|
||||
$rrd_options .= ' DEF:ping='.$rrd_filename.':ping:AVERAGE';
|
||||
$rrd_options .= " 'COMMENT:Milliseconds Cur Min Max Avg\\n'";
|
||||
$rrd_options .= ' LINE1.25:ping#36393D:Ping';
|
||||
if (Config::get('applied_site_style') == 'dark') {
|
||||
$rrd_options .= ' LINE1.25:ping#63636d:Ping';
|
||||
} else {
|
||||
$rrd_options .= ' LINE1.25:ping#36393d:Ping';
|
||||
}
|
||||
$rrd_options .= ' GPRINT:ping:LAST:%14.2lf GPRINT:ping:AVERAGE:%6.2lf';
|
||||
$rrd_options .= " GPRINT:ping:MAX:%6.2lf 'GPRINT:ping:AVERAGE:%6.2lf\\n'";
|
||||
|
||||
|
@@ -11,6 +11,7 @@
|
||||
* option) any later version. Please see LICENSE.txt at the top level of
|
||||
* the source code distribution for details.
|
||||
*/
|
||||
use LibreNMS\Config;
|
||||
|
||||
$scale_min = '0';
|
||||
|
||||
@@ -20,7 +21,11 @@ $rrd_filename = rrd_name($device['hostname'], 'poller-perf');
|
||||
|
||||
$rrd_options .= ' DEF:poller='.$rrd_filename.':poller:AVERAGE';
|
||||
$rrd_options .= " 'COMMENT:Seconds Cur Min Max Avg\\n'";
|
||||
$rrd_options .= ' LINE1.25:poller#36393D:Poller';
|
||||
if (Config::get('applied_site_style') == 'dark') {
|
||||
$rrd_options .= ' LINE1.25:poller#63636d:Poller';
|
||||
} else {
|
||||
$rrd_options .= ' LINE1.25:poller#36393d:Poller';
|
||||
}
|
||||
$rrd_options .= ' GPRINT:poller:LAST:%6.2lf GPRINT:poller:MIN:%6.2lf';
|
||||
$rrd_options .= " GPRINT:poller:MAX:%6.2lf 'GPRINT:poller:AVERAGE:%6.2lf\\n'";
|
||||
|
||||
|
Reference in New Issue
Block a user