You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi:
After tried your method to detect appearance, I have found some issue on MacOS 10.15 auto mode. Please check below reproduce scenario.
Assumption: Currently, it is time at 8:00 PM local time, and turn on Auto Mode, The Appearance is in dark mode.
The function now detect it dark mode (Correct), Now I go to "General", Switch "Appearance" to "Dark" mode, Then, I switch to "Auto" mode again, In this scenario, The function will get "UserDefaults(AppleInterfaceStyleSwitchesAutomatically)" to TRUE, and "UserDefaults(AppleInterfaceStyle)" to "Dark", so, It will detect theme to "Light", but currently, It is Dark in "Auto" mode, Please kindly check this issue. Thanks.
The text was updated successfully, but these errors were encountered:
Hi:
After tried your method to detect appearance, I have found some issue on MacOS 10.15 auto mode. Please check below reproduce scenario.
Assumption: Currently, it is time at 8:00 PM local time, and turn on Auto Mode, The Appearance is in dark mode.
The function now detect it dark mode (Correct), Now I go to "General", Switch "Appearance" to "Dark" mode, Then, I switch to "Auto" mode again, In this scenario, The function will get "UserDefaults(AppleInterfaceStyleSwitchesAutomatically)" to TRUE, and "UserDefaults(AppleInterfaceStyle)" to "Dark", so, It will detect theme to "Light", but currently, It is Dark in "Auto" mode, Please kindly check this issue. Thanks.
@oyljerry@PentonBin this should be resolved by the fix from @ruiaureliano where it now checks the effective appearance on 10.15 instead of relying on the user defaults which can be incorrect. Check out this commit for the changes:
Hi:
After tried your method to detect appearance, I have found some issue on MacOS 10.15 auto mode. Please check below reproduce scenario.
Assumption: Currently, it is time at 8:00 PM local time, and turn on Auto Mode, The Appearance is in dark mode.
The function now detect it dark mode (Correct), Now I go to "General", Switch "Appearance" to "Dark" mode, Then, I switch to "Auto" mode again, In this scenario, The function will get "UserDefaults(AppleInterfaceStyleSwitchesAutomatically)" to TRUE, and "UserDefaults(AppleInterfaceStyle)" to "Dark", so, It will detect theme to "Light", but currently, It is Dark in "Auto" mode, Please kindly check this issue. Thanks.
The text was updated successfully, but these errors were encountered: