winfetch: add more color display

This commit is contained in:
2026-02-03 22:10:45 +01:00
parent 01481b3e94
commit d41fa4d4bd

View File

@@ -107,7 +107,7 @@ if ($Logo -eq "small") {
"$($colors.BrightBlue)CPU$($colors.Reset): $($cpu.Name.Trim())",
"$($colors.BrightBlue)Memory$($colors.Reset): ${usedMemGB}GB / ${totalMemGB}GB",
"",
"$($colors.Blue)███$($colors.BrightBlue)███$($colors.Cyan)███$($colors.BrightCyan)███$($colors.Green)███$($colors.BrightGreen)███$($colors.Yellow)███$($colors.BrightYellow)███$($colors.Reset)"
(($colors.Keys | Where-Object { $_ -ne 'Reset' -and $_ -ne 'Gray' -and $_ -ne 'White' } | Sort-Object | ForEach-Object { "$($colors[$_])███" }) -join '') + $colors.Reset
)
} else {
$info = @(
@@ -125,7 +125,7 @@ if ($Logo -eq "small") {
"$($colors.BrightBlue)Memory$($colors.Reset): ${usedMemGB}GB / ${totalMemGB}GB",
"$($colors.BrightBlue)Disk (C:)$($colors.Reset): ${usedDiskGB}GB / ${totalDiskGB}GB",
"",
"$($colors.Blue)███$($colors.BrightBlue)███$($colors.Cyan)███$($colors.BrightCyan)███$($colors.Green)███$($colors.BrightGreen)███$($colors.Yellow)███$($colors.BrightYellow)███$($colors.Reset)"
(($colors.Keys | Where-Object { $_ -ne 'Reset' -and $_ -ne 'Gray' -and $_ -ne 'White' } | Sort-Object | ForEach-Object { "$($colors[$_])███" }) -join '') + $colors.Reset
)
}