Remove 10.10 compatibility workarounds.

This commit is contained in:
Damiano Galassi committed 2019-02-26 11:28:01 +01:00
1 parent 9ad00edfe0
commit a1933a752f
6 files changed
+24 -37

No files matched your search

+4 -11
View File
@@ -15,17 +15,10 @@ private func monospaceAttributes(size: CGFloat, aligment: NSTextAlignment, headI
ps.headIndent = headIndent
ps.alignment = aligment
if #available(macOS 10.11, *) {
return [NSAttributedString.Key.font: NSFont.monospacedDigitSystemFont(ofSize: size,
weight: bold ? NSFont.Weight.bold : NSFont.Weight.regular),
NSAttributedString.Key.paragraphStyle: ps,
NSAttributedString.Key.foregroundColor: color]
}
else {
return [NSAttributedString.Key.font: bold ? NSFont.boldSystemFont(ofSize: size) : NSFont.systemFont(ofSize: size),
NSAttributedString.Key.paragraphStyle: ps,
NSAttributedString.Key.foregroundColor: color]
}
return [NSAttributedString.Key.font: NSFont.monospacedDigitSystemFont(ofSize: size,
weight: bold ? NSFont.Weight.bold : NSFont.Weight.regular),
NSAttributedString.Key.paragraphStyle: ps,
NSAttributedString.Key.foregroundColor: color]
}
private let detailBoldMonospacedAttr = { () -> [NSAttributedString.Key : Any] in