     var timeMenuItems: [NSMenuItem]?
     var isTimerRunning = false
     var oneMinuteMenuItem: NSMenuItem?
-    var twoMinuteMenuItem: NSMenuItem?
     var fiveMinuteMenuItem: NSMenuItem?
+    var fifteenMinuteMenuItem: NSMenuItem?
+    var thirtyMinuteMenuItem: NSMenuItem?
+    var sixtyMinuteMenuItem: NSMenuItem?
     var timeRemainingInSeconds = 1
     var timer: Timer?
     var minutesLeftString = ""
     var secondsLeftString = ""
 
     func applicationDidFinishLaunching(_ aNotification: Notification) {
-        let appearance = UserDefaults.standard.string(forKey: "AppleInterfaceStyle") ?? "Light"
-        let darkMode = (appearance == "Dark")
-
-        statusItem.button?.image = darkMode ?
+        statusItem.button?.image = UserDefaults.standard.string(forKey: "AppleInterfaceStyle") == "Dark" ?
             NSImage(named: "AppIconDark") : NSImage(named:"AppIcon")
         statusItem.button?.imageScaling = NSImageScaling.scaleProportionallyDown
 

    }

    func terminate() {

    }
}


        oneMinuteMenuItem?.state = NSOnState
        oneMinuteMenuItem?.isEnabled = true
        timeRemainingInSeconds = 60
        fiveMinuteMenuItem = NSMenuItem(title: "5 min", action: #selector(timer5), keyEquivalent: "2")
        fiveMinuteMenuItem?.isEnabled = true
        fifteenMinuteMenuItem = NSMenuItem(title: "15 min", action: #selector(timer15), keyEquivalent: "3")
        fifteenMinuteMenuItem?.isEnabled = true
        thirtyMinuteMenuItem = NSMenuItem(title: "30 min", action: #selector(timer30), keyEquivalent: "4")
        thirtyMinuteMenuItem?.isEnabled = true
        sixtyMinuteMenuItem = NSMenuItem(title: "60 min", action: #selector(timer60), keyEquivalent: "5")
        sixtyMinuteMenuItem?.isEnabled = true

        timeMenuItems = [NSMenuItem]()
        timeMenuItems?.append(oneMinuteMenuItem!)
        timeMenuItems?.append(fiveMinuteMenuItem!)
        timeMenuItems?.append(fifteenMinuteMenuItem!)
        timeMenuItems?.append(thirtyMinuteMenuItem!)
        timeMenuItems?.append(sixtyMinuteMenuItem!)

        menu.addItem(oneMinuteMenuItem!)
        menu.addItem(fiveMinuteMenuItem!)
        menu.addItem(fifteenMinuteMenuItem!)
        menu.addItem(thirtyMinuteMenuItem!)
        menu.addItem(sixtyMinuteMenuItem!)
        menu.addItem(NSMenuItem.separator())
        menu.addItem(NSMenuItem(title: "Quit", action: #selector(terminate), keyEquivalent: "q"))

