1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-29 00:29:34 +00:00

Tweaks cell height slightly further.

This commit is contained in:
Thomas Harte 2021-03-25 17:44:46 -04:00
parent 052ab44f1c
commit 6e2c65435a

View File

@ -195,9 +195,9 @@ class MachinePicker: NSObject, NSTableViewDataSource, NSTableViewDelegate {
func tableView(_ tableView: NSTableView, heightOfRow row: Int) -> CGFloat {
let font = NSFont.systemFont(ofSize: NSFont.systemFontSize)
// YUCK. TODO: find a way to use larger cells, with vertically-centred text.
// YUCK. TODO: find a way to use cells with vertically-centred text.
// Likely that means not using NSTextFieldCell.
return font.ascender - font.descender + 2.0
return font.ascender - font.descender + 2.5
}
// MARK: - Machine builder