Make drawing the grid in the timeline a DB5 option.
This commit is contained in:
parent
24db26777f
commit
994426ffa1
|
@ -34,6 +34,7 @@ struct TimelineCellAppearance: Equatable {
|
|||
let starDimension: CGFloat
|
||||
|
||||
let gridColor: NSColor
|
||||
let drawsGrid: Bool
|
||||
|
||||
let avatarSize: NSSize
|
||||
let avatarMarginRight: CGFloat
|
||||
|
@ -71,6 +72,7 @@ struct TimelineCellAppearance: Equatable {
|
|||
self.starDimension = theme.float(forKey: "MainWindow.Timeline.cell.starDimension")
|
||||
|
||||
self.gridColor = theme.colorWithAlpha(forKey: "MainWindow.Timeline.gridColor")
|
||||
self.drawsGrid = theme.bool(forKey: "MainWindow.Timeline.drawsGrid")
|
||||
|
||||
self.avatarSize = theme.size(forKey: "MainWindow.Timeline.cell.avatar")
|
||||
self.avatarMarginRight = theme.float(forKey: "MainWindow.Timeline.cell.avatarMarginRight")
|
||||
|
|
|
@ -68,7 +68,7 @@ class TimelineTableRowView : NSTableRowView {
|
|||
|
||||
super.draw(dirtyRect)
|
||||
|
||||
if !isSelected && !isNextRowSelected {
|
||||
if cellAppearance.drawsGrid && !isSelected && !isNextRowSelected {
|
||||
drawSeparator(in: dirtyRect)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,6 +66,8 @@
|
|||
<string>000000</string>
|
||||
<key>gridColorAlpha</key>
|
||||
<real>0.1</real>
|
||||
<key>drawsGrid</key>
|
||||
<false/>
|
||||
<key>header</key>
|
||||
<dict>
|
||||
<key>backgroundColor</key>
|
||||
|
|
Loading…
Reference in New Issue