-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Wernhart
authored and
David Wernhart
committed
Feb 16, 2020
0 parents
commit 906cec6
Showing
80 changed files
with
3,984 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
AlDente.xcodeproj/project.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
AlDente.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
Binary file added
BIN
+179 KB
...j/project.xcworkspace/xcuserdata/davidwernhart.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
29 changes: 29 additions & 0 deletions
29
AlDente.xcodeproj/xcuserdata/davidwernhart.xcuserdatad/xcschemes/xcschememanagement.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>SchemeUserState</key> | ||
<dict> | ||
<key>AlDente.xcscheme_^#shared#^_</key> | ||
<dict> | ||
<key>orderHint</key> | ||
<integer>0</integer> | ||
</dict> | ||
<key>Hall.xcscheme_^#shared#^_</key> | ||
<dict> | ||
<key>orderHint</key> | ||
<integer>0</integer> | ||
</dict> | ||
<key>Helper.xcscheme_^#shared#^_</key> | ||
<dict> | ||
<key>orderHint</key> | ||
<integer>2</integer> | ||
</dict> | ||
<key>com.davidwernhart.Helper.xcscheme_^#shared#^_</key> | ||
<dict> | ||
<key>orderHint</key> | ||
<integer>1</integer> | ||
</dict> | ||
</dict> | ||
</dict> | ||
</plist> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>com.apple.security.app-sandbox</key> | ||
<false/> | ||
<key>com.apple.security.files.user-selected.read-only</key> | ||
<false/> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// | ||
// AppDelegate.swift | ||
// AlDente | ||
// | ||
// Created by David Wernhart on 09.02.20. | ||
// Copyright © 2020 David Wernhart. All rights reserved. | ||
// | ||
|
||
import Cocoa | ||
import SwiftUI | ||
import ServiceManagement | ||
import Foundation | ||
|
||
@NSApplicationMain | ||
class AppDelegate: NSObject, NSApplicationDelegate { | ||
|
||
//var window: NSWindow! | ||
var statusBarItem: NSStatusItem! | ||
var popover: NSPopover! | ||
|
||
func applicationDidFinishLaunching(_ aNotification: Notification) { | ||
|
||
let contentView = ContentView() | ||
|
||
// Create the popover | ||
let popover = NSPopover() | ||
popover.contentSize = NSSize(width: 400, height: 600) | ||
popover.behavior = .transient | ||
popover.contentViewController = NSHostingController(rootView: contentView) | ||
self.popover = popover | ||
|
||
|
||
let statusBar = NSStatusBar.system | ||
statusBarItem = statusBar.statusItem( | ||
withLength: NSStatusItem.squareLength) | ||
statusBarItem.button?.title = "🍝" | ||
|
||
if let button = self.statusBarItem.button { | ||
button.action = #selector(togglePopover(_:)) | ||
} | ||
|
||
Helper.instance.checkHelperVersion() | ||
|
||
} | ||
|
||
@objc func togglePopover(_ sender: AnyObject?) { | ||
self.popover.contentViewController?.view.window?.becomeKey() | ||
if let button = self.statusBarItem.button { | ||
if self.popover.isShown { | ||
self.popover.performClose(sender) | ||
} else { | ||
self.popover.show(relativeTo: button.bounds, of: button, preferredEdge: NSRectEdge.minY) | ||
} | ||
} | ||
} | ||
|
||
func applicationWillTerminate(_ aNotification: Notification) { | ||
// Insert code here to tear down your application | ||
} | ||
|
||
|
||
|
||
} | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "mac", | ||
"size" : "16x16", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"size" : "16x16", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"size" : "32x32", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"size" : "32x32", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"size" : "128x128", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"size" : "128x128", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"size" : "256x256", | ||
"idiom" : "mac", | ||
"filename" : "spaghetti-2.png", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"size" : "256x256", | ||
"idiom" : "mac", | ||
"filename" : "spaghetti-1.png", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"size" : "512x512", | ||
"idiom" : "mac", | ||
"filename" : "spaghetti.png", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"size" : "512x512", | ||
"scale" : "2x" | ||
} | ||
], | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
56 changes: 56 additions & 0 deletions
56
AlDente/Assets.xcassets/SettingsColor.colorset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
}, | ||
"colors" : [ | ||
{ | ||
"idiom" : "universal", | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"red" : "1.000", | ||
"alpha" : "1.000", | ||
"blue" : "1.000", | ||
"green" : "1.000" | ||
} | ||
} | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"appearances" : [ | ||
{ | ||
"appearance" : "luminosity", | ||
"value" : "light" | ||
} | ||
], | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"red" : "0.800", | ||
"alpha" : "1.000", | ||
"blue" : "0.800", | ||
"green" : "0.800" | ||
} | ||
} | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"appearances" : [ | ||
{ | ||
"appearance" : "luminosity", | ||
"value" : "dark" | ||
} | ||
], | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"red" : "0.100", | ||
"alpha" : "1.000", | ||
"blue" : "0.100", | ||
"green" : "0.100" | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="15705" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES"> | ||
<dependencies> | ||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="15705"/> | ||
</dependencies> | ||
<scenes> | ||
<!--Application--> | ||
<scene sceneID="JPo-4y-FX3"> | ||
<objects> | ||
<application id="hnw-xV-0zn" sceneMemberID="viewController"> | ||
<menu key="mainMenu" title="Main Menu" systemMenu="main" id="AYu-sK-qS6"> | ||
<items> | ||
<menuItem title="AlDente" id="1Xt-HY-uBw"> | ||
<modifierMask key="keyEquivalentModifierMask"/> | ||
<menu key="submenu" title="AlDente" systemMenu="apple" id="uQy-DD-JDr"> | ||
<items> | ||
<menuItem title="About AlDente" id="5kV-Vb-QxS"> | ||
<modifierMask key="keyEquivalentModifierMask"/> | ||
<connections> | ||
<action selector="orderFrontStandardAboutPanel:" target="Ady-hI-5gd" id="Exp-CZ-Vem"/> | ||
</connections> | ||
</menuItem> | ||
<menuItem isSeparatorItem="YES" id="VOq-y0-SEH"/> | ||
<menuItem title="Preferences…" keyEquivalent="," id="BOF-NM-1cW"/> | ||
<menuItem isSeparatorItem="YES" id="wFC-TO-SCJ"/> | ||
<menuItem title="Services" id="NMo-om-nkz"> | ||
<modifierMask key="keyEquivalentModifierMask"/> | ||
<menu key="submenu" title="Services" systemMenu="services" id="hz9-B4-Xy5"/> | ||
</menuItem> | ||
<menuItem isSeparatorItem="YES" id="4je-JR-u6R"/> | ||
<menuItem title="Hide AlDente" keyEquivalent="h" id="Olw-nP-bQN"> | ||
<connections> | ||
<action selector="hide:" target="Ady-hI-5gd" id="PnN-Uc-m68"/> | ||
</connections> | ||
</menuItem> | ||
<menuItem title="Hide Others" keyEquivalent="h" id="Vdr-fp-XzO"> | ||
<modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/> | ||
<connections> | ||
<action selector="hideOtherApplications:" target="Ady-hI-5gd" id="VT4-aY-XCT"/> | ||
</connections> | ||
</menuItem> | ||
<menuItem title="Show All" id="Kd2-mp-pUS"> | ||
<modifierMask key="keyEquivalentModifierMask"/> | ||
<connections> | ||
<action selector="unhideAllApplications:" target="Ady-hI-5gd" id="Dhg-Le-xox"/> | ||
</connections> | ||
</menuItem> | ||
<menuItem isSeparatorItem="YES" id="kCx-OE-vgT"/> | ||
<menuItem title="Quit AlDente" keyEquivalent="q" id="4sb-4s-VLi"> | ||
<connections> | ||
<action selector="terminate:" target="Ady-hI-5gd" id="Te7-pn-YzF"/> | ||
</connections> | ||
</menuItem> | ||
</items> | ||
</menu> | ||
</menuItem> | ||
<menuItem title="File" id="dMs-cI-mzQ"> | ||
<modifierMask key="keyEquivalentModifierMask"/> | ||
</menuItem> | ||
<menuItem title="Edit" id="5QF-Oa-p0T"> | ||
<modifierMask key="keyEquivalentModifierMask"/> | ||
</menuItem> | ||
<menuItem title="Format" id="jxT-CU-nIS"> | ||
<modifierMask key="keyEquivalentModifierMask"/> | ||
</menuItem> | ||
<menuItem title="View" id="H8h-7b-M4v"> | ||
<modifierMask key="keyEquivalentModifierMask"/> | ||
</menuItem> | ||
<menuItem title="Window" id="aUF-d1-5bR"> | ||
<modifierMask key="keyEquivalentModifierMask"/> | ||
</menuItem> | ||
<menuItem title="Help" id="wpr-3q-Mcd"> | ||
<modifierMask key="keyEquivalentModifierMask"/> | ||
</menuItem> | ||
</items> | ||
</menu> | ||
<connections> | ||
<outlet property="delegate" destination="Voe-Tx-rLC" id="PrD-fu-P6m"/> | ||
</connections> | ||
</application> | ||
<customObject id="Voe-Tx-rLC" customClass="AppDelegate" customModule="AlDente" customModuleProvider="target"/> | ||
<customObject id="YLy-65-1bz" customClass="NSFontManager"/> | ||
<customObject id="Ady-hI-5gd" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/> | ||
</objects> | ||
<point key="canvasLocation" x="75" y="0.0"/> | ||
</scene> | ||
</scenes> | ||
</document> |
Oops, something went wrong.