Merge branch 'master' of https://github.com/brentsimmons/Evergreen
This commit is contained in:
commit
e6c5110b64
|
@ -826,7 +826,7 @@
|
|||
849C645F1ED37A5D003D8FC0 = {
|
||||
CreatedOnToolsVersion = 8.2.1;
|
||||
DevelopmentTeam = M8L2WTLA8W;
|
||||
ProvisioningStyle = Automatic;
|
||||
ProvisioningStyle = Manual;
|
||||
};
|
||||
849C64701ED37A5D003D8FC0 = {
|
||||
CreatedOnToolsVersion = 8.2.1;
|
||||
|
@ -1286,7 +1286,6 @@
|
|||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
CODE_SIGN_IDENTITY = "Developer ID Application";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
DEVELOPMENT_TEAM = M8L2WTLA8W;
|
||||
|
@ -1336,7 +1335,6 @@
|
|||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
CODE_SIGN_IDENTITY = "Developer ID Application";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
DEVELOPMENT_TEAM = M8L2WTLA8W;
|
||||
|
@ -1362,7 +1360,7 @@
|
|||
buildSettings = {
|
||||
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CODE_SIGN_IDENTITY = "Mac Developer";
|
||||
CODE_SIGN_IDENTITY = "Developer ID Application";
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
DEVELOPMENT_TEAM = M8L2WTLA8W;
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
|
@ -1383,7 +1381,7 @@
|
|||
buildSettings = {
|
||||
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CODE_SIGN_IDENTITY = "Mac Developer";
|
||||
CODE_SIGN_IDENTITY = "Developer ID Application";
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
DEVELOPMENT_TEAM = M8L2WTLA8W;
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
|
|
|
@ -40,10 +40,40 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations {
|
|||
super.init()
|
||||
}
|
||||
|
||||
private func evergreenImage() -> NSImage? {
|
||||
var image: NSImage? = nil
|
||||
let imageWidth = 1024
|
||||
let imageHeight = 1024
|
||||
let imageSize = NSMakeSize(CGFloat(imageWidth), CGFloat(imageHeight))
|
||||
|
||||
if let drawingContext = CGContext(data: nil, width: imageWidth, height: imageHeight, bitsPerComponent: 8, bytesPerRow: 0, space: CGColorSpaceCreateDeviceRGB(), bitmapInfo: CGImageAlphaInfo.premultipliedFirst.rawValue) {
|
||||
|
||||
let graphicsContext = NSGraphicsContext(cgContext: drawingContext, flipped: false)
|
||||
NSGraphicsContext.saveGraphicsState()
|
||||
NSGraphicsContext.setCurrent(graphicsContext)
|
||||
|
||||
let targetRect = NSRect(origin: NSZeroPoint, size: imageSize)
|
||||
NSString(string: "🌲").draw(in: targetRect, withAttributes: [NSFontAttributeName: NSFont.systemFont(ofSize: 1000)])
|
||||
|
||||
NSGraphicsContext.restoreGraphicsState()
|
||||
|
||||
if let coreImage = drawingContext.makeImage() {
|
||||
image = NSImage(cgImage: coreImage, size: imageSize)
|
||||
}
|
||||
}
|
||||
|
||||
return image
|
||||
}
|
||||
|
||||
// MARK: NSApplicationDelegate
|
||||
|
||||
func applicationDidFinishLaunching(_ note: Notification) {
|
||||
|
||||
if let appIconImage = evergreenImage() {
|
||||
appIconImage.setName("NSApplicationIcon")
|
||||
NSApplication.shared().applicationIconImage = appIconImage
|
||||
}
|
||||
|
||||
registerDefaults()
|
||||
|
||||
currentTheme = themeLoader.defaultTheme
|
||||
|
|
10
README.md
10
README.md
|
@ -1 +1,9 @@
|
|||
# Evergreen
|
||||
# Evergreen
|
||||
|
||||
It’s a feed reader for MacOS.
|
||||
|
||||
No, it doesn’t support JSON Feed yet. It’s [on the to-do list](https://github.com/brentsimmons/Evergreen/issues/20).
|
||||
|
||||
It’s also not actually usable at this point.
|
||||
|
||||
More info: [https://ranchero.com/evergreen/](https://ranchero.com/evergreen/)
|
Loading…
Reference in New Issue