@@ -13,10 +13,8 @@ import { useChatInterface, useChatScroll, useWelcomeScreen } from '@lib/hooks';
1313import { useChatflowInterface } from '@lib/hooks/use-chatflow-interface' ;
1414import { useChatflowState } from '@lib/hooks/use-chatflow-state' ;
1515import { useCurrentApp } from '@lib/hooks/use-current-app' ;
16- import { useThemeColors } from '@lib/hooks/use-theme-colors' ;
1716import type { ChatUploadFile } from '@lib/services/dify/types' ;
1817import { useAppListStore } from '@lib/stores/app-list-store' ;
19- import { useChatInputStore } from '@lib/stores/chat-input-store' ;
2018import { useChatLayoutStore } from '@lib/stores/chat-layout-store' ;
2119import { useChatStore } from '@lib/stores/chat-store' ;
2220import { useChatflowExecutionStore } from '@lib/stores/chatflow-execution-store' ;
@@ -30,7 +28,6 @@ import { useTranslations } from 'next-intl';
3028import { useParams , usePathname , useRouter } from 'next/navigation' ;
3129
3230export default function AppDetailPage ( ) {
33- const { colors, isDark } = useThemeColors ( ) ;
3431 const router = useRouter ( ) ;
3532 const params = useParams ( ) ;
3633 const pathname = usePathname ( ) ;
@@ -105,12 +102,6 @@ export default function AppDetailPage() {
105102 // get current app instance data
106103 const currentApp = apps . find ( app => app . instance_id === instanceId ) ;
107104
108- // Theme synchronization: ensure input box style follows theme changes
109- const setDarkMode = useChatInputStore ( state => state . setDarkMode ) ;
110- useEffect ( ( ) => {
111- setDarkMode ( isDark ) ;
112- } , [ isDark , setDarkMode ] ) ;
113-
114105 // useLayoutEffect ensures immediate cleanup of state when switching routes
115106 // this executes earlier than useEffect, allowing state to be cleared before rendering, avoiding display of incorrect content
116107 const { clearConversationState } = useChatInterface ( ) ;
@@ -306,7 +297,7 @@ export default function AppDetailPage() {
306297 < div
307298 className = { cn (
308299 'relative flex h-full w-full flex-col' ,
309- colors . mainBackground . tailwind ,
300+ 'bg-stone-100 dark:bg-stone-800' ,
310301 'items-center justify-center'
311302 ) }
312303 >
@@ -359,7 +350,7 @@ export default function AppDetailPage() {
359350 < div
360351 className = { cn (
361352 'relative flex h-full w-full flex-col' ,
362- colors . mainBackground . tailwind ,
353+ 'bg-stone-100 dark:bg-stone-800' ,
363354 'items-center justify-center'
364355 ) }
365356 >
@@ -386,8 +377,8 @@ export default function AppDetailPage() {
386377 < div
387378 className = { cn (
388379 'relative flex h-full w-full flex-col' ,
389- colors . mainBackground . tailwind ,
390- colors . mainText . tailwind
380+ 'bg-stone-100 dark:bg-stone-800' ,
381+ 'text-stone-900 dark:text-gray-100'
391382 ) }
392383 >
393384 < div
0 commit comments