diff --git a/frontend/src/components/Sidebar/Sidebar.tsx b/frontend/src/components/Sidebar/Sidebar.tsx index 46f4bd64..77cfae8f 100644 --- a/frontend/src/components/Sidebar/Sidebar.tsx +++ b/frontend/src/components/Sidebar/Sidebar.tsx @@ -11,6 +11,9 @@ import { Cpu, Rocket, Bot, + Sun, + Moon, + Monitor, } from 'lucide-react'; import { ConversationList } from './ConversationList'; import { useAppStore } from '../../lib/store'; @@ -27,6 +30,12 @@ export function Sidebar() { const serverInfo = useAppStore((s) => s.serverInfo); const setCommandPaletteOpen = useAppStore((s) => s.setCommandPaletteOpen); + const settings = useAppStore((s) => s.settings); + const updateSettings = useAppStore((s) => s.updateSettings); + + const ThemeIcon = settings.theme === 'light' ? Sun : settings.theme === 'dark' ? Moon : Monitor; + const nextTheme = settings.theme === 'light' ? 'dark' : settings.theme === 'dark' ? 'system' : 'light'; + const handleNewChat = () => { createConversation(selectedModel); navigate('/'); @@ -75,16 +84,28 @@ export function Sidebar() { > - +
+ + +
{/* Model badge */}