Files
Timmy-time-dashboard/mobile-app/hooks/use-colors.ts
Manus AI b4b508ff5a feat: add Timmy Chat mobile app (Expo/React Native)
- Single-screen chat interface with Timmy's sovereign AI personality
- Text messaging with real-time AI responses via server chat API
- Voice recording and playback with waveform visualization
- Image sharing (camera + photo library) with full-screen viewer
- File attachments via document picker
- Dark arcane theme matching the Timmy Time dashboard
- Custom app icon with glowing T circuit design
- Timmy system prompt ported from dashboard prompts.py
- Unit tests for chat utilities and message types
2026-02-26 21:55:41 -05:00

13 lines
504 B
TypeScript

import { Colors, type ColorScheme, type ThemeColorPalette } from "@/constants/theme";
import { useColorScheme } from "./use-color-scheme";
/**
* Returns the current theme's color palette.
* Usage: const colors = useColors(); then colors.text, colors.background, etc.
*/
export function useColors(colorSchemeOverride?: ColorScheme): ThemeColorPalette {
const colorSchema = useColorScheme();
const scheme = (colorSchemeOverride ?? colorSchema ?? "light") as ColorScheme;
return Colors[scheme];
}