restructure, fix, additions

This commit is contained in:
MyDrift
2024-07-14 02:20:26 +02:00
parent 27792dc8a3
commit 503f8a7f09
14 changed files with 100 additions and 18 deletions

View File

@ -159,6 +159,12 @@ $logoUrl = "https://christitus.com/images/logo-full.png"
$logoPath = "$env:TEMP\cttlogo.png"
Invoke-WebRequest -Uri $logoUrl -OutFile $logoPath
# download the check
$CheckUrl = "https://raw.githubusercontent.com/ChrisTitusTech/winutil/main/docs/assets/Check.png"
# Download the image
$CheckPath = "$env:TEMP\cttcheck.png"
Invoke-WebRequest -Uri $CheckUrl -OutFile $CheckPath
# Progress bar in taskbaritem > Set-WinUtilProgressbar
$sync["Form"].TaskbarItemInfo = New-Object System.Windows.Shell.TaskbarItemInfo
Set-WinUtilTaskbaritem -state "None"
@ -438,6 +444,10 @@ $sync["CheckboxFilter"].Add_TextChanged({
$label.Visibility = "Collapsed"}
})
$sync["Form"].Add_Activated({
Set-WinUtilTaskbaritem -overlay $logoPath
})
# Define event handler for button click
$sync["SettingsButton"].Add_Click({
Write-Debug "SettingsButton clicked"