1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

Use HEX colors on file icons instead of C256 colors

This commit is contained in:
hasecilu
2024-09-06 19:34:19 -06:00
committed by Jesse Duffield
parent 3573289452
commit 8b90cca521
3 changed files with 745 additions and 706 deletions

View File

@ -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(" ")
}
@ -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) + " "
}