Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Not working with Catalina Auto mode #7

Open
tgatz opened this issue Jan 9, 2020 · 7 comments
Open

Not working with Catalina Auto mode #7

tgatz opened this issue Jan 9, 2020 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@tgatz
Copy link

tgatz commented Jan 9, 2020

First of all thank you for the great work on this plugin, but unfortunately it seems that it is not working when Auto Mode is enabled in MacOS Catalina.

Maybe this could help
https://forums.developer.apple.com/thread/118974

@kannicht
Copy link
Contributor

kannicht commented Jan 9, 2020

I'm on that.

@kannicht
Copy link
Contributor

I just tested the issue. I don't see any malfunction in the automatic mode.

I tried to reproduce the error as following:

  1. Start IDE
  2. Check Auto Theme Change in MacOS enabled.
  3. Change timezone to a Timezone currently in daylight and back.

After these steps, the plugin behaved well both in the current release version and in the future release.

@Sottti
Copy link

Sottti commented Jan 10, 2020

Works for me.

@gilday gilday self-assigned this Jan 18, 2020
@gilday gilday added the enhancement New feature or request label Jan 18, 2020
@romanzipp
Copy link

romanzipp commented Jan 21, 2020

I'm running into the same issue when starting my Mac in daylight after powering it down in the evening.

Reproduction:

  • Set appearance to "auto"
  • Power down computer (currently dark)
  • Start up (daylight)
  • Dark theme is enabled until toggling the appearance Auto -> Light -> Auto

Notice: I'm syncing my setting to a GitHub repository, maybe this is causing the issue

@gilday
Copy link
Owner

gilday commented Jan 22, 2020

The link @AtoMiKo posted is a good start. Doing some experimenting of my own, and I'm getting different results than the author of that post. The post includes this logic:

   if UserDefaults(AppleInterfaceStyleSwitchesAutomatically) == TRUE  
      if UserDefaults(AppleInterfaceStyle) == NIL≤  
         theme = dark // is nil, means it's dark and will switch in future to light       
      else  
         theme = light //means it's light and will switch in future to dark  
      endif 

But in my environment, UserDefaults(AppleInterfaceStyleSwitchesAutomatically) can be true and UserDefaults(AppleInterfaceStyle) returns Dark. I need to do a bit more experimenting before I'm sure how to factor "Auto" mode into the dark mode detection.

@Tyranwyn
Copy link

I'm running into the same issue when starting my Mac in daylight after powering it down in the evening.

I'm having the same problem @romanzipp

@taurni
Copy link

taurni commented Oct 16, 2020

Having similar trouble with Mac OS Catalina auto mode. It works fine when the dark/light mode changes while Webstorm is running. In the evening I shuted down in dark mode and in the morning I started in light mode but webstorm was still in dark theme. Even if I manually changed the theme to be light, it automatically changed back to dark again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants