Skip to content

feat: add quick theme toggle in sidebar header - #924

Closed
saidMounaim wants to merge 1 commit into
pingdotgg:mainfrom
saidMounaim:feat/quick-theme-toggle
Closed

feat: add quick theme toggle in sidebar header#924
saidMounaim wants to merge 1 commit into
pingdotgg:mainfrom
saidMounaim:feat/quick-theme-toggle

Conversation

@saidMounaim

@saidMounaim saidMounaim commented Mar 11, 2026

Copy link
Copy Markdown

What Changed

Added a theme toggle icon button in the sidebar header, next to the T3 Code logo:

  • Sun/moon icon that reflects the current resolved theme
  • Dropdown menu with System, Light, and Dark options
  • Uses existing useTheme hook - syncs automatically with Settings page

Why

Quick theme switching is a common UX pattern. Users shouldn't need to navigate to Settings just to toggle between light and dark mode. This provides convenient access while keeping the full theme configuration in Settings.

UI Changes

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes

Note

Add theme toggle (System/Light/Dark) to sidebar header

Adds a sun/moon icon button to the sidebar header in Sidebar.tsx that opens a dropdown menu for selecting the app theme. The icon reflects the resolved theme (sun for light, moon for dark), and selecting an option calls setTheme from the useTheme hook. Both Electron and non-Electron header layouts are updated to include the toggle.

Macroscope summarized 19f9a31.

Add a theme toggle icon button near the T3 Code logo for quick access
to theme switching. The toggle shows a sun/moon icon based on the
current resolved theme and opens a dropdown with System, Light, and
Dark options.

- Uses existing useTheme hook for state management
- Syncs automatically with Settings page theme selector
- Works on both web and desktop (Electron) builds

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Mar 11, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: d95bcfc0-a3e9-4bfc-b3f2-ef80bc620d76

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added the vouch:unvouched PR author is not yet trusted in the VOUCHED list. label Mar 11, 2026
@drj613

drj613 commented Mar 11, 2026

Copy link
Copy Markdown
image

@saidMounaim

Copy link
Copy Markdown
Author

Thanks, the GIF has been re uploaded and should work now

@Noojuno

Noojuno commented Mar 11, 2026

Copy link
Copy Markdown
Contributor

I think this clutters up the UI for no real benefit tbh. If you want to change the theme, you can already easily find in the settings

@maria-rcks

Copy link
Copy Markdown
Collaborator

Idk of many people who change themes that often, closing as not planned

@juliusmarminge dk if you have thoughts on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants