|
| 1 | +# Foreground Colors |
| 2 | + |
| 3 | +function fRed |
| 4 | +{ |
| 5 | + param ( |
| 6 | + $Msg |
| 7 | + ) |
| 8 | + Write-Host $Msg -NoNewline -ForegroundColor DarkRed |
| 9 | +} |
| 10 | + |
| 11 | +function fRedLight |
| 12 | +{ |
| 13 | + param ( |
| 14 | + $Msg |
| 15 | + ) |
| 16 | + Write-Host $Msg -NoNewline -ForegroundColor Red |
| 17 | +} |
| 18 | + |
| 19 | +function fGreen |
| 20 | +{ |
| 21 | + param ( |
| 22 | + $Msg |
| 23 | + ) |
| 24 | + Write-Host $Msg -NoNewline -ForegroundColor DarkGreen |
| 25 | +} |
| 26 | + |
| 27 | +function fGreenLight |
| 28 | +{ |
| 29 | + param ( |
| 30 | + $Msg |
| 31 | + ) |
| 32 | + Write-Host $Msg -NoNewline -ForegroundColor Green |
| 33 | +} |
| 34 | + |
| 35 | +function fYellow |
| 36 | +{ |
| 37 | + param ( |
| 38 | + $Msg |
| 39 | + ) |
| 40 | + Write-Host $Msg -NoNewline -ForegroundColor DarkYellow |
| 41 | +} |
| 42 | + |
| 43 | +function fYellowLight |
| 44 | +{ |
| 45 | + param ( |
| 46 | + $Msg |
| 47 | + ) |
| 48 | + Write-Host $Msg -NoNewline -ForegroundColor Yellow |
| 49 | +} |
| 50 | + |
| 51 | +function fBlue |
| 52 | +{ |
| 53 | + param ( |
| 54 | + $Msg |
| 55 | + ) |
| 56 | + Write-Host $Msg -NoNewline -ForegroundColor DarkBlue |
| 57 | +} |
| 58 | + |
| 59 | +function fBlueLight |
| 60 | +{ |
| 61 | + param ( |
| 62 | + $Msg |
| 63 | + ) |
| 64 | + Write-Host $Msg -NoNewline -ForegroundColor Blue |
| 65 | +} |
| 66 | + |
| 67 | +function fMagenta |
| 68 | +{ |
| 69 | + param ( |
| 70 | + $Msg |
| 71 | + ) |
| 72 | + Write-Host $Msg -NoNewline -ForegroundColor DarkMagenta |
| 73 | +} |
| 74 | + |
| 75 | +function fMagentaLight |
| 76 | +{ |
| 77 | + param ( |
| 78 | + $Msg |
| 79 | + ) |
| 80 | + Write-Host $Msg -NoNewline -ForegroundColor Magenta |
| 81 | +} |
| 82 | + |
| 83 | +function fCyan |
| 84 | +{ |
| 85 | + param ( |
| 86 | + $Msg |
| 87 | + ) |
| 88 | + Write-Host $Msg -NoNewline -ForegroundColor DarkCyan |
| 89 | +} |
| 90 | + |
| 91 | +function fCyanLight |
| 92 | +{ |
| 93 | + param ( |
| 94 | + $Msg |
| 95 | + ) |
| 96 | + Write-Host $Msg -NoNewline -ForegroundColor Cyan |
| 97 | +} |
| 98 | + |
| 99 | +function fWhite |
| 100 | +{ |
| 101 | + param ( |
| 102 | + $Msg |
| 103 | + ) |
| 104 | + Write-Host $Msg -NoNewline -ForegroundColor White |
| 105 | +} |
| 106 | + |
| 107 | +# Background Colors |
| 108 | + |
| 109 | +function bRed |
| 110 | +{ |
| 111 | + param ( |
| 112 | + $Msg |
| 113 | + ) |
| 114 | + Write-Host $Msg -NoNewline -BackgroundColor DarkRed |
| 115 | +} |
| 116 | + |
| 117 | +function bRedLight |
| 118 | +{ |
| 119 | + param ( |
| 120 | + $Msg |
| 121 | + ) |
| 122 | + Write-Host $Msg -NoNewline -BackgroundColor Red |
| 123 | +} |
| 124 | + |
| 125 | +function bGreen |
| 126 | +{ |
| 127 | + param ( |
| 128 | + $Msg |
| 129 | + ) |
| 130 | + Write-Host $Msg -NoNewline -BackgroundColor DarkGreen |
| 131 | +} |
| 132 | + |
| 133 | +function bGreenLight |
| 134 | +{ |
| 135 | + param ( |
| 136 | + $Msg |
| 137 | + ) |
| 138 | + Write-Host $Msg -NoNewline -BackgroundColor Green |
| 139 | +} |
| 140 | + |
| 141 | +function bYellow |
| 142 | +{ |
| 143 | + param ( |
| 144 | + $Msg |
| 145 | + ) |
| 146 | + Write-Host $Msg -NoNewline -BackgroundColor DarkYellow |
| 147 | +} |
| 148 | + |
| 149 | +function bYellowLight |
| 150 | +{ |
| 151 | + param ( |
| 152 | + $Msg |
| 153 | + ) |
| 154 | + Write-Host $Msg -NoNewline -BackgroundColor Yellow |
| 155 | +} |
| 156 | + |
| 157 | +function bBlue |
| 158 | +{ |
| 159 | + param ( |
| 160 | + $Msg |
| 161 | + ) |
| 162 | + Write-Host $Msg -NoNewline -BackgroundColor DarkBlue |
| 163 | +} |
| 164 | + |
| 165 | +function bBlueLight |
| 166 | +{ |
| 167 | + param ( |
| 168 | + $Msg |
| 169 | + ) |
| 170 | + Write-Host $Msg -NoNewline -BackgroundColor Blue |
| 171 | +} |
| 172 | + |
| 173 | +function bMagenta |
| 174 | +{ |
| 175 | + param ( |
| 176 | + $Msg |
| 177 | + ) |
| 178 | + Write-Host $Msg -NoNewline -BackgroundColor DarkMagenta |
| 179 | +} |
| 180 | + |
| 181 | +function bMagentaLight |
| 182 | +{ |
| 183 | + param ( |
| 184 | + $Msg |
| 185 | + ) |
| 186 | + Write-Host $Msg -NoNewline -BackgroundColor Magenta |
| 187 | +} |
| 188 | + |
| 189 | +function bCyan |
| 190 | +{ |
| 191 | + param ( |
| 192 | + $Msg |
| 193 | + ) |
| 194 | + Write-Host $Msg -NoNewline -BackgroundColor DarkCyan |
| 195 | +} |
| 196 | + |
| 197 | +function bCyanLight |
| 198 | +{ |
| 199 | + param ( |
| 200 | + $Msg |
| 201 | + ) |
| 202 | + Write-Host $Msg -NoNewline -BackgroundColor Cyan |
| 203 | +} |
| 204 | + |
| 205 | +function bWhite |
| 206 | +{ |
| 207 | + param ( |
| 208 | + $Msg |
| 209 | + ) |
| 210 | + Write-Host $Msg -NoNewline -BackgroundColor White |
| 211 | +} |
| 212 | + |
| 213 | +# Special Colors |
| 214 | + |
| 215 | +function resetColor |
| 216 | +{ |
| 217 | + Write-Host -NoNewline -Reset |
| 218 | +} |
| 219 | + |
| 220 | +# Theme |
| 221 | + |
| 222 | +function primaryColor { |
| 223 | + param ( |
| 224 | + $Msg |
| 225 | + ) |
| 226 | + fCyan $Msg |
| 227 | +} |
| 228 | + |
| 229 | +function secondaryColor { |
| 230 | + param ( |
| 231 | + $Msg |
| 232 | + ) |
| 233 | + fMagentaLight $Msg |
| 234 | +} |
| 235 | + |
| 236 | +function info { |
| 237 | + param ( |
| 238 | + $Msg |
| 239 | + ) |
| 240 | + fBlueLight " i " |
| 241 | + fBlue $Msg |
| 242 | + echo "" |
| 243 | +} |
| 244 | + |
0 commit comments