Skip to content

Commit

Permalink
Improve diagnostic table view appearance for BigSur
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristalev committed Oct 27, 2021
1 parent eb7921c commit 31e7f56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Nimble/Sources/Controls/DiagnosticView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ class DiagnosticView: NSViewController, WorkbenchViewController {
table?.tableColumns.forEach({ (column) in
column.headerCell.attributedStringValue = NSAttributedString(string: column.title, attributes: [NSAttributedString.Key.font: NSFont.systemFont(ofSize: 13)])
})
if #available(macOS 11, *) {
table?.style = .plain
}
}

override func viewDidAppear() {
Expand Down
2 changes: 1 addition & 1 deletion Nimble/Sources/Controls/DiagnosticView.xib
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<rect key="frame" x="0.0" y="0.0" width="829" height="271"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" multipleSelection="NO" autosaveColumns="NO" rowSizeStyle="automatic" headerView="gi6-Ou-ZlT" viewBased="YES" id="bdx-yJ-1bu">
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" tableStyle="plain" columnReordering="NO" multipleSelection="NO" autosaveColumns="NO" rowSizeStyle="automatic" headerView="gi6-Ou-ZlT" viewBased="YES" id="bdx-yJ-1bu">
<rect key="frame" x="0.0" y="0.0" width="829" height="246"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<size key="intercellSpacing" width="3" height="2"/>
Expand Down

0 comments on commit 31e7f56

Please sign in to comment.