diff --git a/certy.ps1 b/certy.ps1 index 1b41950..6d91121 100644 --- a/certy.ps1 +++ b/certy.ps1 @@ -540,13 +540,6 @@ foreach ($item in $navItems) { $navY += 26 } -$helpNavBtn = New-Object System.Windows.Forms.Button -$helpNavBtn.Text = "How to use" -$helpNavBtn.Location = [System.Drawing.Point]::new(16, ($navY + 8)) -$helpNavBtn.Size = [System.Drawing.Size]::new(130, 28) -$sidebar.Controls.Add($helpNavBtn) -Style-ButtonSecondary $helpNavBtn - function Style-ButtonPrimary { param([System.Windows.Forms.Button]$Button) $Button.BackColor = $colorAccent @@ -566,6 +559,13 @@ function Style-ButtonSecondary { $Button.UseVisualStyleBackColor = $false } +$helpNavBtn = New-Object System.Windows.Forms.Button +$helpNavBtn.Text = "How to use" +$helpNavBtn.Location = [System.Drawing.Point]::new(16, ($navY + 8)) +$helpNavBtn.Size = [System.Drawing.Size]::new(130, 28) +$sidebar.Controls.Add($helpNavBtn) +Style-ButtonSecondary $helpNavBtn + function Add-Label { param([string]$Text, [int]$X, [int]$Y, [int]$W, [int]$H) $label = New-Object System.Windows.Forms.Label