Skip to content

Commit 7d5e8be

Browse files
Fixed monochrome setting color to be gray instead of folder blue (#940)
1 parent ea4b8cc commit 7d5e8be

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

CodeEdit/Features/NavigatorSidebar/ProjectNavigator/OutlineView/OutlineTableViewCell.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,9 @@ final class OutlineTableViewCell: NSTableCellView {
129129
/// - Parameter item: The `FileItem` to get the color for
130130
/// - Returns: A `NSColor` for the given `FileItem`.
131131
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-
}
132+
return prefs.fileIconStyle == .color
133+
? item.children == nil ? NSColor(item.iconColor) : NSColor(named: "FolderBlue")!
134+
: .secondaryLabelColor
137135
}
138136
}
139137

0 commit comments

Comments
 (0)