Improve labels color.

This commit is contained in:
Damiano Galassi committed 2020-02-13 11:07:31 +01:00
1 parent ce05de5b17
commit 687348027d
6 files changed
+93 -84

No files matched your search

+7 -1
View File
@@ -507,7 +507,13 @@ final class MetadataSearchController: NSViewController, NSTableViewDataSource, N
let key = result.orderedKeys[row]
if tableColumn?.identifier.rawValue == "name" {
let cell = tableView.makeView(withIdentifier: annotationCell, owner:self) as? NSTableCellView
cell?.textField?.attributedStringValue = key.localizedDisplayName.boldMonospacedAttributedString()
cell?.textField?.stringValue = key.localizedDisplayName
if #available(macOS 10.14, *) {
cell?.textField?.textColor = .secondaryLabelColor
}
else {
cell?.textField?.textColor = .disabledControlTextColor
}
return cell
}
else if tableColumn?.identifier.rawValue == "value" {