Add directory listing for custom themes

This commit is contained in:
Isaac Shoebottom 2022-03-03 15:46:06 -04:00
parent f03583c0d2
commit 2203d2c949

View File

@ -1,4 +1,4 @@
# Remove annoyance script v1.2.0 # Remove annoyance script v1.2.1
# For Vortex 1.5.4 / 1.5.5 / 1.5.6 # For Vortex 1.5.4 / 1.5.5 / 1.5.6
# Compact Style String # Compact Style String
@ -354,6 +354,14 @@ if (Test-Path -path $VortexThemeFolder) {
if ($ThemeSelection -eq 4) { if ($ThemeSelection -eq 4) {
Write-Host "Enter your custom theme name exactly, it will only work if the wording is exact" Write-Host "Enter your custom theme name exactly, it will only work if the wording is exact"
Write-Host "If the theme does not exist you will be reprompted. If you do not have one installed close the window" Write-Host "If the theme does not exist you will be reprompted. If you do not have one installed close the window"
Write-Host "Here is a listing of all your current custom themes. Type it exactly, including capitalization."
Write-Host ""
Write-Host "Theme Folder:"
Write-Host $VortexThemeFolder
Write-Host ""
Write-Host "Theme Names:"
Get-ChildItem $VortexThemeFolder -Name
Write-Host ""
$ThemeName = Read-Host -prompt "Please enter the name of the theme you want to modify)" $ThemeName = Read-Host -prompt "Please enter the name of the theme you want to modify)"
$TempThemeFolder = $VortexThemeFolder + $ThemeName $TempThemeFolder = $VortexThemeFolder + $ThemeName
while (((Test-Path -path $TempThemeFolder) -eq $false) -or ($ThemeName -eq "") -or ($ThemeName -eq $null) -or ($ThemeName -Like "*.*")) { while (((Test-Path -path $TempThemeFolder) -eq $false) -or ($ThemeName -eq "") -or ($ThemeName -eq $null) -or ($ThemeName -Like "*.*")) {