Browse Source

ref: some stuff

Sv443 7 months ago
parent
commit
3c8ff3b31b
3 changed files with 14 additions and 12 deletions
  1. 5 5
      dist/BetterYTM.css
  2. 5 5
      src/dialogs/dialogs.css
  3. 4 2
      src/interface.ts

+ 5 - 5
dist/BetterYTM.css

@@ -94,15 +94,15 @@
 /* #region cfg menu adornments */
 
 .bytm-ftitem-adornment svg path {
-  fill: var(--bytm-locale-color, #fff) !important;
+  fill: var(--bytm-locale-color, #fff);
 }
 
 .bytm-advanced-mode-icon svg path {
-  fill: var(--bytm-advanced-mode-color, #fff) !important;
+  fill: var(--bytm-advanced-mode-color, #fff);
 }
 
 .bytm-experimental-icon svg path {
-  fill: var(--bytm-experimental-col, #fff) !important;
+  fill: var(--bytm-experimental-col, #fff);
 }
 
 .bytm-warning-icon svg {
@@ -111,11 +111,11 @@
 }
 
 .bytm-warning-icon svg path {
-  fill: var(--bytm-warning-col, #fff) !important;
+  fill: var(--bytm-warning-col, #fff);
 }
 
 .bytm-reload-icon svg path {
-  fill: var(--bytm-reload-col, #fff) !important;
+  fill: var(--bytm-reload-col, #fff);
 }
 
 /* #region welcome dialog */

+ 5 - 5
src/dialogs/dialogs.css

@@ -94,15 +94,15 @@
 /* #region cfg menu adornments */
 
 .bytm-ftitem-adornment svg path {
-  fill: var(--bytm-locale-color, #fff) !important;
+  fill: var(--bytm-locale-color, #fff);
 }
 
 .bytm-advanced-mode-icon svg path {
-  fill: var(--bytm-advanced-mode-color, #fff) !important;
+  fill: var(--bytm-advanced-mode-color, #fff);
 }
 
 .bytm-experimental-icon svg path {
-  fill: var(--bytm-experimental-col, #fff) !important;
+  fill: var(--bytm-experimental-col, #fff);
 }
 
 .bytm-warning-icon svg {
@@ -111,11 +111,11 @@
 }
 
 .bytm-warning-icon svg path {
-  fill: var(--bytm-warning-col, #fff) !important;
+  fill: var(--bytm-warning-col, #fff);
 }
 
 .bytm-reload-icon svg path {
-  fill: var(--bytm-reload-col, #fff) !important;
+  fill: var(--bytm-reload-col, #fff);
 }
 
 /* #region welcome dialog */

+ 4 - 2
src/interface.ts

@@ -6,7 +6,7 @@ import { addSelectorListener } from "./observers.js";
 import { getFeatures, setFeatures } from "./config.js";
 import { autoLikeStore, featInfo, fetchLyricsUrlTop, getLyricsCacheEntry, sanitizeArtists, sanitizeSong } from "./features/index.js";
 import { allSiteEvents, type SiteEventsMap } from "./siteEvents.js";
-import { LogLevel, type FeatureConfig, type FeatureInfo, type LyricsCacheEntry, type PluginDef, type PluginInfo, type PluginRegisterResult, type PluginDefResolvable, type PluginEventMap, type PluginItem, type BytmObject, type AutoLikeData, type InterfaceFunctions } from "./types.js";
+import { type FeatureConfig, type FeatureInfo, type LyricsCacheEntry, type PluginDef, type PluginInfo, type PluginRegisterResult, type PluginDefResolvable, type PluginEventMap, type PluginItem, type BytmObject, type AutoLikeData, type InterfaceFunctions } from "./types.js";
 import { BytmDialog, ExImDialog, MarkdownDialog, createCircularBtn, createHotkeyInput, createRipple, createToggleInput, showIconToast, showToast } from "./components/index.js";
 import { showPrompt } from "./dialogs/prompt.js";
 
@@ -262,12 +262,14 @@ export function initPlugins() {
       registeredPlugins.set(key, { def, events });
       queuedPlugins.delete(key);
       emitOnPlugins("pluginRegistered", (d) => sameDef(d, def), pluginDefToInfo(def)!);
-      info(`Initialized plugin '${getPluginKey(def)}'`, LogLevel.Info);
+      info(`Initialized plugin '${getPluginKey(def)}'`);
     }
     catch(err) {
       error(`Failed to initialize plugin '${getPluginKey(def)}':`, err);
     }
   }
+
+  log("Registered all plugins:", registeredPlugins);
 }
 
 /** Returns the key for a given plugin definition */