Compare commits

..

No commits in common. "cd35c74896af7f195e7e79e71f9b2b49759341ac" and "faae0e69cb250653ff9ee805531e6f485cad3bf3" have entirely different histories.

3 changed files with 10 additions and 8 deletions

View File

@ -10,7 +10,9 @@ function Invoke-WinUtilFeatureInstall {
$CheckBox
)
$x = 0
# $sync.form.Dispatcher.Invoke([action]{ Set-WinUtilTaskbaritem -state "Normal" -value 1/$using:CheckBox.Count })
x = 0
$CheckBox | ForEach-Object {
if($sync.configs.feature.$psitem.feature){

View File

@ -1,13 +1,11 @@
function Set-WinUtilTaskbaritem {
<#
.SYNOPSIS
Modifies the Taskbaritem of the WPF Form
.PARAMETER state
State can be 'None' > No progress, 'Indeterminate' > Without value, 'Normal' > when using value, 'Error' > Red (when using value), 'Paused' > Yellow (when using value)
.PARAMETER value
.PARAMETER state & value
Value can be between 0 and 1, 0 being no progress done yet and 1 being fully completed
State can be 'None' > No progress, 'Indeterminate' > Without value, 'Normal' > when using value, 'Error' > Red (when using value), 'Paused' > Yellow (when using value)
.PARAMETER overlay
Overlay icon to display on the taskbar item
@ -20,6 +18,9 @@ function Set-WinUtilTaskbaritem {
Set-WinUtilTaskbaritem -overlay "C:\path\to\icon.png"
#>
function Set-WinUtilTaskbaritem {
param (
[double]$value,
$state,

View File

@ -161,8 +161,7 @@ $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"
$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
@ -447,7 +446,7 @@ $sync["SearchBar"].Add_TextChanged({
})
$sync["Form"].Add_Activated({
Set-WinUtilTaskbaritem -overlay $logoPath -state "None"
Set-WinUtilTaskbaritem -overlay $logoPath
})
# Define event handler for button click