diff --git a/functions/public/Invoke-WPFFormVariables.ps1 b/functions/public/Invoke-WPFFormVariables.ps1 deleted file mode 100644 index 6a2d2e7a..00000000 --- a/functions/public/Invoke-WPFFormVariables.ps1 +++ /dev/null @@ -1,36 +0,0 @@ -Function Invoke-WPFFormVariables { - <# - - .SYNOPSIS - Prints the logo - - #> - #If ($global:ReadmeDisplay -ne $true) { Write-Host "If you need to reference this display again, run Get-FormVariables" -ForegroundColor Yellow; $global:ReadmeDisplay = $true } - - - Write-Host "" - Write-Host " CCCCCCCCCCCCCTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT " - Write-Host " CCC::::::::::::CT:::::::::::::::::::::TT:::::::::::::::::::::T " - Write-Host "CC:::::::::::::::CT:::::::::::::::::::::TT:::::::::::::::::::::T " - Write-Host "C:::::CCCCCCCC::::CT:::::TT:::::::TT:::::TT:::::TT:::::::TT:::::T " - Write-Host "C:::::C CCCCCCTTTTTT T:::::T TTTTTTTTTTTT T:::::T TTTTTT" - Write-Host "C:::::C T:::::T T:::::T " - Write-Host "C:::::C T:::::T T:::::T " - Write-Host "C:::::C T:::::T T:::::T " - Write-Host "C:::::C T:::::T T:::::T " - Write-Host "C:::::C T:::::T T:::::T " - Write-Host "C:::::C T:::::T T:::::T " - Write-Host "C:::::C CCCCCC T:::::T T:::::T " - Write-Host "C:::::CCCCCCCC::::C TT:::::::TT TT:::::::TT " - Write-Host "CC:::::::::::::::C T:::::::::T T:::::::::T " - Write-Host "CCC::::::::::::C T:::::::::T T:::::::::T " - Write-Host " CCCCCCCCCCCCC TTTTTTTTTTT TTTTTTTTTTT " - Write-Host "" - Write-Host "====Chris Titus Tech=====" - Write-Host "=====Windows Toolbox=====" - - #====DEBUG GUI Elements==== - - #Write-Host "Found the following interactable elements from our form" -ForegroundColor Cyan - #get-variable WPF* -} diff --git a/functions/public/Show-CTTLogo.ps1 b/functions/public/Show-CTTLogo.ps1 new file mode 100644 index 00000000..c9a7518f --- /dev/null +++ b/functions/public/Show-CTTLogo.ps1 @@ -0,0 +1,38 @@ +Function Show-CTTLogo { + <# + .SYNOPSIS + Displays the CTT logo in ASCII art. + .DESCRIPTION + This function displays the CTT logo in ASCII art format. + .PARAMETER None + No parameters are required for this function. + .EXAMPLE + Show-CTTLogo + Prints the CTT logo in ASCII art format to the console. + #> + + $asciiArt = @" + CCCCCCCCCCCCCTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT + CCC::::::::::::CT:::::::::::::::::::::TT:::::::::::::::::::::T +CC:::::::::::::::CT:::::::::::::::::::::TT:::::::::::::::::::::T +C:::::CCCCCCCC::::CT:::::TT:::::::TT:::::TT:::::TT:::::::TT:::::T +C:::::C CCCCCCTTTTTT T:::::T TTTTTTTTTTTT T:::::T TTTTTT +C:::::C T:::::T T:::::T +C:::::C T:::::T T:::::T +C:::::C T:::::T T:::::T +C:::::C T:::::T T:::::T +C:::::C T:::::T T:::::T +C:::::C T:::::T T:::::T +C:::::C CCCCCC T:::::T T:::::T +C:::::CCCCCCCC::::C TT:::::::TT TT:::::::TT +CC:::::::::::::::C T:::::::::T T:::::::::T +CCC::::::::::::C T:::::::::T T:::::::::T + CCCCCCCCCCCCC TTTTTTTTTTT TTTTTTTTTTT + +====Chris Titus Tech===== +=====Windows Toolbox===== +"@ + + Write-Host $asciiArt +} + diff --git a/scripts/main.ps1 b/scripts/main.ps1 index f2067dee..ae1f38aa 100644 --- a/scripts/main.ps1 +++ b/scripts/main.ps1 @@ -210,7 +210,14 @@ Invoke-WPFRunspace -ScriptBlock { #=========================================================================== # Print the logo -Invoke-WPFFormVariables +Show-CTTLogo +$sync.CompactView = $false +$sync.Form.Resources.AppTileWidth = [double]::NaN +$sync.Form.Resources.AppTileCompactVisibility = [Windows.Visibility]::Visible +$sync.Form.Resources.AppTileFontSize = [double]16 +$sync.Form.Resources.AppTileMargins = [Windows.Thickness]5 +$sync.Form.Resources.AppTileBorderThickness = [Windows.Thickness]0 + function Update-AppTileProperties { if ($sync.CompactView -eq $true) { $sync.Form.Resources.AppTileWidth = [double]::NaN