diff --git a/front/css/app.css b/front/css/app.css index 4bdb571e..c743bedd 100755 --- a/front/css/app.css +++ b/front/css/app.css @@ -212,6 +212,12 @@ { line-height: 30px; } + +body +{ + background-image: url('img/background.png'); +} + /* ----------------------------------------------------------------------------- Customized Main Menu ----------------------------------------------------------------------------- */ diff --git a/front/css/dark-patch.css b/front/css/dark-patch.css index b8eac6be..6ee4ff41 100755 --- a/front/css/dark-patch.css +++ b/front/css/dark-patch.css @@ -17,6 +17,10 @@ html { background-color: #353c42; } +body { + background-image: url('img/boxed-bg-dark.png') !important; +} + body, .bg-yellow, .callout.callout-warning, .alert-warning, .label-warning, .modal-warning .modal-body { background-color: #353c42 !important; diff --git a/front/css/system-dark-patch.css b/front/css/system-dark-patch.css index d383f4d9..bcfaf92b 100755 --- a/front/css/system-dark-patch.css +++ b/front/css/system-dark-patch.css @@ -19,6 +19,10 @@ background-color: #353c42; } + body { + background-image: url('img/boxed-bg-dark.png') !important; + } + body, .bg-yellow, .callout.callout-warning, .alert-warning, .label-warning, .modal-warning .modal-body { background-color: #353c42 !important; diff --git a/front/index.php b/front/index.php index 897135e3..d92418bb 100755 --- a/front/index.php +++ b/front/index.php @@ -105,8 +105,7 @@ if (isset ($_SESSION["login"]) == FALSE || $_SESSION["login"] != 1) '; - $BACKGROUND_IMAGE_PATCH='style="background-image: url(\'img/boxed-bg-dark.png\');"'; -} else { $BACKGROUND_IMAGE_PATCH='style="background-image: url(\'img/background.png\');"';} +} ?> diff --git a/front/js/common.js b/front/js/common.js index 4d7408c0..673a8c90 100755 --- a/front/js/common.js +++ b/front/js/common.js @@ -1195,11 +1195,9 @@ $(document).ready(function() { setCookie("UI_dark_mode", "True") $('head').append(''); // Set the background image for dark mode - $('body').attr('style', 'background-image: url(\'img/boxed-bg-dark.png\');'); } else { setCookie("UI_dark_mode", "False") // Set the background image for light mode - $('body').attr('style', 'background-image: url(\'img/background.png\');'); } }); diff --git a/front/php/templates/header.php b/front/php/templates/header.php index 539a0bbe..c58e1a10 100755 --- a/front/php/templates/header.php +++ b/front/php/templates/header.php @@ -75,8 +75,7 @@ '; - $BACKGROUND_IMAGE_PATCH='style="background-image: url(\'img/boxed-bg-dark.png\');"'; - } else { $BACKGROUND_IMAGE_PATCH='style="background-image: url(\'img/background.png\');"';} + } ?> @@ -114,7 +113,7 @@ -
onLoad="show_pia_servertime();" > +