v_1.11.5 Dark Mode
This commit is contained in:
@@ -223,7 +223,7 @@ $(document).ready(function(){
|
|||||||
//Disabling & Enabling Dark Transitions in Dark Mode to Speed up Performance.
|
//Disabling & Enabling Dark Transitions in Dark Mode to Speed up Performance.
|
||||||
function allowTransitions(){$('body').find('#transitions-remove').remove();}
|
function allowTransitions(){$('body').find('#transitions-remove').remove();}
|
||||||
function removeTransitions(){$('body').append('<style id="transitions-remove">.btn, .header, #footer-bar, .menu-box, .menu-active{transition:all 0ms ease!important;}</style>'); setTimeout(function(){allowTransitions();},10);}
|
function removeTransitions(){$('body').append('<style id="transitions-remove">.btn, .header, #footer-bar, .menu-box, .menu-active{transition:all 0ms ease!important;}</style>'); setTimeout(function(){allowTransitions();},10);}
|
||||||
/* DARK MODE DISABLED
|
|
||||||
//Dark Mode
|
//Dark Mode
|
||||||
var darkSwitch = $('[data-toggle-theme-switch], [data-toggle-theme], [data-toggle-theme-switch] input, [data-toggle-theme] input');
|
var darkSwitch = $('[data-toggle-theme-switch], [data-toggle-theme], [data-toggle-theme-switch] input, [data-toggle-theme] input');
|
||||||
$('[data-toggle-theme], [data-toggle-theme-switch]').on('click',function(){
|
$('[data-toggle-theme], [data-toggle-theme-switch]').on('click',function(){
|
||||||
@@ -265,10 +265,6 @@ $(document).ready(function(){
|
|||||||
if($('body').hasClass('detect-theme')){setColorScheme();}
|
if($('body').hasClass('detect-theme')){setColorScheme();}
|
||||||
$('.detect-dark-mode').on('click',function(){ $('body').addClass('detect-theme'); setColorScheme(); return false;});
|
$('.detect-dark-mode').on('click',function(){ $('body').addClass('detect-theme'); setColorScheme(); return false;});
|
||||||
$('.disable-auto-dark-mode').on('click',function(){ $('body').removeClass('detect-theme'); $(this).remove(); return false;});
|
$('.disable-auto-dark-mode').on('click',function(){ $('body').removeClass('detect-theme'); $(this).remove(); return false;});
|
||||||
*/
|
|
||||||
eraseCookie('sticky_light_mode');
|
|
||||||
eraseCookie('sticky_dark_mode');
|
|
||||||
// END
|
|
||||||
|
|
||||||
log('[tpl] init other ui elements');
|
log('[tpl] init other ui elements');
|
||||||
|
|
||||||
|
|||||||
@@ -92,12 +92,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="menu-settings" class="menu menu-box-bottom menu-box-detached rounded-m" data-menu-height="260">
|
<div id="menu-settings" class="menu menu-box-bottom menu-box-detached rounded-m" data-menu-height="310">
|
||||||
<div class="menu-title"><h1>Einstellungen</h1><p class="color-highlight"> </p><a href="#" class="close-menu"><i class="fa fa-times"></i></a></div>
|
<div class="menu-title"><h1>Einstellungen</h1><p class="color-highlight"> </p><a href="#" class="close-menu"><i class="fa fa-times"></i></a></div>
|
||||||
<div class="divider divider-margins mb-n2"></div>
|
<div class="divider divider-margins mb-n2"></div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="list-group list-custom-small">
|
<div class="list-group list-custom-small">
|
||||||
<?php if (false) { /* DARK MODE DISABLED (set menu height to 310) */ ?>
|
|
||||||
<a href="#" data-toggle-theme data-trigger-switch="switch-dark" class="pb-2">
|
<a href="#" data-toggle-theme data-trigger-switch="switch-dark" class="pb-2">
|
||||||
<i class="fa font-14 fa-moon rounded-s bg-dark1-dark color-white"></i>
|
<i class="fa font-14 fa-moon rounded-s bg-dark1-dark color-white"></i>
|
||||||
<span>Dark Mode</span>
|
<span>Dark Mode</span>
|
||||||
@@ -106,7 +105,6 @@
|
|||||||
<label class="custom-control-label" for="switch-dark"></label>
|
<label class="custom-control-label" for="switch-dark"></label>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<?php } ?>
|
|
||||||
<a href="#" data-menu="menu-login" class="show-notloggedin">
|
<a href="#" data-menu="menu-login" class="show-notloggedin">
|
||||||
<i class="fa font-14 fa-sign-in-alt rounded-s bg-highlight color-white"></i>
|
<i class="fa font-14 fa-sign-in-alt rounded-s bg-highlight color-white"></i>
|
||||||
<span>Login</span>
|
<span>Login</span>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
<link rel="apple-touch-icon" sizes="180x180" href="<?php echo SERVER_ADDR; ?>/client/app/icons/icon-192x192.png">
|
<link rel="apple-touch-icon" sizes="180x180" href="<?php echo SERVER_ADDR; ?>/client/app/icons/icon-192x192.png">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="theme-light" data-background="none" data-highlight="blue2"><?php /* DARK MODE DISABLED: set class to "detect-theme" */ ?>
|
<body class="detect-theme" data-background="none" data-highlight="blue2">
|
||||||
|
|
||||||
<div id="preloader"><div class="spinner-border color-highlight" role="status"></div></div>
|
<div id="preloader"><div class="spinner-border color-highlight" role="status"></div></div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
define('PWA_VERSION', '1.11.4h2');
|
define('PWA_VERSION', '1.11.5');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user