zenangst / Gray

:first_quarter_moon: Tailor your macOS Mojave experience
https://github.com/zenangst
Other
1.33k stars 46 forks source link

Not working in Big Sur #121

Closed simonrouse9461 closed 10 months ago

simonrouse9461 commented 3 years ago

Nothing works except switching system light/dark mode in Big Sur.

zenangst commented 3 years ago

@simonrouse9461 Hey mate, interesting, I'm running Big Sur, and "it works on my machine".

Mind sharing some more details about your setup, have you given Gray any extra privileges? Which apps are you trying to modify? Are they system applications or a third party?

Nosrac commented 3 years ago

Just upgraded to Big Sur and am also having problems.

In the Console app, when filtering for "Appearance" this is what is logged immediately after changing the setting for Xcode:

default 15:20:07.493993-0600    Gray    Gray: Command: defaults write com.apple.dt.Xcode NSRequiresAquaSystemAppearance -bool true
defaults read com.apple.dt.Xcode NSRequiresAquaSystemAppearance /Users/kyle/Library/Preferences/com.apple.dt.Xcode.plist
default 15:20:08.531510-0600    Xcode   Current system appearance, (HLTB: 1), (SLS: 0)
default 15:20:08.535351-0600    Xcode   Post-registration system appearance: (HLTB: 1)
default 15:20:08.535994-0600    distnoted   register name: AppleNoRedisplayAppearancePreferenceChanged object: kCFNotificationAnyObject token: 130000001a pid: 63312
default 15:20:08.536065-0600    distnoted   register name: AppleNoRedisplayAppearancePreferenceChanged object: kCFNotificationAnyObject token: 1400000019 pid: 63312
default 15:20:08.552668-0600    distnoted   register name: AppleNoRedisplayAppearancePreferenceChanged object: kCFNotificationAnyObject token: 1c00000023 pid: 63312
default 15:20:09.166357-0600    Xcode   Invalidate NSApp effectiveAppearance
default 15:20:09.229767-0600    Xcode   NSApp cache appearance:
-NSRequiresAquaSystemAppearance: 1
-appearance: (null)
-effectiveAppearance: <NSCompositeAppearance: 0x7facf1006440
 (
    "<NSAquaAppearance: 0x7facf1009a20>",
    "<NSSystemAppearance: 0x7facefc3d9c0>"
)>

––

Here is what happens when I filter for Gray's logged items:

default 15:22:23.206166-0600    Gray    Gray: New settings for Xcode = dark
default 15:22:23.206454-0600    Gray    Gray: Command: defaults write com.apple.dt.Xcode NSRequiresAquaSystemAppearance -bool false
defaults read com.apple.dt.Xcode NSRequiresAquaSystemAppearance /Users/kyle/Library/Preferences/com.apple.dt.Xcode.plist
default 15:22:23.417903-0600    Gray    Gray: terminal output: (0)
default 15:22:24.083915-0600    Gray    _LSBundleCopyOrCheckNode: cached node not found, _LSBundleCreateNode for bundleID 3780 returned -43
default 15:22:24.125211-0600    Gray    -[SFLGenericList _insertItem:atIndex:error:]_block_invoke item: 2D5E3A12-BF35-4CCF-9D41-CE2642DBB8BB at index: 0 list: com.apple.LSSharedFileList.RecentApplications
default 15:22:24.126010-0600    Gray    received: com.apple.LSSharedFileList.RecentApplications
Nosrac commented 3 years ago

Update:

A few hours later and it seems to be working. I'll let you know if I figure out anything.

zenangst commented 3 years ago

@Nosrac interesting find, I'm gonna have to do some deep diving here to see what is up.

Nosrac commented 3 years ago

I did have the Appearance: Auto global setting FYI

zenangst commented 3 years ago

@Nosrac Oh, that is interesting. Thanks for reporting back to me! 😎 Perhaps we could check the user's current global setting to see if Gray is eligible to do its job.

webenadam commented 3 years ago

So does it work on BigSur or not?

webenadam commented 3 years ago

Doesn't seem to work for me (using macbook air m1 2020, BigSur 11.1):

CleanShot 2021-01-30 at 20 27 10

webenadam commented 3 years ago

Sorry, now i see it does work for everything except the calendar.

*the calculator also doesn't change but i'm not sure if he is suppose to :)

VictorPapyshev commented 3 years ago

Gray doesn't seem to make Xcode appear dark for me, either.

M1 MacBook Pro, Big Sur 11.1, tried with system appearance light and auto.

Let me know if there's anything I can do/provide to help!

zenangst commented 3 years ago

I think I've managed to figure it out why certain apps don't properly change. Could you please take 0.17.0 for a spin to see if that doesn't solve the issue - https://github.com/zenangst/Gray/releases/tag/0.17.0

webenadam commented 3 years ago

Tried 0.17.0

Calendar doesn't work.

cvega48 commented 3 years ago

Working awesome on Big Sur 11.3.1 - Hackintosh Laptop

cvega48 commented 3 years ago

Tried 0.17.0

Calendar doesn't work.

Didn't work for me as well. Took 2 App restarts and works great now.

webenadam commented 3 years ago

Didn't work for me as well. Took 2 App restarts and works great now.

Well for me it doesn't work, no matter how many app restarts. (Macbook air M1)

zenangst commented 3 years ago

@webenadam:

Tried 0.17.0 Calendar doesn't work.

Is this the only app that you have issues with?

zenangst commented 3 years ago

@cvega48 seems like there has been some changes to plist caching because it seems a bit more unreliable than before. I've also seen that it doesn't always work. Will have to revisit this to see if there is a more reliable method.

simonrouse9461 commented 2 years ago

Any update on this?

zenangst commented 2 years ago

@simonrouse9461 did you try the latest 0.17.0 version? It does have some minor things included that might help with the issue.

IsaacShelton commented 2 years ago

0.17.0 doesn't work at least for m1 mac big sur

tried several built-in apps and none of them worked

zenangst commented 2 years ago

@IsaacShelton which apps are you trying to update, the system applications or third party ones? And have you given Gray permissions?

IsaacShelton commented 2 years ago

I got it to work now

I thought you could enable dark mode for only certain apps when in light mode but I guess you can only enable light mode for certain apps when in dark mode

zenangst commented 2 years ago

@IsaacShelton unfortunately, the way Apple implemented this override is that it only works on way, so you can only enable light mode when using dark mode as your base. In the early betas, you could do the opposite.