mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
Merge main into sweep/update-license-comment-block
This commit is contained in:
@@ -14,6 +14,10 @@ export function updateAllColors(storedSetting, newColor = null) {
|
|||||||
// Determine the color to use
|
// Determine the color to use
|
||||||
const selectedColor = newColor || storedSetting.selectedColor;
|
const selectedColor = newColor || storedSetting.selectedColor;
|
||||||
|
|
||||||
|
if (storedSetting.transparencyEffects) {
|
||||||
|
document.documentElement.classList.add('transparencyEffects');
|
||||||
|
}
|
||||||
|
|
||||||
DarkMode = (typeof storedSetting?.DarkMode === 'boolean') ? storedSetting.DarkMode : DarkMode;
|
DarkMode = (typeof storedSetting?.DarkMode === 'boolean') ? storedSetting.DarkMode : DarkMode;
|
||||||
|
|
||||||
if (typeof storedSetting === 'boolean') {
|
if (typeof storedSetting === 'boolean') {
|
||||||
|
|||||||
@@ -64,6 +64,14 @@ export default class StorageListener {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'transparencyEffects':
|
||||||
|
if (changes.transparencyEffects.newValue) {
|
||||||
|
document.documentElement.classList.add('transparencyEffects');
|
||||||
|
} else {
|
||||||
|
document.documentElement.classList.remove('transparencyEffects');
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
// Add default case if you need to handle a case where changeKey does not match any case
|
// Add default case if you need to handle a case where changeKey does not match any case
|
||||||
default:
|
default:
|
||||||
// Handle unknown changeKey if necessary
|
// Handle unknown changeKey if necessary
|
||||||
|
|||||||
Reference in New Issue
Block a user