Skip to content

Commit cb24597

Browse files
authored
Add files via upload
1 parent ffe9c6c commit cb24597

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

Device-Interrupt-Viewer.ps1

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,29 @@ $form.Add_KeyDown({
203203
}
204204
})
205205

206+
$form.Add_Paint({
207+
param (
208+
[object]$sender,
209+
[System.Windows.Forms.PaintEventArgs]$e
210+
)
211+
$rect = New-Object System.Drawing.Rectangle(0, 0, $sender.Width, $sender.Height)
212+
$brush = New-Object System.Drawing.Drawing2D.LinearGradientBrush(
213+
$rect,
214+
[System.Drawing.Color]::FromArgb(44, 44, 44), # Color negro
215+
[System.Drawing.Color]::FromArgb(99, 99, 99),# Color gris oscuro
216+
[System.Drawing.Drawing2D.LinearGradientMode]::Vertical
217+
)
218+
$e.Graphics.FillRectangle($brush, $rect)
219+
})
220+
206221
$listView = New-Object System.Windows.Forms.ListView
207222
$listView.Size = New-Object System.Drawing.Size(760, 400)
208223
$listView.Location = New-Object System.Drawing.Point(10, 10)
209224
$listView.View = [System.Windows.Forms.View]::Details
210225
$listView.FullRowSelect = $true
211226
$listView.GridLines = $true
227+
$listView.BackColor = [System.Drawing.Color]::FromArgb(44, 44, 44) # Fondo oscuro
228+
$listView.ForeColor = [System.Drawing.Color]::FromArgb(255, 255, 255) # Texto blanco
212229

213230
$columnHeader1 = New-Object System.Windows.Forms.ColumnHeader
214231
$columnHeader1.Text = "Device Description"
@@ -238,9 +255,11 @@ $listView.Add_DoubleClick({
238255
})
239256

240257
$chkShowAll = New-Object System.Windows.Forms.CheckBox
241-
$chkShowAll.Text = "Show All Devices"
242258
$chkShowAll.Size = New-Object System.Drawing.Size(120, 20)
243259
$chkShowAll.Location = New-Object System.Drawing.Point(10, 415)
260+
$chkShowAll.Text = "Show All Devices"
261+
$chkShowAll.ForeColor = [System.Drawing.Color]::White
262+
$chkShowAll.BackColor = [System.Drawing.Color]::Transparent
244263
$chkShowAll.Add_CheckedChanged({
245264
Load-ListViewData | Out-Null
246265
})

0 commit comments

Comments
 (0)