Fix help sidebar button initialization
This commit is contained in:
14
certy.ps1
14
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
|
||||
|
||||
Reference in New Issue
Block a user