From 853b9b6b75bdb8aab9260f929dfd3e5e9544ea35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Fri, 7 Feb 2025 09:00:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4Q=20Scheme=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E7=9A=84=E4=BF=9D=E5=AD=98=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/q-scheme.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/q-scheme.ts b/src/q-scheme.ts index b619b48..96884f1 100644 --- a/src/q-scheme.ts +++ b/src/q-scheme.ts @@ -1,5 +1,4 @@ import { SchemeSetting } from './color_functions/color_module'; -import { ColorShifting } from './models'; export type ColorSet = { root: string; @@ -35,13 +34,7 @@ export type QScheme = { }; export type QSchemeSetting = { - hover: ColorShifting; - acitve: ColorShifting; - focus: ColorShifting; - disabled: ColorShifting; - dark_convert: ColorShifting; - expand_method: string; - wacg_follows: string; + [P in keyof SchemeSetting]: SchemeSetting[P]; }; export type QSchemeSource = { @@ -55,7 +48,7 @@ export type QSchemeSource = { info: string | null; foreground: string | null; background: strin | nullg; - setting: SchemeSetting | null; + setting: QSchemeSetting | null; }; export type QSchemeStorage = {