mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
fix occassional light flash when loading seqta
This commit is contained in:
+3
-4
@@ -717,10 +717,10 @@ function main(storedSetting: SettingsState) {
|
|||||||
document.documentElement.classList.add('dark');
|
document.documentElement.classList.add('dark');
|
||||||
}
|
}
|
||||||
|
|
||||||
InjectStyles();
|
|
||||||
InjectCustomIcons();
|
|
||||||
loading();
|
|
||||||
updateAllColors(storedSetting);
|
updateAllColors(storedSetting);
|
||||||
|
InjectStyles();
|
||||||
|
loading();
|
||||||
|
InjectCustomIcons();
|
||||||
HideMenuItems();
|
HideMenuItems();
|
||||||
CheckLoadOnPeriods();
|
CheckLoadOnPeriods();
|
||||||
tryLoad();
|
tryLoad();
|
||||||
@@ -870,7 +870,6 @@ function addExtensionSettings() {
|
|||||||
|
|
||||||
function saveNewOrder(sortable: any) {
|
function saveNewOrder(sortable: any) {
|
||||||
var order = sortable.toArray();
|
var order = sortable.toArray();
|
||||||
console.log("Order: ", order);
|
|
||||||
browser.storage.local.set({ menuorder: order });
|
browser.storage.local.set({ menuorder: order });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+21
-1
@@ -20,8 +20,28 @@ export function AppendLoadingSymbol(givenID: any, position: any) {
|
|||||||
export default function loading() {
|
export default function loading() {
|
||||||
let loadinghtml = stringToHTML(
|
let loadinghtml = stringToHTML(
|
||||||
String.raw`
|
String.raw`
|
||||||
<div class="bkloading" id="loading" style="background-color: var(--theme-secondary, var(--background-secondary)); color: var(--text-primary); width: 100%;overflow: hidden;opacity: 1;transition: 1s;height: 100%;transition: color 1ms linear, opacity 1s ease-in-out;top: 0;position: absolute;left: 0;z-index: 1000000;">
|
<div class="bkloading" id="loading">
|
||||||
<style>
|
<style>
|
||||||
|
.bkloading {
|
||||||
|
transition: color 1ms linear, opacity 1s ease-in-out;
|
||||||
|
background-color: rgb(229, 231, 235);
|
||||||
|
color: black;
|
||||||
|
width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
opacity: 1;
|
||||||
|
transition: 1s;
|
||||||
|
height: 100%;
|
||||||
|
z-index: 1000000;
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark .bkloading {
|
||||||
|
background-color: rgb(26, 26, 26);
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
.svg {
|
.svg {
|
||||||
transform-origin: center;
|
transform-origin: center;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
Reference in New Issue
Block a user