Skip to content

Commit 8b90cca

Browse files
hasecilujesseduffield
authored andcommitted
Use HEX colors on file icons instead of C256 colors
1 parent 3573289 commit 8b90cca

File tree

3 files changed

+745
-706
lines changed

3 files changed

+745
-706
lines changed

pkg/gui/presentation/files.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func getFileLine(
157157

158158
if showFileIcons {
159159
icon := icons.IconForFile(name, isSubmodule, isLinkedWorktree, isDirectory)
160-
paint := color.C256(icon.Color, false)
160+
paint := color.HEX(icon.Color, false)
161161
output += paint.Sprint(icon.Icon) + nameColor.Sprint(" ")
162162
}
163163

@@ -267,7 +267,7 @@ func getCommitFileLine(
267267

268268
if showFileIcons {
269269
icon := icons.IconForFile(name, isSubmodule, isLinkedWorktree, isDirectory)
270-
paint := color.C256(icon.Color, false)
270+
paint := color.HEX(icon.Color, false)
271271
output += paint.Sprint(icon.Icon) + " "
272272
}
273273

0 commit comments

Comments
 (0)