w0lfschild / darkNC

:open_file_folder: MacForge plugin that brings dark mode to macOS 10.12 Notification Center
https://www.macenhance.com/mflink?macforge://github.com/w0lfschild/myRepo/raw/master/mytweaks/org.w0lf.darkNC
33 stars 2 forks source link

Can you make the notification center less opaque + the notification cards natively dark? #1

Closed sidpagariya closed 7 years ago

sidpagariya commented 7 years ago

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:

screen shot 2017-03-22 at 5 49 22 am

Here's the one with alpha of 0.9 (I modified the code and built the bundle again with Xcode):

screen shot 2017-03-22 at 5 47 22 am

Here's the one with alpha of 0.7 (Modified alpha level of the black color once more):

screen shot 2017-03-22 at 5 51 47 am

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:

screen shot 2017-03-22 at 6 11 51 am

On darkNC (Alpha = 0.7):

screen shot 2017-03-22 at 6 11 10 am

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.

w0lfschild commented 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.

w0lfschild commented 7 years ago

Pushed some changes to this repo.

sidpagariya commented 7 years ago

Sweet! Thanks so much! I will check it out!

sidpagariya commented 7 years ago

Actually, closing this since the NC indeed looks great now!