From 62fa437285dd7238e678e0bacbc5af713cfc704d Mon Sep 17 00:00:00 2001 From: LTbinglingfeng Date: Fri, 2 Jan 2026 01:54:22 +0800 Subject: [PATCH] fix(ui): use resolvedTheme for OpenAI icon switching in providers page --- src/pages/AiProvidersPage.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/pages/AiProvidersPage.tsx b/src/pages/AiProvidersPage.tsx index 059feed..2c9e717 100644 --- a/src/pages/AiProvidersPage.tsx +++ b/src/pages/AiProvidersPage.tsx @@ -202,7 +202,7 @@ const buildAmpcodeFormState = (ampcode?: AmpcodeConfig | null): AmpcodeFormState export function AiProvidersPage() { const { t } = useTranslation(); const { showNotification } = useNotificationStore(); - const { theme } = useThemeStore(); + const resolvedTheme = useThemeStore((state) => state.resolvedTheme); const connectionStatus = useAuthStore((state) => state.connectionStatus); const config = useConfigStore((state) => state.config); @@ -1402,7 +1402,11 @@ export function AiProvidersPage() { - + {t('ai_providers.codex_title')} } @@ -1734,7 +1738,11 @@ export function AiProvidersPage() { - + {t('ai_providers.openai_title')} }