r-thomson / nightfall Goto Github PK
View Code? Open in Web Editor NEWA macOS menu bar utility for quickly toggling dark mode, written in Swift.
License: MIT License
A macOS menu bar utility for quickly toggling dark mode, written in Swift.
License: MIT License
Currently running:
My current Nightfall smooth transition preferences are:
I have included a screen capture.
The smooth transition works very nicely when in Light mode and transitioning to dark mode. However, when transitioning from dark mode to light mode there is no smooth transition for the menu bar and wallpaper. When transitioning from dark to light mode there is a delay of fewer than 1 second before the system changes to light mode and there is no smooth transition it's just a slightly delayed, sudden appearance change. The application windows still have a smooth transition e.g. the Finder window, Safari, Chrome etc.
From Dark to Light mode I noticed that if I increased the smooth transition duration there would still be a delay and the menu bar&wallpaper still "jolt" a little before the transition started, however, the smooth transition would be visible.
Conversely, if I turned off Smooth transition there would still be a delay when transitioning from Dark to Light mode.
Certain shortcuts seem to get "eaten up" and thus cannot be used to configure Nightfall's shortcut in the settings window.
One of them is ⌃⌥⌘A, another one is the default ⌃⌥⌘T.
So after changing the shortcut once, you can't change it back to the default.
Hi I just started using this app on the M1 MacBook Pro and it runs fine via Rosetta but if possible a native release would be nice. It should only involve updating the architecture list and rebuilding as detailed here.
Another related suggestion which I can create another issue for if needed is updating the app icon to be consistent with the new icon style introduced in Big Sur.
Thanks for reading!
Awesome work with getting it to transition gracefully to dark/light mode! I currently use a global hotkey to transition, which does so suddenly but works every time.
Nightfall seems to often ignore the hotkey unless the 'correct' application is in focus. e.g.������������ with Home.app in focus it will never capture the hotkey and transition, but with the Shortcuts pref in focus it works everytime.
Since it's using macOS' built-in API to capture the shortcut not sure how much control you have over this - perhaps adding a CLI flag to toggle (and then being able to call that through Alfred or SKHD) could offer another way to tackle this?
Catalina 10.15.4
Hi,
I really like your app, it's very handy for me. But I just encountered a bug in Finder. Here's what happened:
Maybe you could have a look into this issue. That would be awesome :-)
p.s. Just a small feature suggestion: I would find it so great if you implemented an option to always launch in light mode.
When I launch nightfall I get a dialog box that says An AppleScript error occurred. Error -2147450879
. I've accepted everything in system preferences.
This indicates the full error message is cannot set default target of scripting component 0 to (null)
Add an option allowing left click to open the options menu, and right click to toggle dark mode.
Firstly, thank you for this tool! I use it a lot to test appearance stuff when developing.
I didn't realise I was on an older version (2.1.1) for a while as I installed this ~1 year ago and hadn't bothered checking for updates.
I think it could be quite useful to have either automatic update checks (say, weekly), or maybe a "Check for Updates" option in the right-click menu.
Hey!
Thanks for making this. It would be awesome if it could run a shell script on theme change :)
It would be nice if also the desktop wall paper could change, based on two different choices: one for light and one for dark.
Is it possible?
It looks like the new way to accomplish “launch at login” functionality is with SMAppService
instead of SMLoginItemSetEnabled
, which this app uses currently.
SMAppService
does not exist prior to macOS 13, though, and I’d rather not maintain two implementations of the same thing, so we’d need to drop support for older macOS versions. Maybe in a few years.
Trying to compile on Xcode 14.3.1 fails with this error
'init(display:outputWidth:outputHeight:pixelFormat:properties:handler:)' is only available in macOS 13.0 or newer
This is patently untrue, as this app has been using the same API for years. It seems this is a bug in Xcode, where this API was incorrectly marked as introduced in macOS 13.
Allegedly fixed in Xcode 15.
https://stackoverflow.com/questions/76181646/xcode-14-3-deprecating-quartcore-apis-in-a-weird-way
Split from #11
error: Build input file cannot be found: '/Users/ryanthomson/Developer/Nightfall/Nightfall/Views/PreferencesView.swift'
Please replace
AFCF6CB223B5254400C5CA70 /* PreferencesView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = PreferencesView.swift; path = /Users/ryanthomson/Developer/Nightfall/Nightfall/Views/PreferencesView.swift; sourceTree = "<absolute>"; };
with
AFCF6CB223B5254400C5CA70 /* PreferencesView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreferencesView.swift; sourceTree = "<group>"; };
in project.pbxproj file
While toggling to dark/light mode for the first time, a prompt comes up asking the user to grant Nightfall permission to record the screen.
I consider this a bug.
To really crank up the laziness of devs have the modes be determined by the ambient light.
From a quick Google I found
But thanks to Apple that may or may not work.
I would like to be able to set Dark Mode to activate and deactivate separately from Night Shift. Previously I accomplished this with Night Owl, which has been degraded with spyware by its new owner.
I hope to increase the option of hiding menu application icons, and I am usually used to shortcut keys,Hope to adopt the opinions, thank you!
Hey there.
First off, thank you for making this awesome little app, 2nd - is there a way to donate, like www.buymeacoffee.com or so?
And last but not least (I know it's a bit of a legacy thing as my work mac is still Monterey), I'm getting a funny error regarding screen recording permissions. I've already granted this permission but I still get a popup asking to grant access. Nothing wild but I thought I mention it.
Thanks again for this great little tool.
btw: It runs perfectly on my private M2 :)
I've noticed that whenever I resume from the laptop being closed or asleep, I have to reopen nightfall. I'm not sure if it's crashing or closing itself, but it adds a fair bit of friction.
I'm on an M1 Max running Sonoma 14.5.
it tells me I need to update and contact the developer.
Thank you for this lovely utility, the ability to animate the toggle is lovely. One thing I'd love to be able to do is to toggle the menubar icon to be hidden––is this something that's been considered?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.