Remove 10.10 compatibility workarounds.
This commit is contained in:
6 files changed
+24
-37
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user