mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
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:
36
Mac/MainWindow/Sidebar/SidebarTableRowView.swift
Normal file
36
Mac/MainWindow/Sidebar/SidebarTableRowView.swift
Normal 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
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user