diff --git a/WinToolkit_GUI.ps1 b/WinToolkit_GUI.ps1
index 9328325..efbe2c3 100644
--- a/WinToolkit_GUI.ps1
+++ b/WinToolkit_GUI.ps1
@@ -23,12 +23,12 @@ $Global:GuiVersion = "3.0.0 (Build 7)" # Format: CoreVersion.GuiBuildNumber
# =============================================================================
# CONFIGURATION AND CONSTANTS
# =============================================================================
-$ScriptTitle = "WinToolkit GUI Edition By MagnetarMan"
+$ScriptTitle = "WinToolkit GUI Edition by MagnetarMan"
$LogDirectory = "$env:LOCALAPPDATA\WinToolkit\logs"
$WindowWidth = 1280 # HD ready resolution in 16:9.
$WindowHeight = 720 # HD ready resolution in 16:9.
$FontFamily = "JetBrains Mono Nerd Font, Cascadia Code, Consolas, Courier New"
-$FontSize = @{Small = 14; Medium = 16; Large = 18; Title = 20; Header = 28; ButtonSmall = 11 }
+$FontSize = @{Small = 14; Medium = 16; Large = 18; Title = 20; Header = 28}
# Emoji mappings for GUI elements
$emojiMappings = @{
@@ -110,6 +110,7 @@ $SysInfoComputerName = $null
$SysInfoRAM = $null
$SysInfoDisk = $null
$SysInfoScriptCompatibility = $null
+$SysInfoScriptCompatibilityImage = $null
$SysInfoBitlocker = $null
$progressBar = $null
$actionsPanel = $null
@@ -923,8 +924,8 @@ $xaml = @"
Margin="16,0,0,0" Style="{StaticResource SmallButtonStyle}">
-
+
@@ -944,9 +945,9 @@ $xaml = @"
-
@@ -958,7 +959,7 @@ $xaml = @"
-
-
-
-
+
-
@@ -1057,9 +1060,9 @@ $xaml = @"
-
@@ -1071,7 +1074,7 @@ $xaml = @"
-
-
-
-
@@ -1162,7 +1165,7 @@ $xaml = @"
-
@@ -1212,7 +1215,7 @@ $xaml = @"
Style="{StaticResource PillButtonStyle}">
-
+
@@ -1264,6 +1267,7 @@ $SysInfoComputerName = $window.FindName("SysInfoComputerName")
$SysInfoRAM = $window.FindName("SysInfoRAM")
$SysInfoDisk = $window.FindName("SysInfoDisk")
$SysInfoScriptCompatibility = $window.FindName("SysInfoScriptCompatibility")
+$SysInfoScriptCompatibilityImage = $window.FindName("SysInfoScriptCompatibilityImage")
$SysInfoBitlocker = $window.FindName("SysInfoBitlocker")
$BitlockerImage = $window.FindName("BitlockerImage")
$SysInfoEditionImage = $window.FindName("SysInfoEditionImage")
@@ -1379,7 +1383,7 @@ function Update-SystemInformationPanel {
$SysInfoArchitecture.Text = $sysInfo.Architecture
$SysInfoComputerName.Text = $sysInfo.ComputerName
$SysInfoRAM.Text = "$($sysInfo.TotalRAM) GB"
- $SysInfoDisk.Text = "$($sysInfo.FreePercentage)% Libero ($($sysInfo.FreeDisk) GB / $($sysInfo.TotalDisk) GB)"
+ $SysInfoDisk.Text = "$($sysInfo.FreePercentage)% libero ($($sysInfo.FreeDisk) GB / $($sysInfo.TotalDisk) GB)"
# Set image sources
try {
@@ -1400,25 +1404,36 @@ function Update-SystemInformationPanel {
# Task 2: Compatibility indicator con status text colorato
$statusText = ""
+ $statusIconKey = "LEDStatusRed"
if ($sysInfo.BuildNumber -ge 22000) {
$statusText = "Completa"
+ $statusIconKey = "LEDStatusGreen"
$SysInfoScriptCompatibility.Foreground = New-Object System.Windows.Media.SolidColorBrush([System.Windows.Media.Colors]::LimeGreen)
}
elseif ($sysInfo.BuildNumber -ge 17763) {
$statusText = "Completa"
+ $statusIconKey = "LEDStatusGreen"
$SysInfoScriptCompatibility.Foreground = New-Object System.Windows.Media.SolidColorBrush([System.Windows.Media.Colors]::LimeGreen)
}
elseif ($sysInfo.BuildNumber -ge 10240) {
$statusText = "Limitata"
+ $statusIconKey = "LEDStatusYellow"
$SysInfoScriptCompatibility.Foreground = New-Object System.Windows.Media.SolidColorBrush([System.Windows.Media.Colors]::Orange)
}
else {
$statusText = "Non supportata"
+ $statusIconKey = "LEDStatusRed"
$SysInfoScriptCompatibility.Foreground = New-Object System.Windows.Media.SolidColorBrush([System.Windows.Media.Colors]::Red)
}
$SysInfoScriptCompatibility.Text = $statusText
+ if ($SysInfoScriptCompatibilityImage) {
+ $statusIconPath = Get-EmojiIconPath -EmojiCharacter $emojiMappings[$statusIconKey]
+ if ($statusIconPath -and (Test-Path $statusIconPath)) {
+ $SysInfoScriptCompatibilityImage.Source = New-Object System.Windows.Media.Imaging.BitmapImage([uri]$statusIconPath)
+ }
+ }
# Aggiorna stato Bitlocker
try {