cursor icon indicating copy to clipboard operation
cursor copied to clipboard

Issue while toggling between light and dark theme

Open indrakhatiwada opened this issue 2 years ago • 6 comments

  1. ctrl + shift + p to open command palette
  2. Select Toggle between light/ Dark theme
  3. Light theme not applying

indrakhatiwada avatar Aug 28 '23 16:08 indrakhatiwada

Similarly, the theme settings are not persisted/respected for me. It keeps resetting to Anysphere Dark, even though I've set it to Light Modern.

NickHeiner avatar Aug 29 '23 17:08 NickHeiner

When does the theme get reset for you? Is it on update?

truell20 avatar Aug 30 '23 22:08 truell20

I’m not totally sure. It might be when I open my laptop after it being asleep.

On Wed, Aug 30, 2023 at 15:36 Michael Truell @.***> wrote:

When does the theme get reset for you? Is it on update?

— Reply to this email directly, view it on GitHub https://github.com/getcursor/cursor/issues/821#issuecomment-1699943898, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGKTA3QOTHHFC4T4GKBYLLXX656HANCNFSM6AAAAAA4BVEB2M . You are receiving this because you commented.Message ID: @.***>

NickHeiner avatar Aug 31 '23 04:08 NickHeiner

Similarly, the theme settings are not persisted/respected for me. It keeps resetting to Anysphere Dark, even though I've set it to Light Modern.

Mine also keeps resetting to Anysphere Dark. Not the end of the world, but rounding off these rough edges are important for the transition from VSCode to feel smooth.

I'm not exactly sure but I feel like mine can reset up to a couple of times per day.

akd-io avatar Nov 13 '23 23:11 akd-io

I tested a bit @truell20, and the Cursor theme resets to Anysphere Dark whenever I toggle my system appearance (light/dark mode) on MacOS.

akd-io avatar Nov 13 '23 23:11 akd-io

+1, This consistently just sets the default dark theme for me whenever "toggle" is chosen.

Going into the editor settings, Anysphere Dark was set as the default light theme (Workbench: Preferred Light Color Theme) on a fresh install, and updating that to an actual light theme light Light+ fixed the issue for me.

matthewlewisnewton avatar Sep 14 '24 02:09 matthewlewisnewton

Had the same issue. Was trying to toggle from dark to light and it seemed like the toggle wsn't doing anything. For some reason, the default theme for light mode is a dark theme. Followed @matthewlewisnewton advice to fix it. This issue is spefific to Cursor and I haven't ran into it in vsc.

ioannist avatar Sep 15 '24 09:09 ioannist

I think the issue is some code cursor is using to set the default theme to Anysphere Dark instead of whatever the vscode theme is, also sets the light theme. They should pick a light theme and override that too if they want it to have different themes on startup (or better yet just inherit the themes like it inherits everything else from vscode, but I suspect that anysphere was intentionally chosen to make it stand out from the base vscode install).

matthewlewisnewton avatar Sep 20 '24 19:09 matthewlewisnewton

I was close to going crazy with Cursor resetting my themes to Anysphere every time when toggling between files, no matter what I did. Finally I found out that:

  • even a fresh install of Cursor would always auto-import my VS Code extensions, despite telling it not to
  • having the Sundial extension for toggling between dark/light themes was fundamentally incompatible with Cursor (despite having no issues in my regular VS Code install)

So far, removing the Sundial extension seems to have fixed the issue. Still I feel like Cursor has somehow implemented custom theme functionality that should not be there.

mieky avatar Jan 08 '25 07:01 mieky

+1

Image

I still faced the dark/light mode issue with a fresh install of Cursor. Toggling appearance with the command palette did nothing as both the light and dark theme are set to the same, Cursor Dark Anysphere. Not a big issue but also not something I expected to waste my time on having to figure out.

andreashanft avatar Mar 03 '25 10:03 andreashanft

I'm having similar issues, toggling light to dark isn't changing anything

shaikegross avatar Mar 09 '25 17:03 shaikegross

Same issue here :(

mustela avatar Mar 25 '25 07:03 mustela

+1

JauniusPinelis avatar Apr 03 '25 15:04 JauniusPinelis

Instructions to fix it:

  • Open VS Code settings ("Ctrl+Shift+P" => Open VS Code Settings)
  • Go to work bench and check "auto detect color theme":

Image

  • Go to workbench and change theme for light mode:

Image

Alternatively, you can do Ctrl+Shift+P, Open User Settings (JSON) and add this data:

{
  "window.autoDetectColorScheme": true,
  "workbench.preferredLightColorTheme": "Visual Studio Light"
}

Now cursor will have light/dark mode depending on OS theme.

If you just want "toggle light/dark mode" to work, this is enough:

{
  "workbench.preferredLightColorTheme": "Visual Studio Light"
}

coyotte508 avatar May 29 '25 08:05 coyotte508

I have the same issue. I guess its related to windows preferred theme. I am using my windows with light theme.

To fix it i put "workbench.preferredLightColorTheme": "Visual Studio Light" to user settings.

risperdal avatar May 30 '25 06:05 risperdal