mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Tweak the previous use of graphPalette to be the right way around
This commit is contained in:
parent
052b8cbde8
commit
23e7655065
@ -23,6 +23,21 @@ export function initDayNightMode() {
|
||||
document.body.classList.add('dark-mode');
|
||||
document.documentElement.setAttribute('data-bs-theme', "dark");
|
||||
localStorage.setItem('theme', 'dark');
|
||||
window.graphPalette = [
|
||||
'#4992ff',
|
||||
'#7cffb2',
|
||||
'#fddd60',
|
||||
'#ff6e76',
|
||||
'#58d9f9',
|
||||
'#05c091',
|
||||
'#ff8a45',
|
||||
'#8d48e3',
|
||||
'#dd79ff'
|
||||
];
|
||||
} else {
|
||||
document.body.classList.remove('dark-mode');
|
||||
document.documentElement.setAttribute('data-bs-theme', "light");
|
||||
localStorage.setItem('theme', 'light');
|
||||
window.graphPalette = [
|
||||
'#d87c7c',
|
||||
'#919e8b',
|
||||
@ -35,21 +50,6 @@ export function initDayNightMode() {
|
||||
'#724e58',
|
||||
'#4b565b'
|
||||
];
|
||||
} else {
|
||||
document.body.classList.remove('dark-mode');
|
||||
document.documentElement.setAttribute('data-bs-theme', "light");
|
||||
localStorage.setItem('theme', 'light');
|
||||
window.graphPalette = [
|
||||
'#4992ff',
|
||||
'#7cffb2',
|
||||
'#fddd60',
|
||||
'#ff6e76',
|
||||
'#58d9f9',
|
||||
'#05c091',
|
||||
'#ff8a45',
|
||||
'#8d48e3',
|
||||
'#dd79ff'
|
||||
];
|
||||
}
|
||||
if (window.graphList !== undefined) {
|
||||
window.graphList.forEach((graph) => {
|
||||
|
Loading…
Reference in New Issue
Block a user