Skip to content

Commit

Permalink
Use HEX colors on file icons instead of C256 colors
Browse files Browse the repository at this point in the history
  • Loading branch information
hasecilu authored and jesseduffield committed Jan 2, 2025
1 parent 3573289 commit 8b90cca
Show file tree
Hide file tree
Showing 3 changed files with 745 additions and 706 deletions.
4 changes: 2 additions & 2 deletions pkg/gui/presentation/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func getFileLine(

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

Expand Down Expand Up @@ -267,7 +267,7 @@ func getCommitFileLine(

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

Expand Down
Loading

0 comments on commit 8b90cca

Please sign in to comment.