Skip to content

Conversation

@jason0x43
Copy link
Contributor

The main change is simply to rename the "Switch to light/dark mode" command to just "Toggle appearance". This more closely matches what the command currently does -- it doesn't let you choose the mode, it just toggles it.

This PR also updates the toggle command to close the palette after auctioning the command, which is consistent with how other commands behave.

Rename the `Switch to light/dark mode` command to just `Toggle
appearance`. Also close the command palette after actioning the command.
Copilot AI review requested due to automatic review settings December 3, 2025 03:56
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR simplifies the theme toggle command by renaming it from "Switch to light/dark mode" (which displayed the target mode dynamically) to the simpler "Toggle appearance". The change also ensures the command palette closes after toggling the theme, aligning behavior with other toggle commands like "Toggle debug panel" and "Toggle console".

Key changes:

  • Renamed command title to "Toggle appearance" for clarity and simplicity
  • Added dialog.clear() call to close the palette after theme toggle

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rekram1-node
Copy link
Collaborator

nit: but I don't know if I like the wording of Toggle Appearance, could we make it more like Toggle Light or Toggle Dark, idk the standard terminology there

@jason0x43
Copy link
Contributor Author

"Appearance" is what Apple calls light vs dark mode, and I was going for a single word. I believe Windows, and possibly Ubuntu, use a "Dark mode" toggle to switch modes. How about "Toggle Dark Mode"?

One of the goals was to have a static menu item rather than one that changed its wording based on the mode. A menu item that changes its wording is a bit harder to search for and to find at a glance.

@rekram1-node
Copy link
Collaborator

One of the goals was to have a static menu item rather than one that changed its wording based on the mode. A menu item that changes its wording is a bit harder to search for and to find at a glance.

That's a good point

@rekram1-node rekram1-node changed the title feat: simplify light/dark theme toggle tweak: adjust light/dark theme toggle Dec 3, 2025
@rekram1-node rekram1-node merged commit 66e4a5a into anomalyco:dev Dec 3, 2025
12 checks passed
spmurrayzzz pushed a commit to spmurrayzzz/opencode that referenced this pull request Dec 5, 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.

2 participants