We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea4b8cc commit 7d5e8beCopy full SHA for 7d5e8be
CodeEdit/Features/NavigatorSidebar/ProjectNavigator/OutlineView/OutlineTableViewCell.swift
@@ -129,11 +129,9 @@ final class OutlineTableViewCell: NSTableCellView {
129
/// - Parameter item: The `FileItem` to get the color for
130
/// - Returns: A `NSColor` for the given `FileItem`.
131
private func color(for item: WorkspaceClient.FileItem) -> NSColor {
132
- if item.children == nil && prefs.fileIconStyle == .color {
133
- return NSColor(item.iconColor)
134
- } else {
135
- return NSColor(named: "FolderBlue")!
136
- }
+ return prefs.fileIconStyle == .color
+ ? item.children == nil ? NSColor(item.iconColor) : NSColor(named: "FolderBlue")!
+ : .secondaryLabelColor
137
}
138
139
0 commit comments