Improve labels color.
This commit is contained in:
6 files changed
+93
-84
No files matched your search
@@ -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" {
|
||||
|
||||
Reference in new issue
Block a user