mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 12:55:47 +02:00
Use HEX colors on file icons instead of C256 colors
This commit is contained in:
parent
3573289452
commit
8b90cca521
3 changed files with 745 additions and 706 deletions
|
@ -157,7 +157,7 @@ func getFileLine(
|
||||||
|
|
||||||
if showFileIcons {
|
if showFileIcons {
|
||||||
icon := icons.IconForFile(name, isSubmodule, isLinkedWorktree, isDirectory)
|
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(" ")
|
output += paint.Sprint(icon.Icon) + nameColor.Sprint(" ")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -267,7 +267,7 @@ func getCommitFileLine(
|
||||||
|
|
||||||
if showFileIcons {
|
if showFileIcons {
|
||||||
icon := icons.IconForFile(name, isSubmodule, isLinkedWorktree, isDirectory)
|
icon := icons.IconForFile(name, isSubmodule, isLinkedWorktree, isDirectory)
|
||||||
paint := color.C256(icon.Color, false)
|
paint := color.HEX(icon.Color, false)
|
||||||
output += paint.Sprint(icon.Icon) + " "
|
output += paint.Sprint(icon.Icon) + " "
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -8,7 +8,7 @@ import (
|
||||||
|
|
||||||
type IconProperties struct {
|
type IconProperties struct {
|
||||||
Icon string
|
Icon string
|
||||||
Color uint8
|
Color string
|
||||||
}
|
}
|
||||||
|
|
||||||
var isIconEnabled = false
|
var isIconEnabled = false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue