Skip to content

feat:Add light theme toggle in the settings tab#164

Open
huangzhenhao90 wants to merge 2 commits into
winfunc:mainfrom
huangzhenhao90:feature/light-theme-toggle
Open

feat:Add light theme toggle in the settings tab#164
huangzhenhao90 wants to merge 2 commits into
winfunc:mainfrom
huangzhenhao90:feature/light-theme-toggle

Conversation

@huangzhenhao90
Copy link
Copy Markdown

image

Add Dynamic Light/Dark Theme Toggle

🎨 Overview

This PR adds a dynamic theme switching functionality to Claudia, allowing users to toggle between light and dark modes seamlessly.

✨ Features

  • Theme Toggle: Added a "Light Theme" switch in Settings > General
  • Real-time Switching: Instant theme changes without restart
  • Persistent Storage: Theme preference saved in Claude settings
  • Component Support: All UI components adapted for both themes
  • Code Editor Themes: Syntax highlighting adapted for light/dark modes

🔧 Implementation Details

  • Added ThemeContext for centralized theme management
  • Created useSyntaxTheme hook for code editor theme switching
  • Updated all components to support CSS variable-based theming
  • Fixed Switch component visibility in dark theme
  • English labels for better accessibility

📱 Usage

Users can now toggle themes via Settings > General > Light Theme switch.

🧪 Testing

  • ✅ Theme switching works in real-time
  • ✅ All components render correctly in both themes
  • ✅ Theme preference persists across app restarts
  • ✅ Switch component visible in both themes

huang and others added 2 commits July 8, 2025 14:40
- 新增 light-theme-backup 目录包含完整的亮色主题配置
- 提供一键切换脚本 apply-light-theme.sh
- 包含亮色版本的 styles.css 和 claudeSyntaxTheme.ts
- 自动备份原始暗色主题文件
- 添加详细的中英文使用说明文档
- 优化了界面对比度和可读性

功能特点:
- 清爽的白色/亮色界面设计
- 保持代码块深色背景以便阅读
- 高对比度按钮和控件设计
- 完整的主题切换和恢复机制
- Add ThemeContext for centralized theme management
- Implement dynamic theme switching in Settings with English labels
- Add light syntax theme for code editor
- Update all components to support both light and dark themes
- Fix Switch component visibility in dark theme
- Add persistent theme storage in Claude settings
- Clean up temporary backup files

The theme toggle is now available in Settings > General > Light Theme
and supports real-time switching between light and dark modes.
@huangzhenhao90 huangzhenhao90 changed the title Feature/light theme toggle feat:add light theme toggle Jul 8, 2025
@huangzhenhao90 huangzhenhao90 changed the title feat:add light theme toggle feat:add light theme toggle in the settings tab Jul 8, 2025
@huangzhenhao90 huangzhenhao90 changed the title feat:add light theme toggle in the settings tab feat:Add light theme toggle in the settings tab Jul 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant