Closed sidpagariya closed 7 years ago
The blur in the new notification center is a custom NSVisualEffectView. It unfortunately wont allow it's appearance to be set.
I have figured out how to use a default NSVisualEffectView with NSAppearanceNameVibrantDark and use that instead though so it matches the dock and menubar better.
Pushed some changes to this repo.
Sweet! Thanks so much! I will check it out!
Actually, closing this since the NC indeed looks great now!
So, I saw that in your code, you manually set the black color with an alpha level... is there a way to get a 100% vibrant dark color by preserving the transparency and vibrancy of the original notification center? Here's the original:
Here's the one with alpha of 0.9 (I modified the code and built the bundle again with Xcode):
Here's the one with alpha of 0.7 (Modified alpha level of the black color once more):
The way I was trying to ask was something like this: [It seems like a bug but the dev of the Battery Health App hasn't fixed it] On white notification center:
On darkNC (Alpha = 0.7):
Perhaps we could implement the notification center with a native dark color (kinda like the dock...) with alpha = 0 and just a dark vibrancy...? (Like the bug as shown above?)
I found that we could set the appearance of a view like so:
window.appearance = NSAppearance(named: NSAppearanceNameVibrantDark)
Could you possibly do something like this?(P.S. I saw that after downloading the https://github.com/SamRothCA/Today-Scripts repo, and then opening the Today View xib file in the designer in Xcode, Xcode has a Vibrancy Dark Option for the window!
Thanks! Sid.