From ba28d5365440967a121fb0dc7063144aede35924 Mon Sep 17 00:00:00 2001 From: kmmiio99o <164557248+kmmiio99o@users.noreply.github.com> Date: Tue, 9 Dec 2025 23:59:14 +0100 Subject: [PATCH] Fix: Fix text colors in client UI --- src/core/ui/components/AddonCard.tsx | 2 +- .../components/ErrorBoundaryScreen.tsx | 3 +- src/core/ui/reporter/components/ErrorCard.tsx | 93 ++++++++++++------- .../settings/pages/Developer/AssetBrowser.tsx | 6 +- .../Plugins/sheets/PluginInfoActionSheet.tsx | 7 +- .../Themes/sheets/ThemeInfoActionSheet.tsx | 7 +- 6 files changed, 78 insertions(+), 40 deletions(-) diff --git a/src/core/ui/components/AddonCard.tsx b/src/core/ui/components/AddonCard.tsx index a58445d..b2947e8 100644 --- a/src/core/ui/components/AddonCard.tsx +++ b/src/core/ui/components/AddonCard.tsx @@ -44,7 +44,7 @@ const useStyles = createStyles({ }, headerLabel: { ...TextStyleSheet["heading-md/semibold"], - color: semanticColors.TEXT_NORMAL, + color: semanticColors.HEADER_PRIMARY, }, headerSubtitle: { ...TextStyleSheet["text-md/semibold"], diff --git a/src/core/ui/reporter/components/ErrorBoundaryScreen.tsx b/src/core/ui/reporter/components/ErrorBoundaryScreen.tsx index 9e290b0..f3a1495 100644 --- a/src/core/ui/reporter/components/ErrorBoundaryScreen.tsx +++ b/src/core/ui/reporter/components/ErrorBoundaryScreen.tsx @@ -19,6 +19,7 @@ import { TableSwitchRow, Stack, } from "@metro/common/components"; +import { semanticColors } from "@ui/color"; import { ScrollView, View } from "react-native"; import ErrorComponentStackCard from "./ErrorComponentStackCard"; @@ -74,7 +75,7 @@ export default function ErrorBoundaryScreen(props: { void; + error: unknown; + header?: string | ReactNode; + onRetryRender?: () => void; } export default function ErrorCard(props: ErrorCardProps) { - return - - {props.header && typeof props.header !== "string" - ? props.header - : {props.header ?? Strings.UH_OH} - } - {String(props.error)} - - {props.onRetryRender &&