mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-08 11:48:26 -04:00
Vary appCache warning colours
This commit is contained in:
parent
638acdcf69
commit
c86fab2bc0
@ -2252,10 +2252,13 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'utf8', 'cache', 'images
|
||||
});
|
||||
});
|
||||
var scrollbox = document.getElementById('scrollbox');
|
||||
var prefix = document.getElementById('prefix');
|
||||
if (params.appCache) {
|
||||
scrollbox.style.removeProperty('background');
|
||||
prefix.style.removeProperty('background');
|
||||
} else {
|
||||
scrollbox.style.background = cssUIThemeGetOrSet(params.cssUITheme, true) === 'dark' ? 'maroon' : 'mistyrose';
|
||||
scrollbox.style.background = /^dark/.test(document.body.className) ? '#300000' : 'mistyrose';
|
||||
prefix.style.setProperty('background', /^dark/.test(document.body.className) ? '#200000' : 'lavenderblush', 'important');
|
||||
}
|
||||
var expertSettings = document.getElementById('expertSettingsDiv');
|
||||
expertSettings.classList.remove('panel-warning');
|
||||
|
Loading…
x
Reference in New Issue
Block a user