Apply formatter

This commit is contained in:
Anthony Rose 2025-02-13 12:08:53 +00:00
parent 4e3a5fe8ac
commit e52fc02716

View file

@ -125,38 +125,38 @@ function Set-AntDarkMode {
} }
$DefaultTheme = @{ $DefaultTheme = @{
Command = "$([char]0x1b)[93m" Command = "$([char]0x1b)[93m"
Comment = "$([char]0x1b)[32m" Comment = "$([char]0x1b)[32m"
ContinuationPrompt = "$([char]0x1b)[33m" ContinuationPrompt = "$([char]0x1b)[33m"
Default = "$([char]0x1b)[33m" Default = "$([char]0x1b)[33m"
Emphasis = "$([char]0x1b)[96m" Emphasis = "$([char]0x1b)[96m"
Error = "$([char]0x1b)[91m" Error = "$([char]0x1b)[91m"
InlinePrediction = "$([char]0x1b)[38;5;238m" InlinePrediction = "$([char]0x1b)[38;5;238m"
Keyword = "$([char]0x1b)[92m" Keyword = "$([char]0x1b)[92m"
ListPrediction = "$([char]0x1b)[33m" ListPrediction = "$([char]0x1b)[33m"
ListPredictionSelected = "$([char]0x1b)[48;5;238m" ListPredictionSelected = "$([char]0x1b)[48;5;238m"
ListPredictionTooltip = "$([char]0x1b)[38;5;238m" ListPredictionTooltip = "$([char]0x1b)[38;5;238m"
Member = "$([char]0x1b)[37m" Member = "$([char]0x1b)[37m"
Number = "$([char]0x1b)[97m" Number = "$([char]0x1b)[97m"
Operator = "$([char]0x1b)[90m" Operator = "$([char]0x1b)[90m"
Parameter = "$([char]0x1b)[90m" Parameter = "$([char]0x1b)[90m"
Selection = "$([char]0x1b)[35;43m" Selection = "$([char]0x1b)[35;43m"
String = "$([char]0x1b)[36m" String = "$([char]0x1b)[36m"
Type = "$([char]0x1b)[37m" Type = "$([char]0x1b)[37m"
Variable = "$([char]0x1b)[92m" Variable = "$([char]0x1b)[92m"
} }
$PSStyle.Formatting.FormatAccent = "$([char]0x1b)[32;1m" $PSStyle.Formatting.FormatAccent = "$([char]0x1b)[32;1m"
$PSStyle.Formatting.TableHeader = "$([char]0x1b)[32;1m" $PSStyle.Formatting.TableHeader = "$([char]0x1b)[32;1m"
$PSStyle.Formatting.ErrorAccent = "$([char]0x1b)[36;1m" $PSStyle.Formatting.ErrorAccent = "$([char]0x1b)[36;1m"
$PSStyle.Formatting.Error = "$([char]0x1b)[31;1m" $PSStyle.Formatting.Error = "$([char]0x1b)[31;1m"
$PSStyle.Formatting.Warning = "$([char]0x1b)[33;1m" $PSStyle.Formatting.Warning = "$([char]0x1b)[33;1m"
$PSStyle.Formatting.Verbose = "$([char]0x1b)[33;1m" $PSStyle.Formatting.Verbose = "$([char]0x1b)[33;1m"
$PSStyle.Formatting.Debug = "$([char]0x1b)[33;1m" $PSStyle.Formatting.Debug = "$([char]0x1b)[33;1m"
$PSStyle.Progress.Style = "$([char]0x1b)[33;1m" $PSStyle.Progress.Style = "$([char]0x1b)[33;1m"
$PSStyle.FileInfo.Directory = "$([char]0x1b)[44;1m" $PSStyle.FileInfo.Directory = "$([char]0x1b)[44;1m"
$PSStyle.FileInfo.SymbolicLink = "$([char]0x1b)[36;1m" $PSStyle.FileInfo.SymbolicLink = "$([char]0x1b)[36;1m"
$PSStyle.FileInfo.Executable = "$([char]0x1b)[32;1m" $PSStyle.FileInfo.Executable = "$([char]0x1b)[32;1m"
Set-PSReadLineOption -Colors $DefaultTheme Set-PSReadLineOption -Colors $DefaultTheme
} }
@ -170,43 +170,43 @@ function Set-AntLightMode {
} }
$ISETheme = @{ $ISETheme = @{
Command = $PSStyle.Foreground.FromRGB(0x0000FF) Command = $PSStyle.Foreground.FromRGB(0x0000FF)
Comment = $PSStyle.Foreground.FromRGB(0x006400) Comment = $PSStyle.Foreground.FromRGB(0x006400)
ContinuationPrompt = $PSStyle.Foreground.FromRGB(0x0000FF) ContinuationPrompt = $PSStyle.Foreground.FromRGB(0x0000FF)
Default = $PSStyle.Foreground.FromRGB(0x0000FF) Default = $PSStyle.Foreground.FromRGB(0x0000FF)
Emphasis = $PSStyle.Foreground.FromRGB(0x287BF0) Emphasis = $PSStyle.Foreground.FromRGB(0x287BF0)
Error = $PSStyle.Foreground.FromRGB(0xE50000) Error = $PSStyle.Foreground.FromRGB(0xE50000)
InlinePrediction = $PSStyle.Foreground.FromRGB(0x93A1A1) InlinePrediction = $PSStyle.Foreground.FromRGB(0x93A1A1)
Keyword = $PSStyle.Foreground.FromRGB(0x00008b) Keyword = $PSStyle.Foreground.FromRGB(0x00008b)
ListPrediction = $PSStyle.Foreground.FromRGB(0x06DE00) ListPrediction = $PSStyle.Foreground.FromRGB(0x06DE00)
Member = $PSStyle.Foreground.FromRGB(0x000000) Member = $PSStyle.Foreground.FromRGB(0x000000)
Number = $PSStyle.Foreground.FromRGB(0x800080) Number = $PSStyle.Foreground.FromRGB(0x800080)
Operator = $PSStyle.Foreground.FromRGB(0x757575) Operator = $PSStyle.Foreground.FromRGB(0x757575)
Parameter = $PSStyle.Foreground.FromRGB(0x000080) Parameter = $PSStyle.Foreground.FromRGB(0x000080)
String = $PSStyle.Foreground.FromRGB(0x8b0000) String = $PSStyle.Foreground.FromRGB(0x8b0000)
Type = $PSStyle.Foreground.FromRGB(0x008080) Type = $PSStyle.Foreground.FromRGB(0x008080)
Variable = $PSStyle.Foreground.FromRGB(0xff4500) Variable = $PSStyle.Foreground.FromRGB(0xff4500)
ListPredictionSelected = $PSStyle.Background.FromRGB(0x93A1A1) ListPredictionSelected = $PSStyle.Background.FromRGB(0x93A1A1)
Selection = $PSStyle.Background.FromRGB(0x00BFFF) Selection = $PSStyle.Background.FromRGB(0x00BFFF)
} }
$PSStyle.Formatting.FormatAccent = "$([char]0x1b)[32m" $PSStyle.Formatting.FormatAccent = "$([char]0x1b)[32m"
$PSStyle.Formatting.TableHeader = "$([char]0x1b)[32m" $PSStyle.Formatting.TableHeader = "$([char]0x1b)[32m"
$PSStyle.Formatting.ErrorAccent = "$([char]0x1b)[36m" $PSStyle.Formatting.ErrorAccent = "$([char]0x1b)[36m"
$PSStyle.Formatting.Error = "$([char]0x1b)[31m" $PSStyle.Formatting.Error = "$([char]0x1b)[31m"
$PSStyle.Formatting.Warning = "$([char]0x1b)[33m" $PSStyle.Formatting.Warning = "$([char]0x1b)[33m"
$PSStyle.Formatting.Verbose = "$([char]0x1b)[33m" $PSStyle.Formatting.Verbose = "$([char]0x1b)[33m"
$PSStyle.Formatting.Debug = "$([char]0x1b)[33m" $PSStyle.Formatting.Debug = "$([char]0x1b)[33m"
$PSStyle.Progress.Style = "$([char]0x1b)[33m" $PSStyle.Progress.Style = "$([char]0x1b)[33m"
$PSStyle.FileInfo.Directory = $PSStyle.Background.FromRgb(0x2f6aff) + $PSStyle.FileInfo.Directory = $PSStyle.Background.FromRgb(0x2f6aff) +
$PSStyle.Foreground.BrightWhite $PSStyle.Foreground.BrightWhite
$PSStyle.FileInfo.SymbolicLink = "$([char]0x1b)[36m" $PSStyle.FileInfo.SymbolicLink = "$([char]0x1b)[36m"
$PSStyle.FileInfo.Executable = "$([char]0x1b)[95m" $PSStyle.FileInfo.Executable = "$([char]0x1b)[95m"
if ($PSVersionTable.PSVersion.Major -gt 5) { if ($PSVersionTable.PSVersion.Major -gt 5) {
$PSStyle.FileInfo.Extension['.ps1'] = "$([char]0x1b)[36m" $PSStyle.FileInfo.Extension['.ps1'] = "$([char]0x1b)[36m"
$PSStyle.FileInfo.Extension['.ps1xml'] = "$([char]0x1b)[36m" $PSStyle.FileInfo.Extension['.ps1xml'] = "$([char]0x1b)[36m"
$PSStyle.FileInfo.Extension['.psd1'] = "$([char]0x1b)[36m" $PSStyle.FileInfo.Extension['.psd1'] = "$([char]0x1b)[36m"
$PSStyle.FileInfo.Extension['.psm1'] = "$([char]0x1b)[36m" $PSStyle.FileInfo.Extension['.psm1'] = "$([char]0x1b)[36m"
} }
Set-PSReadLineOption -Colors $ISETheme Set-PSReadLineOption -Colors $ISETheme