mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
fix: theme locking not working in light mode
This commit is contained in:
@@ -5,6 +5,7 @@ import stringToHTML from "../utils/stringToHTML";
|
|||||||
import { settingsState } from "../utils/listeners/SettingsState";
|
import { settingsState } from "../utils/listeners/SettingsState";
|
||||||
import { updateAllColors } from "./colors/Manager";
|
import { updateAllColors } from "./colors/Manager";
|
||||||
import { delay } from "../utils/delay";
|
import { delay } from "../utils/delay";
|
||||||
|
import { settings } from '../../../dist/src/seqta/content/MenuItemSVGKey.json__import';
|
||||||
|
|
||||||
export async function AddBetterSEQTAElements() {
|
export async function AddBetterSEQTAElements() {
|
||||||
if (settingsState.onoff) {
|
if (settingsState.onoff) {
|
||||||
@@ -250,7 +251,7 @@ async function addDarkLightToggle() {
|
|||||||
document.getElementById('LightDarkModeButton')!.addEventListener('click', async () => {
|
document.getElementById('LightDarkModeButton')!.addEventListener('click', async () => {
|
||||||
const darklightText = document.getElementById('darklighttooliptext');
|
const darklightText = document.getElementById('darklighttooliptext');
|
||||||
|
|
||||||
if (settingsState.originalDarkMode) {
|
if (settingsState.originalDarkMode != undefined) {
|
||||||
darklightText!.innerText = 'Locked by current theme';
|
darklightText!.innerText = 'Locked by current theme';
|
||||||
|
|
||||||
await delay(1000)
|
await delay(1000)
|
||||||
|
|||||||
Reference in New Issue
Block a user