فهرست منبع

fix: wrong accent colors & debounce version check btn

Sv443 1 سال پیش
والد
کامیت
255aeb54c1
3فایلهای تغییر یافته به همراه8 افزوده شده و 8 حذف شده
  1. 6 3
      src/components/BytmDialog.css
  2. 0 4
      src/dialogs/dialogs.css
  3. 2 1
      src/features/index.ts

+ 6 - 3
src/components/BytmDialog.css

@@ -1,5 +1,6 @@
 :root {
   --bytm-dialog-accent-col: #3683d4;
+  --bytm-advanced-mode-color: #c5a73b;
 }
 
 .bytm-dialog-bg {
@@ -392,8 +393,10 @@ hr {
   margin-right: 6px;
 }
 
-.bytm-ftitem-adornment svg path,
-.advancedModeIcon svg path
-{
+.bytm-ftitem-adornment svg path {
   fill: var(--bytm-dialog-accent-col, #4595c7);
 }
+
+.bytm-advanced-mode-icon svg path {
+  fill: var(--bytm-advanced-mode-color, #c5a73b);
+}

+ 0 - 4
src/dialogs/dialogs.css

@@ -88,7 +88,3 @@
   display: inline-flex;
   align-items: center;
 }
-
-.bytm-advanced-mode-icon svg path {
-  fill: #c5a73b;
-}

+ 2 - 1
src/features/index.ts

@@ -1,3 +1,4 @@
+import { debounce } from "@sv443-network/userutils";
 import { getPreferredLocale, resourceToHTMLString, t, tp } from "../utils";
 import langMapping from "../../assets/locales.json" assert { type: "json" };
 import { remSongMinPlayTime } from "./behavior";
@@ -360,7 +361,7 @@ export const featInfo = {
     type: "button",
     category: "general",
     default: undefined,
-    click: () => doVersionCheck(true),
+    click: debounce(() => doVersionCheck(true), 750),
   },
   logLevel: {
     type: "select",