diff --git a/writeas/AppDelegate.swift b/writeas/AppDelegate.swift
index 7410c55..8e6fc95 100644
--- a/writeas/AppDelegate.swift
+++ b/writeas/AppDelegate.swift
@@ -27,6 +27,12 @@ class AppDelegate: NSObject, NSApplicationDelegate {
}
}
+ @IBAction func toggleNightMode(_ sender: NSMenuItem) {
+ let isOff = sender.state == NSOffState
+ vc?.toggle(isNight: isOff)
+ sender.state = isOff ? NSOnState : NSOffState
+ }
+
@IBAction func saveDocument(_ sender: AnyObject) {
vc?.saveDocument()
}
diff --git a/writeas/Base.lproj/Main.storyboard b/writeas/Base.lproj/Main.storyboard
index fa197e0..ff74376 100644
--- a/writeas/Base.lproj/Main.storyboard
+++ b/writeas/Base.lproj/Main.storyboard
@@ -226,6 +226,18 @@
+