From d6a8dd67103d78ade507e837ebce2d6e9d5ca900 Mon Sep 17 00:00:00 2001 From: Beef Date: Tue, 21 Feb 2023 17:59:29 +0000 Subject: [PATCH] [UI] Move color variables --- src/def.d.ts | 8 +++----- src/lib/windowObject.ts | 2 ++ src/ui/color.ts | 4 ++-- src/ui/settings/components/PluginCard.tsx | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/def.d.ts b/src/def.d.ts index 7505e9d..b7e2094 100644 --- a/src/def.d.ts +++ b/src/def.d.ts @@ -340,11 +340,9 @@ interface VendettaObject { getAssetByID: (id: number) => Asset; getAssetIDByName: (name: string) => number; }; - color: { - // TODO: Make a vain attempt to type these - map: Indexable; - raw: Indexable; - } + // TODO: Make a vain attempt to type these + semanticColors: Indexable; + rawColors: Indexable; }; plugins: { plugins: Indexable; diff --git a/src/lib/windowObject.ts b/src/lib/windowObject.ts index 7d2e8c5..6fcdbe2 100644 --- a/src/lib/windowObject.ts +++ b/src/lib/windowObject.ts @@ -12,6 +12,7 @@ import * as common from "@metro/common"; import * as components from "@ui/components"; import * as toasts from "@ui/toasts"; import * as assets from "@ui/assets"; +import * as color from "@ui/color"; import * as utils from "@utils"; function without>(object: T, ...keys: string[]) { @@ -32,6 +33,7 @@ export default async function windowObject(unloads: any[]): Promise