From 3fb0f6726d40ab145ae15545fea0399865bebbd9 Mon Sep 17 00:00:00 2001 From: Innei Date: Wed, 23 Apr 2025 23:15:10 +0800 Subject: [PATCH] refactor: update text color scheme across multiple components - Replaced instances of 'text-foreground' with 'text-text' for improved consistency in styling. - Adjusted various components including MarkdownLink, AchievementModalContent, and others to align with the new color scheme. - Enhanced readability and visual coherence throughout the application. Signed-off-by: Innei --- .../ui/markdown/renderers/MarkdownLink.tsx | 2 +- .../src/renderer/src/lib/error-parser.ts | 4 ++-- .../achievement/AchievementModalContent.tsx | 4 ++-- .../src/modules/action/target-action-list.tsx | 2 +- .../activation/ActivationModalContent.tsx | 2 +- .../src/modules/ai/ai-daily/daily.tsx | 4 ++-- .../src/modules/discover/DiscoverFeedForm.tsx | 19 ++++++++++--------- .../modules/discover/recommendations-card.tsx | 4 ++-- .../entry-column/Items/social-media-item.tsx | 2 +- .../components/mark-all-button.tsx | 2 +- .../modules/entry-content/header.electron.tsx | 4 ++-- .../modules/entry-content/header.mobile.tsx | 2 +- .../new-user-guide/guide-modal-content.tsx | 2 +- .../src/renderer/src/modules/panel/cmdf.tsx | 4 ++-- .../src/renderer/src/modules/panel/cmdk.tsx | 8 ++++---- .../src/modules/settings/modal/layout.tsx | 4 ++-- .../src/modules/settings/tabs/about.tsx | 2 +- .../modules/shared/ViewSelectorRadioGroup.tsx | 4 ++-- .../renderer/src/modules/wallet/tip-modal.tsx | 10 ++++------ .../renderer/src/pages/settings/layout.tsx | 4 ++-- .../src/renderer/src/styles/additional.css | 2 +- configs/tailwind.base.config.ts | 2 -- packages/components/assets/tailwind.css | 2 +- packages/components/src/ui/select/index.tsx | 2 +- packages/components/src/ui/tabs/index.tsx | 2 +- 25 files changed, 48 insertions(+), 51 deletions(-) diff --git a/apps/desktop/src/renderer/src/components/ui/markdown/renderers/MarkdownLink.tsx b/apps/desktop/src/renderer/src/components/ui/markdown/renderers/MarkdownLink.tsx index ce227134e..d5c448be8 100644 --- a/apps/desktop/src/renderer/src/components/ui/markdown/renderers/MarkdownLink.tsx +++ b/apps/desktop/src/renderer/src/components/ui/markdown/renderers/MarkdownLink.tsx @@ -35,7 +35,7 @@ export const MarkdownLink = (props: LinkProps) => { { className={styledButtonVariant({ variant: "outline", className: [ - "dark:text-foreground relative gap-1 border-green-200 !bg-green-100/50 text-green-800 dark:border-green-200/20 dark:!bg-green-100/5", + "dark:text-text relative gap-1 border-green-200 !bg-green-100/50 text-green-800 dark:border-green-200/20 dark:!bg-green-100/5", copy.video ? "cursor-button" : "cursor-default", ], })} @@ -292,7 +292,7 @@ export const AchievementModalContent: FC = () => { className={styledButtonVariant({ variant: "outline", className: - "dark:text-foreground relative cursor-not-allowed gap-1 border-zinc-200 !bg-zinc-100/50 text-zinc-800 dark:border-zinc-200/20 dark:!bg-zinc-100/5", + "dark:text-text relative cursor-not-allowed gap-1 border-zinc-200 !bg-zinc-100/50 text-zinc-800 dark:border-zinc-200/20 dark:!bg-zinc-100/5", })} > Validating... diff --git a/apps/desktop/src/renderer/src/modules/action/target-action-list.tsx b/apps/desktop/src/renderer/src/modules/action/target-action-list.tsx index e6a8d3c67..bd9d289ad 100644 --- a/apps/desktop/src/renderer/src/modules/action/target-action-list.tsx +++ b/apps/desktop/src/renderer/src/modules/action/target-action-list.tsx @@ -319,7 +319,7 @@ export const TargetActionList = ({ index }: { index: number }) => {
- + diff --git a/apps/desktop/src/renderer/src/modules/activation/ActivationModalContent.tsx b/apps/desktop/src/renderer/src/modules/activation/ActivationModalContent.tsx index 6a793959a..e0c62e6ab 100644 --- a/apps/desktop/src/renderer/src/modules/activation/ActivationModalContent.tsx +++ b/apps/desktop/src/renderer/src/modules/activation/ActivationModalContent.tsx @@ -80,7 +80,7 @@ export const ActivationModalContent = ({ render={({ field }) => ( {!hideDescription && ( - {t("activation.description")} + {t("activation.description")} )} (props: LinkProps return (