Skip to content

Commit

Permalink
feat: use dedicated icon for rust files (#1460)
Browse files Browse the repository at this point in the history
  • Loading branch information
EstebanBorai authored Oct 26, 2023
1 parent 8f4e1c9 commit 69b1fcb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions CodeEdit/Features/CEWorkspace/Models/CEWorkspaceFileIcon.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ enum FileIcon {
case mod
case Makefile
case ts
case rs
}
// swiftlint:enable identifier_name

Expand Down Expand Up @@ -92,6 +93,8 @@ enum FileIcon {
return "m.square"
case .Makefile:
return "terminal"
case .rs:
return "r.square"
default:
return "doc"
}
Expand All @@ -112,17 +115,19 @@ enum FileIcon {
case .sh:
return .green
case .vue:
return Color(red: 0.255, green: 0.722, blue: 0.514, opacity: 1.000)
return Color(red: 0.255, green: 0.722, blue: 0.514, opacity: 1.0)
case .h:
return Color(red: 0.667, green: 0.031, blue: 0.133, opacity: 1.000)
return Color(red: 0.667, green: 0.031, blue: 0.133, opacity: 1.0)
case .m:
return Color(red: 0.271, green: 0.106, blue: 0.525, opacity: 1.000)
return Color(red: 0.271, green: 0.106, blue: 0.525, opacity: 1.0)
case .go:
return Color(red: 0.02, green: 0.675, blue: 0.757, opacity: 1.0)
case .sum, .mod:
return Color(red: 0.925, green: 0.251, blue: 0.478, opacity: 1.0)
case .Makefile:
return Color(red: 0.937, green: 0.325, blue: 0.314, opacity: 1.0)
case .rs:
return .orange
default:
return .accentColor
}
Expand Down

0 comments on commit 69b1fcb

Please sign in to comment.