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

File diff suppressed because it is too large Load diff

View file

@ -8,7 +8,7 @@ import (
type IconProperties struct {
Icon string
Color uint8
Color string
}
var isIconEnabled = false