mostly working, themes are broken, as are others.

This commit is contained in:
Crazypersonalph
2023-12-04 20:50:24 +08:00
parent 8af59e58d6
commit d14280724e
7 changed files with 17 additions and 17 deletions
File diff suppressed because one or more lines are too long
+4 -4
View File
@@ -1,8 +1,8 @@
import browser from 'webextension-polyfill'
import { GetThresholdOfColor, GetCSSElement } from '../../../SEQTA.js';
import { lightenAndPaleColor } from './lightenAndPaleColor.js';
import ColorLuminance from './ColorLuminance.js';
import { onError } from '../../utils/onError.js';
import { GetThresholdOfColor, GetCSSElement } from '../../../SEQTA';
import { lightenAndPaleColor } from './lightenAndPaleColor';
import ColorLuminance from './ColorLuminance';
import { onError } from '../../utils/onError';
// Helper functions
const setCSSVar = (varName: any, value: any) => document.documentElement.style.setProperty(varName, value);
+3 -3
View File
@@ -1,14 +1,14 @@
import browser from 'webextension-polyfill'
import { MenuOptionsOpen, OpenMenuOptions, closeSettings } from '../../SEQTA.js';
import { deleteTheme, disableTheme, downloadTheme, listThemes, setTheme } from '../ui/Themes.js';
import { MenuOptionsOpen, OpenMenuOptions, closeSettings } from '../../SEQTA';
import { deleteTheme, disableTheme, downloadTheme, listThemes, setTheme } from '../ui/Themes';
export class MessageHandler {
constructor() {
browser.runtime.onMessage.addListener(this.routeMessage.bind(this));
}
routeMessage(request: any, sender: any, sendResponse: any) {
routeMessage(request: any, sendResponse: any) {
switch (request.info) {
case 'EditSidebar':
+3 -3
View File
@@ -8,9 +8,9 @@ import {
addShortcuts,
disableNotificationCollector,
enableNotificationCollector,
} from '../../SEQTA.js';
import { updateBgDurations } from '../ui/Animation.js';
import { getDarkMode, updateAllColors } from '../ui/colors/Manager.js';
} from '../../SEQTA';
import { updateBgDurations } from '../ui/Animation';
import { getDarkMode, updateAllColors } from '../ui/colors/Manager';
export default class StorageListener {