     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() {

    }
}


        timer(1)
    }

    func timer5() {
        timer(5)
    }

    func timer15() {
        timer(15)
    }

    func timer30() {
        timer(30)
    }

    func timer60() {
        timer(60)
    }

    func timer(_ time: Int){
        var selectedIndex = 0
        switch time {
        case 1:
            timeRemainingInSeconds = 60
        case 5:
            selectedIndex = 1
            timeRemainingInSeconds = 120
        case 15:
            selectedIndex = 2
            timeRemainingInSeconds = 900
        case 30:
            selectedIndex = 3
            timeRemainingInSeconds = 1800
        case 60:
            selectedIndex = 4
            timeRemainingInSeconds = 3600
        default:
            break
        }

        for (index, menuItem) in timeMenuItems!.enumerated() {
            menuItem.state = index == selectedIndex ? NSOnState : NSOffState
        }
    }

