Change any glyphs in the sidebar to white when selected to make them visible regardless of use control color selection

This commit is contained in:
Maurice Parker
2020-08-10 13:53:21 -05:00
parent c652486663
commit 73b120a91c
6 changed files with 110 additions and 26 deletions

View File

@@ -0,0 +1,36 @@
//
// SidebarTableRowView.swift
// NetNewsWire
//
// Created by Maurice Parker on 8/10/20.
// Copyright © 2020 Ranchero Software. All rights reserved.
//
import AppKit
class SidebarTableRowView : NSTableRowView {
override var isSelected: Bool {
didSet {
cellView?.isSelected = isSelected
}
}
init() {
super.init(frame: NSRect.zero)
}
required init?(coder: NSCoder) {
super.init(coder: coder)
}
private var cellView: SidebarCell? {
for oneSubview in subviews {
if let foundView = oneSubview as? SidebarCell {
return foundView
}
}
return nil
}
}