fix palerColor with gradients

This commit is contained in:
SethBurkart123
2023-10-11 21:26:53 +11:00
parent c9e029643a
commit 504dbd1cd8
6 changed files with 82 additions and 52 deletions
+7 -2
View File
@@ -10,10 +10,11 @@ import {
enableNotificationCollector,
} from "../../SEQTA.js";
import { updateBgDurations } from "../ui/Animation.js";
import { updateAllColors } from "../ui/Colors.js";
import { getDarkMode, updateAllColors } from "../ui/Colors.js";
export default class StorageListener {
constructor() {
this.darkMode = getDarkMode();
chrome.storage.onChanged.addListener(this.handleStorageChanges.bind(this));
}
@@ -29,6 +30,10 @@ export default class StorageListener {
);
}
if (changes.DarkMode) {
this.darkMode = changes.DarkMode.newValue;
}
if (changes?.customshortcuts?.newValue) {
this.handleCustomShortcutsChange(
changes.customshortcuts.oldValue,
@@ -56,7 +61,7 @@ export default class StorageListener {
handleSelectedColorChange(newColor) {
try {
updateAllColors(null, newColor);
updateAllColors(this.darkMode, newColor);
} catch (err) {
console.error(err);
}