Hightlight FOSS Apps (#4065)

* add foss tag functionality

* update applications

* update

* update

* fix

* update

* update

* fix formatting
This commit is contained in:
Eren
2026-02-17 22:35:26 +03:00
committed by GitHub
parent 5476cd928f
commit 60d31a1fe0
6 changed files with 559 additions and 268 deletions

View File

@@ -41,7 +41,10 @@ function Initialize-InstallAppEntry {
})
$checkBox = New-Object Windows.Controls.CheckBox
$checkBox.Name = $appKey
# Sanitize the name for WPF
$checkBox.Name = $appKey -replace '-', '_'
# Store the original appKey in Tag
$checkBox.Tag = $appKey
$checkbox.Style = $sync.Form.Resources.AppEntryCheckboxStyle
$checkbox.Add_Checked({
Invoke-WPFSelectedCheckboxesUpdate -type "Add" -checkboxName $this.Parent.Tag
@@ -60,6 +63,12 @@ function Initialize-InstallAppEntry {
$appName.Style = $sync.Form.Resources.AppEntryNameStyle
$appName.Text = $Apps.$appKey.content
# Change color to Green if FOSS
if ($Apps.$appKey.foss -eq $true) {
$appName.SetResourceReference([Windows.Controls.Control]::ForegroundProperty, "FOSSColor")
$appName.FontWeight = "Bold"
}
# Add the name to the Checkbox
$checkBox.Content = $appName