From 592f7d744bad58216cb602a31b251bc3bc69eec9 Mon Sep 17 00:00:00 2001 From: cocobo1 Date: Fri, 17 Oct 2025 21:28:22 +0300 Subject: [PATCH] fix(themes): fix misscoloured text --- src/core/ui/settings/pages/Plugins/index.tsx | 1 - .../ui/settings/pages/Plugins/sheets/PluginInfoActionSheet.tsx | 2 ++ src/lib/addons/themes/colors/patches/resolver.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/ui/settings/pages/Plugins/index.tsx b/src/core/ui/settings/pages/Plugins/index.tsx index 6376e3b..ed001a3 100644 --- a/src/core/ui/settings/pages/Plugins/index.tsx +++ b/src/core/ui/settings/pages/Plugins/index.tsx @@ -22,7 +22,6 @@ import { } from "@metro/common/components"; import { ComponentProps } from "react"; import { View } from "react-native"; -import type { BunnyPluginManifest } from "@lib/addons/plugins/types"; import { UnifiedPluginModel } from "./models"; import unifyBunnyPlugin from "./models/bunny"; diff --git a/src/core/ui/settings/pages/Plugins/sheets/PluginInfoActionSheet.tsx b/src/core/ui/settings/pages/Plugins/sheets/PluginInfoActionSheet.tsx index 670c0f7..b9e9858 100644 --- a/src/core/ui/settings/pages/Plugins/sheets/PluginInfoActionSheet.tsx +++ b/src/core/ui/settings/pages/Plugins/sheets/PluginInfoActionSheet.tsx @@ -41,7 +41,9 @@ export default function PluginInfoActionSheet({ try { const pluginAny = plugin; const repoUrl = + //@ts-expect-error pluginAny._manifest?.parentRepository || + //@ts-expect-error pluginAny.manifest?.parentRepository; url = repoUrl ? `${repoUrl}/builds/${plugin.id}` : plugin.id; } catch (e) { diff --git a/src/lib/addons/themes/colors/patches/resolver.ts b/src/lib/addons/themes/colors/patches/resolver.ts index 610e56a..63378e2 100644 --- a/src/lib/addons/themes/colors/patches/resolver.ts +++ b/src/lib/addons/themes/colors/patches/resolver.ts @@ -85,7 +85,7 @@ export default function patchDefinitionAndResolver() { const fallbackValue = getRawFallback(colorDef.raw); if (fallbackValue) { - return colorDef.opacity === 1 ? fallbackValue : chroma(fallbackValue).alpha(colorDef.opacity).hex(); + return colorDef.opacity === 0 ? fallbackValue : chroma(fallbackValue).alpha(colorDef.opacity).hex(); } // Fallback to default